diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-03-01 20:18:23 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-10-18 09:46:32 +0200 |
commit | 1a221212ce4d283e10fe68964bcf9ea86638b51e (patch) | |
tree | b49738fedec7a2ceefe24b65f64c4386c8ab981f /eclass | |
parent | dev-java/testng: add 6.11 (diff) | |
download | gentoo-1a221212ce4d283e10fe68964bcf9ea86638b51e.tar.gz gentoo-1a221212ce4d283e10fe68964bcf9ea86638b51e.tar.bz2 gentoo-1a221212ce4d283e10fe68964bcf9ea86638b51e.zip |
java-pkg-simple.eclass: avoid reverse dependency for dev-java/testng
Presently, when using testng in JAVA_TESTING_FRAMEWORKS, it gets added
to test dependencies. Emerging dev-java/testng with USE=test would lead
to a reverse dependency on itself.
This change allows emerging / testing testng with the ebuild specifying
JAVA_TESTING_FRAMEWORKS="testng" without such reverse dependency.
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index 98affc522295..ea4833727ea1 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -46,7 +46,8 @@ if has test ${JAVA_PKG_IUSE}; then test_deps+=" amd64? ( dev-util/pkgdiff dev-util/japi-compliance-checker )";; testng) - test_deps+=" dev-java/testng:0";; + [[ ${PN} != testng ]] && \ + test_deps+=" dev-java/testng:0";; esac done [[ ${test_deps} ]] && DEPEND="test? ( ${test_deps} )" |