app-portage/gentoolkit: Enable tests
authorMichał Górny <mgorny@gentoo.org>
Fri, 24 Apr 2020 08:54:11 +0000 (10:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 24 Apr 2020 09:03:25 +0000 (11:03 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-portage/gentoolkit/gentoolkit-0.5.0.ebuild
app-portage/gentoolkit/gentoolkit-9999.ebuild

index 34ae357f65de6b3f9d4553bb7180fcdf48cb03b2..fff875e880ec0508da50171d3ac055f0a3d58ba0 100644 (file)
@@ -25,6 +25,8 @@ RDEPEND="${DEPEND}
        sys-apps/gawk
        sys-apps/gentoo-functions"
 
+distutils_enable_tests setup.py
+
 python_prepare_all() {
        python_setup
        echo VERSION="${PVR}" "${PYTHON}" setup.py set_version
@@ -32,10 +34,6 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
-python_install_all() {
-       distutils-r1_python_install_all
-}
-
 pkg_preinst() {
        if has_version "<${CATEGORY}/${PN}-0.4.0"; then
                SHOW_GENTOOKIT_DEV_DEPRECATED_MSG=1
index 1bb4f4cc13d538cf95d186fd23200544132da267..39237afdc316da0f0da9bc0d1a50ba9f849fc7cf 100644 (file)
@@ -20,11 +20,14 @@ IUSE=""
 
 KEYWORDS=""
 
-DEPEND="sys-apps/portage[${PYTHON_USEDEP}]"
+DEPEND="
+       sys-apps/portage[${PYTHON_USEDEP}]"
 RDEPEND="${DEPEND}
        sys-apps/gawk
        sys-apps/gentoo-functions"
 
+distutils_enable_tests setup.py
+
 python_prepare_all() {
        python_setup
        echo VERSION="${PVR}" "${PYTHON}" setup.py set_version
@@ -32,10 +35,6 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
-python_install_all() {
-       distutils-r1_python_install_all
-}
-
 pkg_preinst() {
        if has_version "<${CATEGORY}/${PN}-0.4.0"; then
                SHOW_GENTOOKIT_DEV_DEPRECATED_MSG=1