commit:     694ef49d2302b30712f37437dc5114391a0f7c41
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  6 23:03:12 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  6 23:23:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=694ef49d

app-portage/gentoopm: Update the live ebuild

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-portage/gentoopm/gentoopm-9999.ebuild | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/app-portage/gentoopm/gentoopm-9999.ebuild 
b/app-portage/gentoopm/gentoopm-9999.ebuild
index 840415f2aa12..a187b336584d 100644
--- a/app-portage/gentoopm/gentoopm-9999.ebuild
+++ b/app-portage/gentoopm/gentoopm-9999.ebuild
@@ -1,22 +1,19 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-DISTUTILS_USE_SETUPTOOLS=no
+DISTUTILS_USE_PEP517=flit
 PYTHON_COMPAT=( python3_{8..10} )
 
-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=""
+EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git";
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS=""
-IUSE=""
 
 RDEPEND="
        || (
@@ -24,6 +21,15 @@ RDEPEND="
                >=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}] )"
 PDEPEND="app-eselect/eselect-package-manager"
 
+distutils_enable_tests pytest
+
 python_test() {
-       esetup.py 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
 }

Reply via email to