dev-vcs/git-deps: Add patch for html pages
authorNicolas Bock <nicolasbock@gentoo.org>
Tue, 5 Jul 2016 12:25:13 +0000 (14:25 +0200)
committerNicolas Bock <nicolasbock@gentoo.org>
Tue, 5 Jul 2016 12:25:34 +0000 (14:25 +0200)
Package-Manager: portage-2.2.28

dev-vcs/git-deps/files/html_location.patch [new file with mode: 0644]
dev-vcs/git-deps/git-deps-9999.ebuild

diff --git a/dev-vcs/git-deps/files/html_location.patch b/dev-vcs/git-deps/files/html_location.patch
new file mode 100644 (file)
index 0000000..ad1434b
--- /dev/null
@@ -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
index b42af867ac90b1c1adaaf5836738044d00660bf6..450af384cc6c9edb004b12c0eda35bf4fa7a87e9 100644 (file)
@@ -26,6 +26,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
+PATCHES="${FILESDIR}/html_location.patch"
+
 HTML_DOCS="html/."
 
 src_install() {