summaryrefslogtreecommitdiff
path: root/dev-java/testng
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/testng
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/testng')
-rw-r--r--dev-java/testng/Manifest3
-rw-r--r--dev-java/testng/metadata.xml11
-rw-r--r--dev-java/testng/testng-6.9.10.ebuild69
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/testng/Manifest b/dev-java/testng/Manifest
new file mode 100644
index 000000000000..6204c925ed38
--- /dev/null
+++ b/dev-java/testng/Manifest
@@ -0,0 +1,3 @@
+DIST testng-6.9.10.tar.gz 6271781 BLAKE2B 5b77f4b1d9bfdca6749a1d33f465a30bcd9ab9dd9fc37abf8148301c24d6bf287224d9886c0f681deac54e12f9460139ce2a2058b3d160c05cf8fcb9f7808373 SHA512 ed9ad1ced20904ab261d2a233f3fa43ee1ea31778e992cdd27459811b256a6998d8385dd01ff72821133208a1fbd72aa3599a4b8bc0eb4d7b696d34593f9567e
+EBUILD testng-6.9.10.ebuild 1752 BLAKE2B b353be7f15254d660c500b6c39c3910354f2cdee1aed557cc958667b3d350407355b74f9e181d0102f7a86e713e21899435e83c64824d90d83138d068abd8b86 SHA512 827f51b3f53200be76d64720f02e30746091f50ea684589f1fc1df692e7712a17508fa83f3aeb1270e5063bcdfa18f93c18ea52c5411ee1461a973d73745a118
+MISC metadata.xml 314 BLAKE2B 827119483a30d9ad2a35c20ad9149f941326fe6eb74c0a10401bf8b96ae07b233fc4177f87b1fae02c6d766304ff3002d70c8b9aaa9ff87f9ae951793e191d6d SHA512 dc86504b0f3aa0bcd4adf4470e7391a05eb5cead186f79b0fc35ee3dd57ca1c927454e4150463376ca37ba5396e9f75328bdb8969613457a9ddadbd5ab81cf98
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
+}