diff options
author | 2012-08-28 18:27:56 +0300 | |
---|---|---|
committer | 2012-08-28 18:27:56 +0300 | |
commit | 94f732d9d687ef3e69ad1ad2e4bfa721b0a083d2 (patch) | |
tree | 68a603f510baf5fd34b725b3f5a8dcd264559525 | |
parent | jcommander-1.13.ebuild wrt#430688 (diff) | |
download | dmol-94f732d9d687ef3e69ad1ad2e4bfa721b0a083d2.tar.gz dmol-94f732d9d687ef3e69ad1ad2e4bfa721b0a083d2.tar.bz2 dmol-94f732d9d687ef3e69ad1ad2e4bfa721b0a083d2.zip |
testng-6.7 wrt#146226
-rw-r--r-- | dev-java/testng/Manifest | 4 | ||||
-rw-r--r-- | dev-java/testng/files/testng-6.7-testng.xml.patch | 53 | ||||
-rw-r--r-- | dev-java/testng/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/testng/testng-6.7.ebuild | 77 |
4 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/testng/Manifest b/dev-java/testng/Manifest new file mode 100644 index 0000000..dcff6b4 --- /dev/null +++ b/dev-java/testng/Manifest @@ -0,0 +1,4 @@ +AUX testng-6.7-testng.xml.patch 2137 SHA256 47824f24f96ad0ae9a2db3ef5a17c9024b8aeb60bd7f920c6a1ab6efa7a4c3b5 SHA512 53cf2e4da01d07b78b0f7b98bd4aa2357feb53de7b36024643624a0e7ee471acc3ddd1e3cbd61be61dd3ff07545bb424f3965a74fd70747ae4972336b39a861c WHIRLPOOL 5e6525de5651d153ddb80148a06b347c6a10e37dd939bd0f5a460708e752b0c307c19585b25e8d8a26620221feec77273d21a192322628b548d2c11fd3a66366 +DIST testng-6.7.zip 15086898 SHA256 5edaef47dcbec8c67dc79e66254e5a43e416bcbf7807fb6b5b1c1a5d55765d04 SHA512 6ac0beb26892be74435691f573f5e8e9a13f98439b1360dca327ca750ac20f41126f28e51512c66ef21fdae357b3e6b5fd8cfd5c3db9ae5ed4df9b94b9f49533 WHIRLPOOL a77c123694a46b84bae0cfeb58d3ffed5af38045e94415827386929d7d0c327c39e65c57a90e80c86a415baf751cf8488f907514150078a859db542bfd4a5e5a +EBUILD testng-6.7.ebuild 1935 SHA256 c0b741ddffcd59b15a89473a279e933957deaf358390117246855dd540135e69 SHA512 1dbfc5bb51b8966022ea9aad07270a69f44f19e73786b44d00dfdb53e3c808073cfeecdcb7aef719f7fd59c204f17e5c9148098e5f71eeec6a685253c5677685 WHIRLPOOL becfcc3b32d206b059604f2f08f72e813a63b418d540c4b1248edab029240a994ee5757dffd5df116dc4d4076f78972f4953b77afa1fea68c6a4febec40c0e2e +MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27 diff --git a/dev-java/testng/files/testng-6.7-testng.xml.patch b/dev-java/testng/files/testng-6.7-testng.xml.patch new file mode 100644 index 0000000..f8c3b64 --- /dev/null +++ b/dev-java/testng/files/testng-6.7-testng.xml.patch @@ -0,0 +1,53 @@ +--- /tmp/1/cbeust-testng-9aa9b2e/src/test/resources/testng.xml 2012-07-14 17:22:50.000000000 +0300 ++++ src/test/resources/testng.xml 2012-08-28 18:09:17.366987965 +0300 +@@ -79,8 +79,10 @@ + <!-- + <class name="test.reports.ReportTest" /> + --> +- <class name="test.annotationtransformer.AnnotationTransformerTest" /> ++ <class name="test.annotationtransformer.AnnotationTransformerTest" /> ++<!-- + <class name="test.jar.JarTest" /> ++--> + <class name="test.xml.XmlVerifyTest" /> + <class name="test.invokedmethodlistener.InvokedMethodListenerTest" /> + <class name="test.testng249.VerifyTest"/> +@@ -89,7 +91,7 @@ + <class name="test.testng285.TestNG285Test" /> + <class name="test.failedreporter.FailedReporterTest" /> + <class name="test.attributes.AttributeTest"/> +- <class name="test.verify.VerifyTest"/> ++ <class name="test.verify.VerifyTest"/> + <class name="test.abstractconfmethod.C" /> + <class name="test.preserveorder.PreserveOrderTest" /> + <class name="test.SerializationTest" /> +@@ -105,7 +107,9 @@ + <class name="test.configuration.ConfigurationListenerTest" /> + <class name="test.groupinvocation.GroupSuiteTest" /> + <class name="test.StaticTest" /> ++<!-- + <class name="test.serviceloader.ServiceLoaderTest" /> ++--> + <class name="test.commandline.CommandLineOverridesXml" /> + <class name="test.jason.MainTest" /> + <class name="test.bug90.Bug90Test" /> +@@ -147,7 +151,9 @@ + + <test name="Injection"> + <classes> ++ <!-- + <class name="test.inject.InjectTestContextTest"/> ++ --> + <class name="test.inject.InjectBeforeMethodTest"/> + <class name="test.inject.InjectTestResultTest" /> + <class name="test.inject.InjectDataProviderTest"/> +@@ -438,7 +444,9 @@ + <test name="Method selectors"> + <classes> + <class name="test.methodselectors.MethodSelectorTest" /> ++ <!-- + <class name="test.methodselectors.BeanShellTest" /> ++ --> + <class name="test.methodselectors.CommandLineTest" /> + <class name="test.methodselectors.MethodSelectorInSuiteTest" /> + </classes> diff --git a/dev-java/testng/metadata.xml b/dev-java/testng/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/testng/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/testng/testng-6.7.ebuild b/dev-java/testng/testng-6.7.ebuild new file mode 100644 index 0000000..0465d2f --- /dev/null +++ b/dev-java/testng/testng-6.7.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +JAVA_PKG_IUSE="doc examples source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="TestNG is a testing framework inspired from JUnit and NUnit" +HOMEPAGE="http://testng.org/" +SRC_URI="https://nodeload.github.com/cbeust/${PN}/zipball/${P} -> ${P}.zip" + +LICENSE="Apache-2.0" +SLOT="6" +KEYWORDS="~amd64" +IUSE="" + +CDEPEND="dev-java/bsh + dev-java/ant-core + dev-java/jcommander:1.13 + dev-java/qdox:1.6 + dev-java/snakeyaml + dev-java/guice:2 + dev-java/junit:4" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + test? ( dev-java/junit ) + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" + +JAVA_ANT_REWRITE_CLASSPATH=1 +JAVA_PKG_BSFIX_NAME="build.xml build-tests.xml" +JAVA_ANT_CLASSPATH_TAGS+=" testng javadoc" +JAVA_PKG_FILTER_COMPILER="ecj-3.7" + +EANT_GENTOO_CLASSPATH="ant-core,bsh,qdox-1.6,junit-4,jcommander-1.13,snakeyaml,guice-2" +EANT_BUILD_TARGET="compile create-jar" +#include target jar into javadocs generation as containing required annotation classes +EANT_GENTOO_CLASSPATH_EXTRA="./${PN}.jar" +EANT_DOC_TARGET="javadocs" + +EANT_TEST_TARGET="tests" + +S="${WORKDIR}/cbeust-testng-9aa9b2e" + +java_prepare() { + find . -iname '*.jar' -exec rm -v {} + + + #remove bundled classes + rm -v src/test/java/test/jar/test/jar/*.class + + #remove ivy support + sed -i -e 's/.*ivy:.*//' build.xml + mkdir lib + #fix output jar filename + sed -i -e "s/\${jar.file}/${PN}.jar/" build.xml + + epatch "${FILESDIR}/${P}-testng.xml.patch" +} + +src_test() { + EANT_GENTOO_CLASSPATH+=",junit" + cp "${PN}.jar" "target/${P}.jar" || die + eant -f build-tests.xml run +} + +src_install() { + java-pkg_dojar "${PN}.jar" + java-pkg_dolauncher testng --main org.testng.TestNG + java-pkg_register-ant-task + + use doc && java-pkg_dojavadoc javadocs/ + use source && java-pkg_dosrc src/main/org/ src/main/com/ + use examples && java-pkg_doexamples examples/ +} |