summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Tsanev2018-04-25 15:23:04 +0300
committerVladimir Tsanev2018-04-25 15:23:04 +0300
commitce64bff6c8a2e5b08ebc85890e0b81f62e91f748 (patch)
tree7bd3edc1ba7baf500f17eac9bb8fd756c7ac0d74
downloadaur-ce64bff6c8a2e5b08ebc85890e0b81f62e91f748.tar.gz
initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD55
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..34cb5dff228
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = jtharness
+ pkgdesc = general purpose, fully-featured, flexible, and configurable test harness very well suited for most types of unit testing
+ pkgver = 6.0_b01
+ pkgrel = 1
+ url = https://wiki.openjdk.java.net/display/CodeTools/JT+Harness
+ arch = any
+ license = GPL2
+ makedepends = mercurial
+ makedepends = apache-ant
+ makedepends = java-environment-openjdk=7
+ makedepends = junit
+ makedepends = java-asm
+ depends = java-runtime>=7
+ optdepends = junit
+ source = http://hg.openjdk.java.net/code-tools/jtharness/archive/jt6.0-b01.tar.gz
+ sha256sums = 8b1957a57e9f49bcd081560251ef1a4c4be6414fb62b512802d48a4d99db23c4
+
+pkgname = jtharness
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..468cd87d3ce
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8e61c962d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Vladimir Tsanev <tsachev@gmail.com>
+pkgname=jtharness
+_version=6.0
+_build=b01
+pkgver=${_version}_${_build}
+pkgrel=1
+pkgdesc="general purpose, fully-featured, flexible, and configurable test harness very well suited for most types of unit testing"
+arch=('any')
+url="https://wiki.openjdk.java.net/display/CodeTools/JT+Harness"
+license=('GPL2')
+groups=()
+depends=('java-runtime>=7')
+makedepends=('mercurial' 'apache-ant' 'java-environment-openjdk=7' 'junit' 'java-asm')
+optdepends=('junit')
+checkdepends=()
+provides=()
+conflicts=()
+install=
+_tag=jt${_version}-${_build}
+source=("http://hg.openjdk.java.net/code-tools/jtharness/archive/${_tag}.tar.gz"
+# "${pkgname}.patch"
+)
+sha256sums=('8b1957a57e9f49bcd081560251ef1a4c4be6414fb62b512802d48a4d99db23c4'
+# 'b20abde2a7d7920404044d62e732c454'
+)
+_jtdir=${pkgname}-jt${_version}-${_build}
+prepare() {
+ cd ${srcdir}/${_jtdir}
+# patch -p1 -i "${srcdir}/${pkgname}.patch"
+}
+
+build() {
+ cd ${srcdir}/${_jtdir}
+ ln -sf /usr/share/java/junit.jar build/junit-4.10.jar
+ ln -sf /usr/share/java/asm/asm.jar build/asm6.jar
+ ln -sf /usr/share/java/asm/asm-commons.jar build/asm-commons6.jar
+ JAVA_HOME=/usr/lib/jvm/java-7-openjdk ant -f build/build.xml
+}
+
+check() {
+ cd ${srcdir}/${_jtdir}
+# test does not compile
+# JAVA_HOME=/usr/lib/jvm/java-7-openjdk ant -f build/build.xml test
+}
+
+package() {
+ cd ${srcdir}/JTHarness-build/binaries
+ install -D -m 644 lib/javatest.jar ${pkgdir}/usr/share/java/${pkgname}/javatest.jar
+ install -D -m 644 lib/jtlite.jar ${pkgdir}/usr/share/java/${pkgname}/jtlite.jar
+ install -Dm644 legal/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ mkdir $pkgdir/usr/share/${pkgname}
+ ln -sf /usr/share/java/${pkgname} $pkgdir/usr/share/${pkgname}/lib
+}
+
+# vim:set ts=2 sw=2 et: