You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-portage/gentoopm/gentoopm-0.2.9.ebuild

40 lines
905 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
inherit distutils-r1
DESCRIPTION="A common interface to Gentoo package managers"
HOMEPAGE="https://github.com/mgorny/gentoopm/"
SRC_URI="https://github.com/mgorny/${PN}/releases/download/${P}/${P}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm ~mips x86 ~amd64-fbsd ~x86-fbsd"
IUSE="doc"
RDEPEND="|| (
sys-apps/pkgcore
>=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]
>=sys-apps/paludis-0.64.2[python-bindings] )"
DEPEND="doc? ( dev-python/epydoc )"
PDEPEND="app-eselect/eselect-package-manager"
python_compile_all() {
if use doc; then
"${PYTHON}" setup.py doc || die
fi
}
python_test() {
"${PYTHON}" setup.py test || die
}
python_install_all() {
use doc && local HTML_DOCS=( doc/* )
distutils-r1_python_install_all
}