From dc182e2cb84934ec8db33e54142080bc323cab0c Mon Sep 17 00:00:00 2001 From: Johann Schmitz Date: Mon, 25 Nov 2013 19:08:15 +0000 Subject: Added ~x86 to testng and added the missing dependency to app-arch/zip (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED) --- dev-java/testng/ChangeLog | 8 +++- dev-java/testng/testng-6.8-r1.ebuild | 88 ----------------------------------- dev-java/testng/testng-6.8-r2.ebuild | 89 ++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 89 deletions(-) delete mode 100644 dev-java/testng/testng-6.8-r1.ebuild create mode 100644 dev-java/testng/testng-6.8-r2.ebuild (limited to 'dev-java') diff --git a/dev-java/testng/ChangeLog b/dev-java/testng/ChangeLog index 749cf38b6858..fd0d889204c6 100644 --- a/dev-java/testng/ChangeLog +++ b/dev-java/testng/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/testng # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/ChangeLog,v 1.2 2013/10/24 19:32:48 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/ChangeLog,v 1.3 2013/11/25 19:08:15 ercpe Exp $ + +*testng-6.8-r2 (25 Nov 2013) + + 25 Nov 2013; Johann Schmitz +testng-6.8-r2.ebuild, + -testng-6.8-r1.ebuild: + Added ~x86 to testng and added the missing dependency to app-arch/zip *testng-6.8-r1 (24 Oct 2013) diff --git a/dev-java/testng/testng-6.8-r1.ebuild b/dev-java/testng/testng-6.8-r1.ebuild deleted file mode 100644 index 3a5d004ac99c..000000000000 --- a/dev-java/testng/testng-6.8-r1.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/testng-6.8-r1.ebuild,v 1.1 2013/10/24 19:32:48 tomwij Exp $ - -EAPI="5" - -JAVA_PKG_IUSE="doc examples source test" -WANT_ANT_TASKS="ant-junit" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="Testing framework introducing some new functionalities that make it more powerful and easier to use." -HOMEPAGE="http://testng.org/" -SRC_URI="http://${PN}.org/${P}.zip" - -LICENSE="Apache-2.0" -KEYWORDS="~amd64" -SLOT="0" - -CDEPEND="dev-java/ant-core:0 - dev-java/bsh:0 - dev-java/guice:2 - dev-java/jcommander:0 - dev-java/junit:4 - dev-java/snakeyaml:1.9" - -DEPEND=">=virtual/jdk-1.5 - ${CDEPEND}" - -RDEPEND=">=virtual/jre-1.5 - ${CDEPEND}" - -JAVA_PKG_BSFIX_NAME="build.xml build-tests.xml" -JAVA_ANT_REWRITE_CLASSPATH="true" -JAVA_ANT_CLASSPATH_TAGS+=" testng javadocs-current" -EANT_GENTOO_CLASSPATH="ant-core,bsh,guice-2,jcommander,junit-4,snakeyaml-1.9" -EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" - -EANT_BUILD_TARGET="build" -EANT_TEST_TARGET="tests" -EANT_DOC_TARGET="javadocs" - -java_prepare() { - find . -name '*.jar' -print -delete || die - - cp "${FILESDIR}"/${P}-build-tests.xml build-tests.xml || die - - epatch "${FILESDIR}"/${P}-remove-ivy-retrieve.patch - epatch "${FILESDIR}"/${P}-remove-jar-bundling.patch - - # Removal of tests that break due to restrictions or environment expectations: - # ServiceLoaderTest - Breaks due absolute URL load that Portage prevents; - # we assume the underlying functionality to work, as - # the underlying functionality is simple and should - # show the usage of this package to break. - sed -i '/test.serviceloader.ServiceLoaderTest/d' src/test/resources/testng.xml || die - - # TrueParallelTest - Doesn't always work, especially not on a system - # under load; since this could fail during parallel - # emerges, we assume the underlying functionality to - # work as it has definitely succeeded under lower load. - sed -i '/test.thread.TrueParallelTest/d' src/test/resources/testng.xml || die - - mkdir lib || die -} - -src_test() { - local tests_file="target/test-output/index.html" - - java-pkg-2_src_test - - if [[ ! -f ${tests_file} ]] ; then - die "Tests failed, test output does not exist; a problem with starting the tests." - fi - - grep 'method-stats.*failed' target/test-output/index.html > /dev/null && \ - die "Tests failed; one or more test failed, see ${tests_file} for more details." -} - -src_install() { - java-pkg_newjar target/${P}.jar - java-pkg_dolauncher ${PN} --main org.testng.TestNG - java-pkg_register-ant-task - - use doc && java-pkg_dojavadoc javadocs - use examples && java-pkg_doexamples examples - use source && java-pkg_dosrc src/main/java/{org,com} -} diff --git a/dev-java/testng/testng-6.8-r2.ebuild b/dev-java/testng/testng-6.8-r2.ebuild new file mode 100644 index 000000000000..3980bc7433dd --- /dev/null +++ b/dev-java/testng/testng-6.8-r2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/testng-6.8-r2.ebuild,v 1.1 2013/11/25 19:08:15 ercpe Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source test" +WANT_ANT_TASKS="ant-junit" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Testing framework introducing some new functionalities that make it more powerful and easier to use." +HOMEPAGE="http://testng.org/" +SRC_URI="http://${PN}.org/${P}.zip" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +CDEPEND="dev-java/ant-core:0 + dev-java/bsh:0 + dev-java/guice:2 + dev-java/jcommander:0 + dev-java/junit:4 + dev-java/snakeyaml:1.9" + +DEPEND=">=virtual/jdk-1.5 + app-arch/zip + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" + +JAVA_PKG_BSFIX_NAME="build.xml build-tests.xml" +JAVA_ANT_REWRITE_CLASSPATH="true" +JAVA_ANT_CLASSPATH_TAGS+=" testng javadocs-current" +EANT_GENTOO_CLASSPATH="ant-core,bsh,guice-2,jcommander,junit-4,snakeyaml-1.9" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" + +EANT_BUILD_TARGET="build" +EANT_TEST_TARGET="tests" +EANT_DOC_TARGET="javadocs" + +java_prepare() { + find . -name '*.jar' -print -delete || die + + cp "${FILESDIR}"/${P}-build-tests.xml build-tests.xml || die + + epatch "${FILESDIR}"/${P}-remove-ivy-retrieve.patch + epatch "${FILESDIR}"/${P}-remove-jar-bundling.patch + + # Removal of tests that break due to restrictions or environment expectations: + # ServiceLoaderTest - Breaks due absolute URL load that Portage prevents; + # we assume the underlying functionality to work, as + # the underlying functionality is simple and should + # show the usage of this package to break. + sed -i '/test.serviceloader.ServiceLoaderTest/d' src/test/resources/testng.xml || die + + # TrueParallelTest - Doesn't always work, especially not on a system + # under load; since this could fail during parallel + # emerges, we assume the underlying functionality to + # work as it has definitely succeeded under lower load. + sed -i '/test.thread.TrueParallelTest/d' src/test/resources/testng.xml || die + + mkdir lib || die +} + +src_test() { + local tests_file="target/test-output/index.html" + + java-pkg-2_src_test + + if [[ ! -f ${tests_file} ]] ; then + die "Tests failed, test output does not exist; a problem with starting the tests." + fi + + grep 'method-stats.*failed' target/test-output/index.html > /dev/null && \ + die "Tests failed; one or more test failed, see ${tests_file} for more details." +} + +src_install() { + java-pkg_newjar target/${P}.jar + java-pkg_dolauncher ${PN} --main org.testng.TestNG + java-pkg_register-ant-task + + use doc && java-pkg_dojavadoc javadocs + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc src/main/java/{org,com} +} -- cgit v1.2.3-65-gdbad