Skip to content

Commit

Permalink
dev-vcs/git-deps: Add patch for html pages
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
nicolasbock committed Jul 5, 2016
1 parent e63b113 commit 3920220
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dev-vcs/git-deps/files/html_location.patch
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions dev-vcs/git-deps/git-deps-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RDEPEND="
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

PATCHES="${FILESDIR}/html_location.patch"

HTML_DOCS="html/."

src_install() {
Expand Down

0 comments on commit 3920220

Please sign in to comment.