blob: aafcbb89d307289ceb7541e72092745d1499f3c2 (
plain)
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{9..11} pypy3 )
inherit distutils-r1
DESCRIPTION="A common interface to Gentoo package managers"
HOMEPAGE="https://github.com/projg2/gentoopm/"
SRC_URI="
https://github.com/projg2/gentoopm/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm arm64 hppa ~mips ~ppc64 ~sparc x86 ~x64-macos"
RDEPEND="
|| (
>=sys-apps/pkgcore-0.9.4[${PYTHON_USEDEP}]
>=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}] )"
PDEPEND="app-eselect/eselect-package-manager"
distutils_enable_tests pytest
python_test() {
if has_version ">=sys-apps/pkgcore-0.9.4[${PYTHON_USEDEP}]"; then
einfo "Testing against pkgcore ..."
PACKAGE_MANAGER=pkgcore epytest
fi
if has_version ">=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]"; then
einfo "Testing against portage ..."
PACKAGE_MANAGER=portage epytest
fi
}
|