From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-java/testng/Manifest | 1 + dev-java/testng/files/build-tests.xml | 188 +++++++++++++++++++++ dev-java/testng/files/testng-6.8-build-tests.xml | 188 +++++++++++++++++++++ .../files/testng-6.8-remove-ivy-retrieve.patch | 22 +++ .../files/testng-6.8-remove-jar-bundling.patch | 60 +++++++ dev-java/testng/metadata.xml | 5 + dev-java/testng/testng-6.8-r2.ebuild | 89 ++++++++++ 7 files changed, 553 insertions(+) create mode 100644 dev-java/testng/Manifest create mode 100644 dev-java/testng/files/build-tests.xml create mode 100644 dev-java/testng/files/testng-6.8-build-tests.xml create mode 100644 dev-java/testng/files/testng-6.8-remove-ivy-retrieve.patch create mode 100644 dev-java/testng/files/testng-6.8-remove-jar-bundling.patch create mode 100644 dev-java/testng/metadata.xml create mode 100644 dev-java/testng/testng-6.8-r2.ebuild (limited to 'dev-java/testng') diff --git a/dev-java/testng/Manifest b/dev-java/testng/Manifest new file mode 100644 index 000000000000..4cf5958ee682 --- /dev/null +++ b/dev-java/testng/Manifest @@ -0,0 +1 @@ +DIST testng-6.8.zip 11550802 SHA256 72c7241109b149caea01af5f5c37c86b61b08f15864a8a40e15d069593625e0c SHA512 2e8ad30a2c2f68d0aad584ef92246381c8adf8a893af2ca9ff8fb7d304c26956dfc6564f120de80d22e3e7a53a1402e3869f19ef0e6a69c674cbe35a58811920 WHIRLPOOL b7cf05963aaba3009d7326fee12694c32798787ee4295044daabdcf6b5a50dbb4b17f2a201dcdcd6d191bbc6665c12db789be80e71625eb8d08ca29b3cdfcff2 diff --git a/dev-java/testng/files/build-tests.xml b/dev-java/testng/files/build-tests.xml new file mode 100644 index 000000000000..e94606b60cea --- /dev/null +++ b/dev-java/testng/files/build-tests.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + +BASEDIR =${basedir} +TEST.DIR =${test.dir} +TEST.BUILD.DIR =${test.build.dir} +REPORT.DIR =${report.dir} +JUNIT.REPORT.DIR =${junit.report.dir} +TESTNG.REPORT.DIR=${testng.report.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Report created in open ${testng.report.dir}/index.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reports can be found in: open ${testng.report.dir}/index.html + + + diff --git a/dev-java/testng/files/testng-6.8-build-tests.xml b/dev-java/testng/files/testng-6.8-build-tests.xml new file mode 100644 index 000000000000..e94606b60cea --- /dev/null +++ b/dev-java/testng/files/testng-6.8-build-tests.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + +BASEDIR =${basedir} +TEST.DIR =${test.dir} +TEST.BUILD.DIR =${test.build.dir} +REPORT.DIR =${report.dir} +JUNIT.REPORT.DIR =${junit.report.dir} +TESTNG.REPORT.DIR=${testng.report.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Report created in open ${testng.report.dir}/index.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reports can be found in: open ${testng.report.dir}/index.html + + + diff --git a/dev-java/testng/files/testng-6.8-remove-ivy-retrieve.patch b/dev-java/testng/files/testng-6.8-remove-ivy-retrieve.patch new file mode 100644 index 000000000000..2d7e91e74587 --- /dev/null +++ b/dev-java/testng/files/testng-6.8-remove-ivy-retrieve.patch @@ -0,0 +1,22 @@ +--- a/build.xml ++++ b/build.xml +@@ -12,7 +12,7 @@ + + + +- + + +@@ -419,10 +419,6 @@ + + + +- +- +- +- + + + diff --git a/dev-java/testng/files/testng-6.8-remove-jar-bundling.patch b/dev-java/testng/files/testng-6.8-remove-jar-bundling.patch new file mode 100644 index 000000000000..ca793971c73a --- /dev/null +++ b/dev-java/testng/files/testng-6.8-remove-jar-bundling.patch @@ -0,0 +1,60 @@ +--- a/build.xml ++++ b/build.xml +@@ -73,9 +73,6 @@ + + + +- +- +- + + + +@@ -195,10 +192,6 @@ + + + +- +- +- +- + + + +@@ -207,9 +200,6 @@ + + + +- +- +- + + + +@@ -218,9 +208,6 @@ + + + +- +- +- + + + +@@ -229,8 +216,6 @@ + + + +- +- + + + +@@ -239,7 +224,6 @@ + + + +- + + + diff --git a/dev-java/testng/metadata.xml b/dev-java/testng/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/testng/metadata.xml @@ -0,0 +1,5 @@ + + + +java + 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..e90b7648a71f --- /dev/null +++ b/dev-java/testng/testng-6.8-r2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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-18-g5258