diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-18 17:09:55 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-18 17:48:30 -0400 |
commit | bbd428cf29cf1b28325a661e7f6ddcddac0226d4 (patch) | |
tree | 2ff30d09f791162f07b9bc58607ec4b8664ccb3f /java | |
parent | 42735e67c78a104933d4d3184f704149815f7b38 (diff) |
mv libre/java-* java/
Diffstat (limited to 'java')
-rwxr-xr-x | java/java-asm2/PKGBUILD | 76 | ||||
-rwxr-xr-x | java/java-asm3/PKGBUILD | 78 | ||||
-rwxr-xr-x | java/java-ow-util-ant-tasks/PKGBUILD | 27 | ||||
-rwxr-xr-x | java/java-ow-util-ant-tasks/SRCBUILD | 29 |
4 files changed, 210 insertions, 0 deletions
diff --git a/java/java-asm2/PKGBUILD b/java/java-asm2/PKGBUILD new file mode 100755 index 000000000..4853d79c0 --- /dev/null +++ b/java/java-asm2/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm2 +_pkgver=2 +pkgver=2.2.3 +pkgrel=4 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +arch=('any') +url="http://asm.ow2.org/" +license=('custom:BSD3') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks +) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +_M2_LOCALREPO='/usr/share/maven/repository' +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' +_m2_packages=( + asm + asm-analysis + asm-attrs + asm-commons + asm-tree + asm-util + asm-xml + asm-all) + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + mkdir -p test/lib + + echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties + ant dist + + # This will make package() easier: + cd output/dist/lib + ln -s all/* . +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # Install license file + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd output/dist + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install Apache Maven modules + cd lib + install -d "$pkgdir"/usr/share/java/asm + for pkg in "${_m2_packages[@]}"; do + dir="$_M2_LOCALREPO"/asm/$pkg/$pkgver + # Create the Maven directory + install -d "$pkgdir$dir" + # Install the files + cp $pkg-$pkgver.* "$pkgdir$dir" + # Symlink them to /usr/share/java + ln -s "$dir"/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/asm/ + ln -s asm/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/$pkg-$_pkgver.jar + done + + # Install a README file about the -all files + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt \ + "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('7a92c87bf067925685cf68dcc0dd8998') diff --git a/java/java-asm3/PKGBUILD b/java/java-asm3/PKGBUILD new file mode 100755 index 000000000..7e66a5b5a --- /dev/null +++ b/java/java-asm3/PKGBUILD @@ -0,0 +1,78 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm3 +_pkgver=3 +pkgver=3.3.1 +pkgrel=4.1 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +arch=('any') +url="http://asm.ow2.org/" +license=('custom:BSD3') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks +) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +_M2_LOCALREPO='/usr/share/maven/repository' +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' +_m2_packages=( + asm + asm-analysis + asm-commons + asm-parent + asm-tree + asm-util + asm-xml + asm-all + asm-debug-all) + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + rm cobertura.ser # We regenerate this + rm examples/jasmin/test/jasmin.jar + + echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties + ant dist + + # This will make package() easier: + cd output/dist/lib + ln -s all/* . +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # Install license file + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd output/dist + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install Apache Maven modules + cd lib + install -d "$pkgdir"/usr/share/java/asm + for pkg in "${_m2_packages[@]}"; do + dir="$_M2_LOCALREPO"/asm/$pkg/$pkgver + # Create the Maven directory + install -d "$pkgdir$dir" + # Install the files + cp $pkg-$pkgver.* "$pkgdir$dir" + # Symlink them to /usr/share/java + ln -s "$dir"/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/asm/ + ln -s asm/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/$pkg-$_pkgver.jar + done + + # Install a README file about the -all files + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt \ + "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('433024df8176f09922646316e415631c') diff --git a/java/java-ow-util-ant-tasks/PKGBUILD b/java/java-ow-util-ant-tasks/PKGBUILD new file mode 100755 index 000000000..023048188 --- /dev/null +++ b/java/java-ow-util-ant-tasks/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-ow-util-ant-tasks +pkgver=1.3.2 +pkgrel=1 +pkgdesc="ObjectWeb utility Ant tasks library" +arch=('any') +url="http://forge.ow2.org/projects/monolog" +license=('LGPL') +depends=('java-environment') +makedepends=('apache-ant' 'xalan-java' 'java-asm2') +source=("http://repo.parabolagnulinux.org/sources/${pkgname}-${pkgver}-1-any.src.tar.xz") + +build() { + cd "$srcdir/$pkgname-$pkgver" + ln -s /usr/share/java/asm-2.jar externals + ln -s /usr/share/java/xalan.jar externals + ant jar +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir"/usr/share/java + install -m644 "output/lib/ow_util_ant_tasks.jar" "$pkgdir"/usr/share/java +} + +md5sums=('339b3eb4b2960473a42f5f781afbeca6') diff --git a/java/java-ow-util-ant-tasks/SRCBUILD b/java/java-ow-util-ant-tasks/SRCBUILD new file mode 100755 index 000000000..01241907d --- /dev/null +++ b/java/java-ow-util-ant-tasks/SRCBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-ow-util-ant-tasks +pkgver=1.3.2 +pkgrel=1 +pkgdesc="ObjectWeb utility Ant tasks library" +arch=('any') +url="http://forge.ow2.org/projects/monolog" +license=('LGPL') +source=("http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_$pkgver.zip") +noextract=("ow_util_ant_tasks_$pkgver.zip") + +build() { + cd "$srcdir" + mkdir $pkgname-$pkgver + cd $pkgname-$pkgver + bsdtar xf "$srcdir"/ow_util_ant_tasks_$pkgver.zip + rm -rf output + rm externals/* +} + + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/" +} + +md5sums=('cd602bf75a0feab480fa97739955b84e') |