diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/testng |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/testng')
-rw-r--r-- | dev-java/testng/Manifest | 5 | ||||
-rw-r--r-- | dev-java/testng/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/testng/testng-6.9.10.ebuild | 69 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-java/testng/Manifest b/dev-java/testng/Manifest new file mode 100644 index 000000000000..58ecbaa115aa --- /dev/null +++ b/dev-java/testng/Manifest @@ -0,0 +1,5 @@ +DIST testng-6.9.10.tar.gz 6271781 SHA256 2155f0461f6b80433781968b9465627f877ea579086cb4149ca68e5e711d8127 SHA512 ed9ad1ced20904ab261d2a233f3fa43ee1ea31778e992cdd27459811b256a6998d8385dd01ff72821133208a1fbd72aa3599a4b8bc0eb4d7b696d34593f9567e WHIRLPOOL 38ae9ac8732ee96f0c0c9f48e5e5ba1cef342ea2f866322d22064b8aca4d405318fcce8e4a1bd7ba6276645429fe3a9ec8be42a8e2065cbb0d99dc6b2a0059d7 +EBUILD testng-6.9.10.ebuild 1752 SHA256 3649fc872b58e1e07002ebf42bc30982b38d3338e4c067f39e61b9a24abdaf25 SHA512 827f51b3f53200be76d64720f02e30746091f50ea684589f1fc1df692e7712a17508fa83f3aeb1270e5063bcdfa18f93c18ea52c5411ee1461a973d73745a118 WHIRLPOOL 8c2d6b210069a39dcc87efebf7dd78c2a8b659a8342c9adca90b6e42841f73027894d9d554730eeb7741c50f2dd214cd256c4887b99c4b6f4676f9b507df6940 +MISC ChangeLog 4110 SHA256 db5a203e8ca5e555a54e02b5f04cbd3d335f8d8a00e15dca788a944606af6194 SHA512 38973691a6d5ec57df832e2ba84aee8b15f539b256a81f609f2f6328bc8fae00967a92a39a23c6f93df90da1437b8cc3d03110f073abf1603d7b6a0683653aa1 WHIRLPOOL bec49025142520dee51605892fea333980c439f7669476b3483b7895d652b067c924b04a446296c69b0f688bfe9c8f37e9b1d3f587c2ac8db32cdb9e35763200 +MISC ChangeLog-2015 1262 SHA256 a2d0b8533acecb538e23f8cb7b78e44d0d11b3c22e6f988fdc11a37357f18495 SHA512 8be9821cdef98778489c613b4964432e1edeaf763a8987c3350cd3c9f194f1983b0183e969465ae192c73a24f712679e00668bcfba90e3e7f83dc1e313629f85 WHIRLPOOL d8c72b99a88f9be7f2de2e02887cba945a1a18596a88cddde911c637cce66c0e9d6bb644df5f1273d95e6a266873c4117c606bea56f4704f50c2c95fa54660fa +MISC metadata.xml 314 SHA256 b3164e5415960b6a76bf92fda1c1bb4b6113c5050a8c1d3120bd6243097eebf5 SHA512 dc86504b0f3aa0bcd4adf4470e7391a05eb5cead186f79b0fc35ee3dd57ca1c927454e4150463376ca37ba5396e9f75328bdb8969613457a9ddadbd5ab81cf98 WHIRLPOOL caee20cf8d53b569a9afb54b2a3af4da3c0f19e137fcaef7f7d1004a8c12c593af8c9b78f511b65ee4e2bcc7c1b1792ea1addf0fbfbbfdbe5fa235f3205bd182 diff --git a/dev-java/testng/metadata.xml b/dev-java/testng/metadata.xml new file mode 100644 index 000000000000..741d9407384d --- /dev/null +++ b/dev-java/testng/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">cbeust/testng</remote-id> + </upstream> +</pkgmetadata> 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..6a886240f14c --- /dev/null +++ b/dev-java/testng/testng-6.9.10.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |