Description: Make documentation build works outside of git repository
 Current documentation build requires git and curl to get some stuff from the internet
 This patch aims to delete those dependencies, forcing git branch to master,
 and using Debian provided plantuml instead of downloading it from apache mirror
Author: Jean Baptiste Favre <debian@jbfavre.org>
Origin: other
Last-Update: 2019-01-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc/ext/traffic-server.py
+++ b/doc/ext/traffic-server.py
@@ -385,7 +385,7 @@ with open(CONFIGURE_AC, 'r') as f:
 
 # get the current branch the local repository is on
 REPO_GIT_DIR = os.path.join(REPO_ROOT, ".git")
-git_branch = subprocess.check_output(['git', '--git-dir', REPO_GIT_DIR, 'rev-parse', '--abbrev-ref', 'HEAD'])
+git_branch = "master"
 
 
 def make_github_link(name, rawtext, text, lineno, inliner, options=None, content=None):
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -55,7 +55,7 @@ I18NSPHINXOPTS  = $(SPHINXOPTS)
 # The PAPER setting variables requires recursive make variable expansion, which automake
 # detects as non-portable. We bounce this through a shell script and do the expansion there.
 SBUILD = PAPEROPT_a4="$(PAPEROPT_a4)" PAPEROPT_letter="$(PAPEROPT_letter)" PAPER="$(PAPER)" \
-	PLANTUML_JAR="$(shell $(srcdir)/ext/plantuml_fetch.sh | tail -1)" \
+	PLANTUML_JAR="/usr/share/plantuml/plantuml.jar" \
 	$(srcdir)/sbuild "$(SPHINXBUILD)" \
 	-c $(srcdir) \
 	$(ALLSPHINXOPTS)
--- a/doc/uml/Makefile.am
+++ b/doc/uml/Makefile.am
@@ -19,7 +19,7 @@
 if BUILD_DOCS
 images := $(patsubst %.uml,images/%.svg,$(wildcard *.uml))
 images += $(patsubst %.plantuml,images/%.svg,$(wildcard *.plantuml))
-PLANTUML_JAR := $(shell $(srcdir)/../ext/plantuml_fetch.sh | tail -1)
+PLANTUML_JAR := /usr/share/plantuml/plantuml.jar
 
 all-am: jar-check $(images)
 endif
