dev-java/java-config: Support sys-apps/portage-mgorny
authorMichał Górny <mgorny@gentoo.org>
Wed, 21 Mar 2018 16:30:46 +0000 (17:30 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 21 Mar 2018 18:12:21 +0000 (19:12 +0100)
dev-java/java-config/java-config-2.2.0-r4.ebuild [moved from dev-java/java-config/java-config-2.2.0-r3.ebuild with 81% similarity]

similarity index 81%
rename from dev-java/java-config/java-config-2.2.0-r3.ebuild
rename to dev-java/java-config/java-config-2.2.0-r4.ebuild
index 62b5da6dd7136ed1efdef068746f1ea2cada8182..2d0a08658067a64968890def3f669c22d2b20f21 100644 (file)
@@ -17,13 +17,21 @@ SLOT="2"
 KEYWORDS="amd64 ~arm ~arm64 ppc64 x86"
 IUSE="test"
 
-DEPEND="test? ( sys-apps/portage[${PYTHON_USEDEP}] )"
+DEPEND="test? (
+               || (
+                       sys-apps/portage[${PYTHON_USEDEP}]
+                       sys-apps/portage-mgorny[${PYTHON_USEDEP}]
+               )
+       )"
 
 # baselayout-java is added as a dep till it can be added to eclass.
 RDEPEND="
        !dev-java/java-config-wrapper
        sys-apps/baselayout-java
-       sys-apps/portage[${PYTHON_USEDEP}]"
+       || (
+               sys-apps/portage[${PYTHON_USEDEP}]
+               sys-apps/portage-mgorny[${PYTHON_USEDEP}]
+       )"
 
 PATCHES=( "${FILESDIR}"/${PN}-2.2.0-prefix.patch )