forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gentoopm-9999.ebuild
47 lines (36 loc) · 1.01 KB
/
gentoopm-9999.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git"
inherit distutils-r1 git-r3
DESCRIPTION="A common interface to Gentoo package managers"
HOMEPAGE="https://github.com/mgorny/gentoopm/"
SRC_URI=""
LICENSE="BSD-2"
SLOT="0"
KEYWORDS=""
IUSE="doc"
RDEPEND="
|| (
sys-apps/pkgcore[${PYTHON_USEDEP}]
>=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]
>=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"
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() {
use doc && esetup.py doc
}
python_test() {
esetup.py test
}
python_install_all() {
use doc && local HTML_DOCS=( doc/. )
distutils-r1_python_install_all
}