summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/java-asm2/PKGBUILD74
-rw-r--r--libre/java-asm3/PKGBUILD (renamed from libre/java-asm/PKGBUILD)8
-rw-r--r--libre/java-ow-util-ant-tasks/PKGBUILD27
-rw-r--r--libre/java-ow-util-ant-tasks/SRCBUILD29
4 files changed, 134 insertions, 4 deletions
diff --git a/libre/java-asm2/PKGBUILD b/libre/java-asm2/PKGBUILD
new file mode 100644
index 000000000..9f42e977d
--- /dev/null
+++ b/libre/java-asm2/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=asm
+pkgname=java-asm2
+pkgver=2.2.3
+pkgrel=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")
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ mkdir -p test/lib
+ echo 'objectweb.ant.tasks.path /usr/share/java/ow_util_ant_tasks.jar' >> build.properties
+ ant dist
+}
+
+mvn-install() {
+ group=$1
+ pkg=$2
+ ver=$3
+
+ dir="$pkgdir"/usr/share/maven/repository/$group/$pkg/$ver
+ install -d "$dir"
+ cp $pkg-$pkgver.* "$dir"
+}
+
+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
+ mvn-install asm asm $pkgver
+ mvn-install asm asm-analysis $pkgver
+ mvn-install asm asm-attrs $pkgver
+ mvn-install asm asm-commons $pkgver
+ mvn-install asm asm-tree $pkgver
+ mvn-install asm asm-util $pkgver
+ mvn-install asm asm-xml $pkgver
+ cd all
+ mvn-install asm asm-all $pkgver
+
+ # Synlink Maven modules to /usr/share/java
+ install -d "$pkgdir"/usr/share/java/asm
+ cd "$pkgdir"
+ find usr/share/maven/repository/asm \
+ -type f -name '*.jar' -printf '/%p\n' | while read jar; do
+ ln -s "$jar" "$pkgdir"/usr/share/java/asm
+ done
+
+ # Put the finishing touches on /usr/share/java
+ ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm-2.jar
+ 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/libre/java-asm/PKGBUILD b/libre/java-asm3/PKGBUILD
index 382b9c177..2c6a7f933 100644
--- a/libre/java-asm/PKGBUILD
+++ b/libre/java-asm3/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
_pkgname=asm
-pkgname=java-asm
+pkgname=java-asm3
pkgver=3.3.1
-pkgrel=2
+pkgrel=3
pkgdesc="An all purpose Java bytecode manipulation and analysis framework."
arch=('any')
url="http://asm.ow2.org/"
@@ -75,9 +75,9 @@ package() {
done
# Put the finishing touches on /usr/share/java
- ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm.jar
+ ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm-3.jar
cd "$srcdir/$_pkgname-$pkgver"
- install -m644 output/dist/lib/all/README.txt "$pkgdir"/usr/share/java/asm
+ install -m644 output/dist/lib/all/README.txt "$pkgdir"/usr/share/java/asm/README-$pkgver.txt
}
md5sums=('433024df8176f09922646316e415631c')
diff --git a/libre/java-ow-util-ant-tasks/PKGBUILD b/libre/java-ow-util-ant-tasks/PKGBUILD
new file mode 100644
index 000000000..023048188
--- /dev/null
+++ b/libre/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/libre/java-ow-util-ant-tasks/SRCBUILD b/libre/java-ow-util-ant-tasks/SRCBUILD
new file mode 100644
index 000000000..01241907d
--- /dev/null
+++ b/libre/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')