diff options
author | Simon Frankenberger <simon@fraho.eu> | 2019-02-06 23:59:41 +0100 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-12 16:43:41 +0000 |
commit | 5c149aeee70bf15302b0dd0ee32278659b6a5a68 (patch) | |
tree | 527e113e071066bbde83d26b86d62f1e563a91fd /testing/java-asmtools | |
parent | 0606c48a145f3288a90c50519f26cb96ffd83eb6 (diff) | |
download | aports-5c149aeee70bf15302b0dd0ee32278659b6a5a68.tar.bz2 aports-5c149aeee70bf15302b0dd0ee32278659b6a5a68.tar.xz |
testing/java-asmtools: new aport
Diffstat (limited to 'testing/java-asmtools')
-rw-r--r-- | testing/java-asmtools/APKBUILD | 49 | ||||
-rw-r--r-- | testing/java-asmtools/source-target.patch | 26 |
2 files changed, 75 insertions, 0 deletions
diff --git a/testing/java-asmtools/APKBUILD b/testing/java-asmtools/APKBUILD new file mode 100644 index 0000000000..8a535d431e --- /dev/null +++ b/testing/java-asmtools/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Simon Frankenberger <simon-alpine@fraho.eu> +# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu> +pkgname=java-asmtools +_pkgver=7.0-b06 +pkgver=${_pkgver/-b/.} +pkgrel=0 +pkgdesc="The AsmTools open source project is used to develop tools for the production of proper and improper Java '.class' files" +url="http://hg.openjdk.java.net/code-tools/asmtools" +arch="noarch" +license="GPL-2.0" +makedepends="openjdk8" +options="!check" # this package has no tests +subpackages="$pkgname-doc:_doc" +source="asmtools-$_pkgver.tar.bz2::http://hg.openjdk.java.net/code-tools/asmtools/archive/$_pkgver.tar.bz2 +http://ftp-stud.hs-esslingen.de/pub/Mirrors//ftp.apache.org/dist/ant/binaries/apache-ant-1.9.13-bin.zip +" +builddir="$srcdir/asmtools-$_pkgver" + +_ant_home="$srcdir"/apache-ant-1.9.13/ + +build() { + cd "$builddir/build" + + # fix the build target directory + sed -i "s@^BUILD_DIR.\+@BUILD_DIR = $builddir/target@" build.properties + + $_ant_home/bin/ant +} + +package() { + _destdir="$pkgdir/usr/share/java/asmtools" + mkdir -p "$_destdir" + cp -r \ + $builddir/target/binaries/lib \ + $builddir/target/binaries/LICENSE \ + "$_destdir" +} + +_doc() { + _destdir="$subpkgdir/usr/share/java/asmtools" + mkdir -p "$_destdir" + cp -r \ + $builddir/target/binaries/doc \ + $builddir/target/binaries/README.html \ + "$_destdir" +} + +sha512sums="c910cd36a93de648b1dde613b856cdde124a4b46469ff2cff62ebd17c83fc35573b212e50e38a396fb1e43fe6427aa60cb4eb6bfe4c0d641e4c057b6e28f114e asmtools-7.0-b06.tar.bz2 +873062cf789e1572ec4ef3cdbb15c0d3a57e5a0794068591565367d4cec15b9f9a24f59734a85170d61b23eb9288d6bafd35a9ae2b015b09c7a175e344cb4e1c apache-ant-1.9.13-bin.zip" diff --git a/testing/java-asmtools/source-target.patch b/testing/java-asmtools/source-target.patch new file mode 100644 index 0000000000..351408b7c7 --- /dev/null +++ b/testing/java-asmtools/source-target.patch @@ -0,0 +1,26 @@ +--- a/build/build.xml ++++ b/build/build.xml +@@ -290,6 +290,7 @@ + <delete dir="${build.classes}" quiet="true"/> + <mkdir dir="${build.classes}"/> + <javac encoding="iso-8859-1" debug="true" target="1.7" ++ source="1.7" + srcdir="${src.dir}" + sourcepath="" + destdir="${build.classes}" +@@ -307,6 +308,7 @@ + <target name="compile.test.copyright.classes"> + <mkdir dir="${build.classes}"/> + <javac encoding="iso-8859-1" debug="true" target="1.7" ++ source="1.7" + srcdir="${test.dir}" + destdir="${build.classes}" + classpath="${jdk14.classpath}"> +@@ -320,6 +322,7 @@ + + <mkdir dir="${build.junit.classes}"/> + <javac encoding="iso-8859-1" debug="true" target="1.7" ++ source="1.7" + srcdir="${src.dir}" + destdir="${build.junit.classes}" + classpath="${jdk14.classpath}:${build.classes}:${bytecodelib}:${junitlib}"> |