summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-11-30 10:40:04 +0100
committerMichał Górny <mgorny@gentoo.org>2016-11-30 10:42:16 +0100
commite0327084bd6049a0e1bac498eb1f13e544fbb054 (patch)
treed384f30d6ae2bb19bc274bd816e029cb35f7b712 /app-portage
parentdev-python/snakeoil: Add missing mock dep, bump to EAPI 6 (diff)
downloadgentoo-e0327084bd6049a0e1bac498eb1f13e544fbb054.tar.gz
gentoo-e0327084bd6049a0e1bac498eb1f13e544fbb054.tar.bz2
gentoo-e0327084bd6049a0e1bac498eb1f13e544fbb054.zip
app-portage/gentoopm: Unifdef and modernize the live ebuild
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/gentoopm/gentoopm-9999.ebuild35
1 files changed, 16 insertions, 19 deletions
diff --git a/app-portage/gentoopm/gentoopm-9999.ebuild b/app-portage/gentoopm/gentoopm-9999.ebuild
index b477ec6a238a..a1bcef5a3b31 100644
--- a/app-portage/gentoopm/gentoopm-9999.ebuild
+++ b/app-portage/gentoopm/gentoopm-9999.ebuild
@@ -2,41 +2,38 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
-inherit distutils-r1
-
-#if LIVE
EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git"
-inherit git-r3
-#endif
+inherit distutils-r1 git-r3
DESCRIPTION="A common interface to Gentoo package managers"
HOMEPAGE="https://github.com/mgorny/gentoopm/"
-SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2"
+SRC_URI=""
LICENSE="BSD-2"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~x86 ~amd64-fbsd ~x86-fbsd"
+KEYWORDS=""
IUSE="doc"
-RDEPEND="|| (
- sys-apps/pkgcore
+RDEPEND="
+ || (
+ sys-apps/pkgcore[${PYTHON_USEDEP}]
>=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]
- >=sys-apps/paludis-0.64.2[python-bindings] )"
-DEPEND="doc? ( dev-python/epydoc )"
+ >=sys-apps/paludis-2.6.0[python,${PYTHON_USEDEP}] )"
+DEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep python2_7)] )"
PDEPEND="app-eselect/eselect-package-manager"
-#if LIVE
-KEYWORDS=
-SRC_URI=
-#endif
+REQUIRED_USE="doc? ( $(python_gen_useflags python2_7) )"
+
+src_configure() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2_7 )
+ distutils-r1_src_configure
+}
python_compile_all() {
- if use doc; then
- esetup.py doc
- fi
+ use doc && esetup.py doc
}
python_test() {