1 |
commit: e0327084bd6049a0e1bac498eb1f13e544fbb054 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 09:40:04 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 09:42:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0327084 |
7 |
|
8 |
app-portage/gentoopm: Unifdef and modernize the live ebuild |
9 |
|
10 |
app-portage/gentoopm/gentoopm-9999.ebuild | 35 ++++++++++++++----------------- |
11 |
1 file changed, 16 insertions(+), 19 deletions(-) |
12 |
|
13 |
diff --git a/app-portage/gentoopm/gentoopm-9999.ebuild b/app-portage/gentoopm/gentoopm-9999.ebuild |
14 |
index b477ec6..a1bcef5 100644 |
15 |
--- a/app-portage/gentoopm/gentoopm-9999.ebuild |
16 |
+++ b/app-portage/gentoopm/gentoopm-9999.ebuild |
17 |
@@ -2,41 +2,38 @@ |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Id$ |
20 |
|
21 |
-EAPI=5 |
22 |
+EAPI=6 |
23 |
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy ) |
24 |
|
25 |
-inherit distutils-r1 |
26 |
- |
27 |
-#if LIVE |
28 |
EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git" |
29 |
-inherit git-r3 |
30 |
-#endif |
31 |
+inherit distutils-r1 git-r3 |
32 |
|
33 |
DESCRIPTION="A common interface to Gentoo package managers" |
34 |
HOMEPAGE="https://github.com/mgorny/gentoopm/" |
35 |
-SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" |
36 |
+SRC_URI="" |
37 |
|
38 |
LICENSE="BSD-2" |
39 |
SLOT="0" |
40 |
-KEYWORDS="~amd64 ~arm ~mips ~x86 ~amd64-fbsd ~x86-fbsd" |
41 |
+KEYWORDS="" |
42 |
IUSE="doc" |
43 |
|
44 |
-RDEPEND="|| ( |
45 |
- sys-apps/pkgcore |
46 |
+RDEPEND=" |
47 |
+ || ( |
48 |
+ sys-apps/pkgcore[${PYTHON_USEDEP}] |
49 |
>=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}] |
50 |
- >=sys-apps/paludis-0.64.2[python-bindings] )" |
51 |
-DEPEND="doc? ( dev-python/epydoc )" |
52 |
+ >=sys-apps/paludis-2.6.0[python,${PYTHON_USEDEP}] )" |
53 |
+DEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep python2_7)] )" |
54 |
PDEPEND="app-eselect/eselect-package-manager" |
55 |
|
56 |
-#if LIVE |
57 |
-KEYWORDS= |
58 |
-SRC_URI= |
59 |
-#endif |
60 |
+REQUIRED_USE="doc? ( $(python_gen_useflags python2_7) )" |
61 |
+ |
62 |
+src_configure() { |
63 |
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2_7 ) |
64 |
+ distutils-r1_src_configure |
65 |
+} |
66 |
|
67 |
python_compile_all() { |
68 |
- if use doc; then |
69 |
- esetup.py doc |
70 |
- fi |
71 |
+ use doc && esetup.py doc |
72 |
} |
73 |
|
74 |
python_test() { |