diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-01-16 23:30:27 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-01-17 00:01:16 +0000 |
commit | 836dcead653e7310017523486e467a4ee0a71136 (patch) | |
tree | aa3653407b6c7de2bb22337d31279ad11477b13e /dev-java/testng | |
parent | dev-java/assertj-core: New package, needed by latest testng's tests (diff) | |
download | gentoo-836dcead653e7310017523486e467a4ee0a71136.tar.gz gentoo-836dcead653e7310017523486e467a4ee0a71136.tar.bz2 gentoo-836dcead653e7310017523486e467a4ee0a71136.zip |
dev-java/testng: Version bump to 6.9.10, fixes bug #572026
This is a rewrite using java-pkg-simple.
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java/testng')
-rw-r--r-- | dev-java/testng/Manifest | 1 | ||||
-rw-r--r-- | dev-java/testng/testng-6.9.10.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-java/testng/Manifest b/dev-java/testng/Manifest index 4cf5958ee682..2e19fa948e33 100644 --- a/dev-java/testng/Manifest +++ b/dev-java/testng/Manifest @@ -1 +1,2 @@ DIST testng-6.8.zip 11550802 SHA256 72c7241109b149caea01af5f5c37c86b61b08f15864a8a40e15d069593625e0c SHA512 2e8ad30a2c2f68d0aad584ef92246381c8adf8a893af2ca9ff8fb7d304c26956dfc6564f120de80d22e3e7a53a1402e3869f19ef0e6a69c674cbe35a58811920 WHIRLPOOL b7cf05963aaba3009d7326fee12694c32798787ee4295044daabdcf6b5a50dbb4b17f2a201dcdcd6d191bbc6665c12db789be80e71625eb8d08ca29b3cdfcff2 +DIST testng-6.9.10.tar.gz 6271781 SHA256 2155f0461f6b80433781968b9465627f877ea579086cb4149ca68e5e711d8127 SHA512 ed9ad1ced20904ab261d2a233f3fa43ee1ea31778e992cdd27459811b256a6998d8385dd01ff72821133208a1fbd72aa3599a4b8bc0eb4d7b696d34593f9567e WHIRLPOOL 38ae9ac8732ee96f0c0c9f48e5e5ba1cef342ea2f866322d22064b8aca4d405318fcce8e4a1bd7ba6276645429fe3a9ec8be42a8e2065cbb0d99dc6b2a0059d7 diff --git a/dev-java/testng/testng-6.9.10.ebuild b/dev-java/testng/testng-6.9.10.ebuild new file mode 100644 index 000000000000..b0a7c095161b --- /dev/null +++ b/dev-java/testng/testng-6.9.10.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Testing framework inspired by JUnit and NUnit with new features" +HOMEPAGE="http://testng.org/" +SRC_URI="https://github.com/cbeust/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="test" +RESTRICT="test" # Occasionally fail or run *REALLY* slowly. + +CDEPEND="dev-java/bsh:0 + dev-java/guice:4 + dev-java/junit:4 + dev-java/ant-core:0 + dev-java/snakeyaml:0 + dev-java/jcommander:0" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.7 + test? ( dev-java/assertj-core:2 )" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.7" + +S="${WORKDIR}/${P}" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="ant-core,bsh,guice-4,jcommander,junit-4,snakeyaml" + +java_prepare() { + java-pkg_clean ! -path "./src/*" + + cp -v src/generated/java/org/testng/internal/VersionTemplateJava \ + src/main/java/org/testng/internal/Version.java || die +} + +src_compile() { + java-pkg-simple_src_compile + java-pkg_addres ${PN}.jar src/main/resources +} + +src_test() { + local DIR=src/test/java + local RES=src/test/resources + local CP=${PN}.jar:$(java-pkg_getjars --with-dependencies "${JAVA_GENTOO_CLASSPATH},assertj-core-2") + + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + java -cp "${RES}:${DIR}:${CP}" -Dtest.resources.dir=${RES} org.testng.TestNG -listener test.invokedmethodlistener.MyListener src/test/resources/testng.xml || die +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${PN} --main org.testng.TestNG + java-pkg_register-ant-task + + dodoc {ANNOUNCEMENT,CHANGES,TODO}.txt + + if use doc; then + docinto html + dodoc -r doc + fi +} |