From d05ca01d311d921cd6ffaeea1a9902a1b8040218 Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Sat, 1 Oct 2016 11:00:39 -0600 Subject: [PATCH] dev-vcs/git-deps: Clean up of ebuild Package-Manager: portage-2.3.0 --- dev-vcs/git-deps/files/html_location.patch | 13 ------------- dev-vcs/git-deps/git-deps-9999.ebuild | 16 +++++++++------- 2 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 dev-vcs/git-deps/files/html_location.patch diff --git a/dev-vcs/git-deps/files/html_location.patch b/dev-vcs/git-deps/files/html_location.patch deleted file mode 100644 index ad1434b4e17a..000000000000 --- a/dev-vcs/git-deps/files/html_location.patch +++ /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 diff --git a/dev-vcs/git-deps/git-deps-9999.ebuild b/dev-vcs/git-deps/git-deps-9999.ebuild index 450af384cc6c..0e5eb8a78dfd 100644 --- a/dev-vcs/git-deps/git-deps-9999.ebuild +++ b/dev-vcs/git-deps/git-deps-9999.ebuild @@ -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 } -- 2.26.2