dev-vcs/git-deps: Clean up of ebuild
authorNicolas Bock <nicolasbock@gentoo.org>
Sat, 1 Oct 2016 17:00:39 +0000 (11:00 -0600)
committerNicolas Bock <nicolasbock@gentoo.org>
Sun, 2 Oct 2016 11:41:57 +0000 (05:41 -0600)
Package-Manager: portage-2.3.0

dev-vcs/git-deps/files/html_location.patch [deleted file]
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
deleted file mode 100644 (file)
index ad1434b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- 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 450af384cc6c9edb004b12c0eda35bf4fa7a87e9..0e5eb8a78dfd6b6e0c2c93728ad72489d088f633 100644 (file)
@@ -7,9 +7,9 @@ EAPI=6
 EGIT_REPO_URI="https://github.com/aspiers/git-deps"
 EGIT_BRANCH=master
 
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
+PYTHON_COMPAT=( python2_7 )
 
-inherit eutils git-r3 python-r1
+inherit eutils git-r3 python-single-r1
 
 DESCRIPTION="git commit dependency analysis tool"
 HOMEPAGE="https://github.com/aspiers/git-deps"
@@ -18,20 +18,22 @@ LICENSE="GPL-2"
 SLOT="0"
 
 RDEPEND="
-       dev-python/flask
-       dev-python/pygit2
+       dev-python/flask[${PYTHON_USEDEP}]
+       dev-python/pygit2[${PYTHON_USEDEP}]
        net-libs/nodejs
        ${PYTHON_DEPS}
        "
 DEPEND="${RDEPEND}"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
-PATCHES="${FILESDIR}/html_location.patch"
-
 HTML_DOCS="html/."
 
+pkg_setup() {
+       python-single-r1_pkg_setup
+}
+
 src_install() {
-       python_foreach_impl python_newexe git-deps.py git-deps
+       python_newscript git-deps.py git-deps
        einstalldocs
 }