summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2016-07-05 14:25:13 +0200
committerNicolas Bock <nicolasbock@gentoo.org>2016-07-05 14:25:34 +0200
commit39202202da618f981cd753829288ce8cc8deb520 (patch)
treef58cac1397121af2ec86bfb077120d0518a8f65a
parentdev-vcs/git-deps: Added instructions for html pages (diff)
downloadgentoo-39202202da618f981cd753829288ce8cc8deb520.tar.gz
gentoo-39202202da618f981cd753829288ce8cc8deb520.tar.bz2
gentoo-39202202da618f981cd753829288ce8cc8deb520.zip
dev-vcs/git-deps: Add patch for html pages
Package-Manager: portage-2.2.28
-rw-r--r--dev-vcs/git-deps/files/html_location.patch13
-rw-r--r--dev-vcs/git-deps/git-deps-9999.ebuild2
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-vcs/git-deps/files/html_location.patch b/dev-vcs/git-deps/files/html_location.patch
new file mode 100644
index 000000000000..ad1434b4e17a
--- /dev/null
+++ b/dev-vcs/git-deps/files/html_location.patch
@@ -0,0 +1,13 @@
+--- git-deps.orig 2016-07-05 14:15:35.520601179 +0200
++++ git-deps 2016-07-05 14:18:38.601254285 +0200
+@@ -689,9 +689,7 @@
+ abort("Cannot find flask module which is required for webserver mode.")
+
+ webserver = Flask('git-deps')
+- here = os.path.dirname(os.path.realpath(__file__))
+- root = os.path.join(here, 'html')
+- webserver.root_path = root
++ webserver.root_path = os.path.expanduser('~/git-deps-html')
+
+ ##########################################################
+ # Static content
diff --git a/dev-vcs/git-deps/git-deps-9999.ebuild b/dev-vcs/git-deps/git-deps-9999.ebuild
index b42af867ac90..450af384cc6c 100644
--- a/dev-vcs/git-deps/git-deps-9999.ebuild
+++ b/dev-vcs/git-deps/git-deps-9999.ebuild
@@ -26,6 +26,8 @@ RDEPEND="
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+PATCHES="${FILESDIR}/html_location.patch"
+
HTML_DOCS="html/."
src_install() {