From 3668cce7ff47496a3d1a24e154ac87629832d10d Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Thu, 8 Feb 2018 07:46:46 +0100 Subject: java/* moved to pcr/ --- java-ugly/not-working/java-bnd/PKGBUILD | 24 ------------ java/byaccj/PKGBUILD | 36 ------------------ java/byaccj/ldflags.patch | 12 ------ java/java-asm2/PKGBUILD | 18 --------- java/java-asm2/PKGBUILD-bootstrap | 24 ------------ java/java-asm2/PKGBUILD.common.sh | 65 --------------------------------- java/java-asm3/PKGBUILD | 17 --------- java/java-asm3/PKGBUILD.common.sh | 1 - java/java-cup/PKGBUILD | 41 --------------------- java/java-cup/java-cup.sh | 2 - java/java-sonatype-oss-parent/PKGBUILD | 21 ----------- java/not-working/java-bnd/PKGBUILD | 24 ------------ java/not-working/junit-truth/PKGBUILD | 45 ----------------------- java/not-working/junit-truth/TODO | 1 - pcr/byaccj/PKGBUILD | 36 ++++++++++++++++++ pcr/byaccj/ldflags.patch | 12 ++++++ pcr/java-asm2/PKGBUILD | 18 +++++++++ pcr/java-asm2/PKGBUILD-bootstrap | 24 ++++++++++++ pcr/java-asm2/PKGBUILD.common.sh | 65 +++++++++++++++++++++++++++++++++ pcr/java-asm3/PKGBUILD | 17 +++++++++ pcr/java-asm3/PKGBUILD.common.sh | 1 + pcr/java-bnd/PKGBUILD | 24 ++++++++++++ pcr/java-cup/PKGBUILD | 41 +++++++++++++++++++++ pcr/java-cup/java-cup.sh | 2 + pcr/java-sonatype-oss-parent/PKGBUILD | 21 +++++++++++ pcr/junit-truth/PKGBUILD | 45 +++++++++++++++++++++++ pcr/junit-truth/TODO | 1 + 27 files changed, 307 insertions(+), 331 deletions(-) delete mode 100644 java-ugly/not-working/java-bnd/PKGBUILD delete mode 100644 java/byaccj/PKGBUILD delete mode 100644 java/byaccj/ldflags.patch delete mode 100644 java/java-asm2/PKGBUILD delete mode 100644 java/java-asm2/PKGBUILD-bootstrap delete mode 100644 java/java-asm2/PKGBUILD.common.sh delete mode 100644 java/java-asm3/PKGBUILD delete mode 120000 java/java-asm3/PKGBUILD.common.sh delete mode 100644 java/java-cup/PKGBUILD delete mode 100644 java/java-cup/java-cup.sh delete mode 100644 java/java-sonatype-oss-parent/PKGBUILD delete mode 100644 java/not-working/java-bnd/PKGBUILD delete mode 100644 java/not-working/junit-truth/PKGBUILD delete mode 100644 java/not-working/junit-truth/TODO create mode 100644 pcr/byaccj/PKGBUILD create mode 100644 pcr/byaccj/ldflags.patch create mode 100644 pcr/java-asm2/PKGBUILD create mode 100644 pcr/java-asm2/PKGBUILD-bootstrap create mode 100644 pcr/java-asm2/PKGBUILD.common.sh create mode 100644 pcr/java-asm3/PKGBUILD create mode 120000 pcr/java-asm3/PKGBUILD.common.sh create mode 100644 pcr/java-bnd/PKGBUILD create mode 100644 pcr/java-cup/PKGBUILD create mode 100644 pcr/java-cup/java-cup.sh create mode 100644 pcr/java-sonatype-oss-parent/PKGBUILD create mode 100644 pcr/junit-truth/PKGBUILD create mode 100644 pcr/junit-truth/TODO diff --git a/java-ugly/not-working/java-bnd/PKGBUILD b/java-ugly/not-working/java-bnd/PKGBUILD deleted file mode 100644 index 86820469a..000000000 --- a/java-ugly/not-working/java-bnd/PKGBUILD +++ /dev/null @@ -1,24 +0,0 @@ -# Maintainer: Luke Shumaker - -_pkgname=bnd -pkgname=java-bnd -pkgver=1.50.0 -pkgdesc="A swiss army knife for OSGi" -url="http://www.aqute.biz/Bnd/" -license=('Apache2') - -pkgrel=1 -arch=(any) -makedepends=('apache-ant' 'junit') -source=("git://github.com/bndtools/bnd.git") - -build() { - cd "$srcdir/$_pkgname" - ant dist -} - -package() { - : -} - -md5sums=('SKIP') diff --git a/java/byaccj/PKGBUILD b/java/byaccj/PKGBUILD deleted file mode 100644 index 10f2bef95..000000000 --- a/java/byaccj/PKGBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Maintainer: Luke Shumaker -# Maintainer (AUR): - -pkgname=byaccj -pkgver=1.15 -pkgdesc="Berkeley yacc with Java output" -url="http://byaccj.sourceforge.net/" -license=('custom:Public Domain') - -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -source=(http://downloads.sourceforge.net/project/byaccj/${pkgname}/${pkgver}/${pkgname}${pkgver}_src.tar.gz - http://metadata.ftp-master.debian.org/changelogs/main/b/byacc-j/byacc-j_${pkgver}-1_copyright - ldflags.patch) -md5sums=('5ee9959af35f245ac2c4355f85fdf351' - 'cc9e2ed821e7f2e5ef8f2be0fdc97b46' - '76fd678b41d614497cf77c6dba5de63e') - -prepare() { - cd "$srcdir"/$pkgname$pkgver - patch -Np1 -i ../ldflags.patch -} - -build() { - cd "$srcdir"/$pkgname$pkgver - make -C src linux CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" -} - -package() { - cd "$srcdir"/$pkgname$pkgver - install -Dm755 src/yacc.linux "$pkgdir"/usr/bin/byaccj - install -Dm644 src/yacc.1 "$pkgdir"/usr/share/man/man1/byaccj.1 - install -d "$pkgdir"/usr/share/doc/$pkgname - install -m644 docs/* -t "$pkgdir"/usr/share/doc/$pkgname - install -Dm644 ../byacc-j_$pkgver-1_copyright "$pkgdir"/usr/share/licenses/$pkgname/copyright -} diff --git a/java/byaccj/ldflags.patch b/java/byaccj/ldflags.patch deleted file mode 100644 index 81574d011..000000000 --- a/java/byaccj/ldflags.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru byaccj1.15.orig/src/Makefile byaccj1.15/src/Makefile ---- byaccj1.15.orig/src/Makefile 2014-06-04 11:10:43.711980001 -0400 -+++ byaccj1.15/src/Makefile 2014-06-04 11:13:00.635987894 -0400 -@@ -75,7 +75,7 @@ - $(CC) -c $(CFLAGS) $(INC) $< -o $@ - - yacc: $(OBJ) -- $(CC) -o yacc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 $(OBJ) -+ $(CC) -o yacc $(LDFLAGS) $(OBJ) - @echo "done" - - clean: diff --git a/java/java-asm2/PKGBUILD b/java/java-asm2/PKGBUILD deleted file mode 100644 index 8860ef86f..000000000 --- a/java/java-asm2/PKGBUILD +++ /dev/null @@ -1,18 +0,0 @@ -# Maintainer: Luke Shumaker - -pkgver=2.2.3 -. PKGBUILD.common.sh - -#### - -pkgrel=7 - -mksource() { - cd "$srcdir/$_pkgname-$pkgver" - rm test/conform/org/objectweb/asm/attrs/StackMapTableSample.data - rm test/conform/cases/*.class - mkdir -p test/lib -} - -mkmd5sums=('7a92c87bf067925685cf68dcc0dd8998') -md5sums=('c2119ab39618cb49ca4e4ad74344b488') diff --git a/java/java-asm2/PKGBUILD-bootstrap b/java/java-asm2/PKGBUILD-bootstrap deleted file mode 100644 index cbe29bb34..000000000 --- a/java/java-asm2/PKGBUILD-bootstrap +++ /dev/null @@ -1,24 +0,0 @@ -# Maintainer: Luke Shumaker - -# "java-asm2" is required to build "java-ow-util-ant-tasks", which is in turn -# required to build "java-asm2". - -. PKGBUILD - -makedepends=(jh) -source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver-bin.zip") -unset mksource -_distdir="$_pkgname-$pkgver" - -provides+=("$pkgname=$pkgver") -pkgname+='-bootstrap' -pkgdesc+=" (prebuilt binary release for bootstrapping purposes)" - -build() { - cd "$srcdir/$_pkgname-$pkgver" - echo "3-clause BSD license; install the non-bootstrap version for full text" > LICENSE.txt - cd "$srcdir/$_distdir/lib" - ln -s all/* . -} - -md5sums=('9bedaa1d00c5b5f1c7fec10a2d2f7142') diff --git a/java/java-asm2/PKGBUILD.common.sh b/java/java-asm2/PKGBUILD.common.sh deleted file mode 100644 index ef4547696..000000000 --- a/java/java-asm2/PKGBUILD.common.sh +++ /dev/null @@ -1,65 +0,0 @@ -# Maintainer: Luke Shumaker - -_pkgname=asm -pkgname=java-asm${pkgver%%.*} -pkgdesc="An all purpose Java bytecode manipulation and analysis framework." -url="http://asm.ow2.org/" -license=('custom:BSD3') - -arch=('any') -depends=('java-runtime') -makedepends=( - apache-ant - java-ow-util-ant-tasks - jh -) -source=("libre://$pkgname-$pkgver.tar.gz") -mksource=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") - -_distdir="$_pkgname-$pkgver/output/dist" -_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' - -build() { - cd "$srcdir/$_pkgname-$pkgver" - - echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties - ant dist - - # This will make package() easier: - cd "$srcdir/$_distdir/lib" - ln -sf all/* . -} - -package() { - # Install license file - cd "$srcdir/$_pkgname-$pkgver" - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - # Install documentation - cd "$srcdir/$_distdir" - 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 the README about the -all files - cd "$srcdir/$_distdir/lib" - install -Dm644 README.txt \ - "$pkgdir"/usr/share/java/$_pkgname/README-$pkgver.txt - - # Install Maven artifacts - export DESTDIR=$pkgdir - for artifact in $(printf '%s\n' *.pom|sed 's/-[0-9.]*\.pom$//'); do - if [[ -f $artifact-$pkgver.jar ]]; then - # This artifact has a jar file - jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.{pom,jar} - # Symlink them to /usr/share/java - ln -s "$(jh mvn-basename asm $artifact $pkgver).jar" \ - "$pkgdir"/usr/share/java/$_pkgname/ - ln -s $_pkgname/$artifact-$pkgver.jar \ - "$pkgdir"/usr/share/java/$artifact-${pkgver%%.*}.jar - else - # This artifact is just a pom - jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.pom - fi - done -} diff --git a/java/java-asm3/PKGBUILD b/java/java-asm3/PKGBUILD deleted file mode 100644 index 9c9928766..000000000 --- a/java/java-asm3/PKGBUILD +++ /dev/null @@ -1,17 +0,0 @@ -# Maintainer: Luke Shumaker - -pkgver=3.3.1 -. PKGBUILD.common.sh - -#### - -pkgrel=7 - -mksource() { - cd "$srcdir/$_pkgname-$pkgver" - rm cobertura.ser # We regenerate this - rm examples/jasmin/test/jasmin.jar -} - -mkmd5sums=('433024df8176f09922646316e415631c') -md5sums=('c49fb45629cf8670b7f46b95013141cd') diff --git a/java/java-asm3/PKGBUILD.common.sh b/java/java-asm3/PKGBUILD.common.sh deleted file mode 120000 index e76a92ae0..000000000 --- a/java/java-asm3/PKGBUILD.common.sh +++ /dev/null @@ -1 +0,0 @@ -../java-asm2/PKGBUILD.common.sh \ No newline at end of file diff --git a/java/java-cup/PKGBUILD b/java/java-cup/PKGBUILD deleted file mode 100644 index 97b41e20b..000000000 --- a/java/java-cup/PKGBUILD +++ /dev/null @@ -1,41 +0,0 @@ -# Maintainer: Luke Shumaker - -pkgname=java-cup -_pkgver=0.10k -pkgver=0.10.k -pkgdesc="LALR parser generator for Java" -url=http://www2.cs.tum.edu/projects/cup/ -license=('custom:MIT') - -pkgrel=1 -arch=('any') -depends=('java-environment') - -source=(http://www2.cs.tum.edu/projects/cup/java_cup_v${_pkgver#*.}.tar.gz java-cup.sh) -md5sums=('8b11edfec13c590ea443d0f0ae0da479' - '2ec9859574d479ee27c71e8b7f978eea') - -prepare() { - cd "$srcdir" - find . -name '*.class' -delete -} - -build() { - cd "$srcdir" - mkdir classes - find java_cup -name '*.java' -exec javac -d classes {} + - jar cfe java_cup.jar java_cup.Main -C classes . -} - -package() { - cd "$srcdir" - - install -Dm644 java_cup.jar "$pkgdir"/usr/share/java/java_cup-${_pkgver}.jar - ln -s java_cup-${_pkgver}.jar "$pkgdir"/usr/share/java/java_cup.jar - - install -Dm755 java-cup.sh "$pkgdir"/usr/bin/java-cup - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - install -d "$pkgdir"/usr/share/doc/$pkgname - install -m644 manual.html cup_logo.gif -t "$pkgdir"/usr/share/doc/$pkgname -} diff --git a/java/java-cup/java-cup.sh b/java/java-cup/java-cup.sh deleted file mode 100644 index b7bf91d14..000000000 --- a/java/java-cup/java-cup.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -java -jar /usr/share/java/java_cup.jar "$@" diff --git a/java/java-sonatype-oss-parent/PKGBUILD b/java/java-sonatype-oss-parent/PKGBUILD deleted file mode 100644 index 4936a8067..000000000 --- a/java/java-sonatype-oss-parent/PKGBUILD +++ /dev/null @@ -1,21 +0,0 @@ -# Maintainer: Luke Shumaker - -pkgname=java-sonatype-oss-parent -pkgver=7 -pkgdesc="Metadata file for Maven-based build systems to inherit from" -license=('Apache2') - -_groupId=org.sonatype.oss -_artifactId=oss-parent - -pkgrel=1 -arch=('any') -makedepends=('jh') -source=("http://search.maven.org/remotecontent?filepath=$_groupId/$_artifactId/$pkgver/$_artifactId-$pkgver.pom") - -package() { - cd "$srcdir" - DESTDIR=$pkgdir jh mvn-install $_groupId $_artifactId $pkgver $_artifactId-$pkgver.pom -} - -md5sums=('3e418cf7f2607bf359e6c514a992cb38') diff --git a/java/not-working/java-bnd/PKGBUILD b/java/not-working/java-bnd/PKGBUILD deleted file mode 100644 index 86820469a..000000000 --- a/java/not-working/java-bnd/PKGBUILD +++ /dev/null @@ -1,24 +0,0 @@ -# Maintainer: Luke Shumaker - -_pkgname=bnd -pkgname=java-bnd -pkgver=1.50.0 -pkgdesc="A swiss army knife for OSGi" -url="http://www.aqute.biz/Bnd/" -license=('Apache2') - -pkgrel=1 -arch=(any) -makedepends=('apache-ant' 'junit') -source=("git://github.com/bndtools/bnd.git") - -build() { - cd "$srcdir/$_pkgname" - ant dist -} - -package() { - : -} - -md5sums=('SKIP') diff --git a/java/not-working/junit-truth/PKGBUILD b/java/not-working/junit-truth/PKGBUILD deleted file mode 100644 index 61a0ee469..000000000 --- a/java/not-working/junit-truth/PKGBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Maintainer: Luke Shumaker - -pkgname=junit-truth -pkgdesc="Assertion/Proposition framework for Java unit tests." -url="https://github.com/truth0/truth" -license=('Apache2') - -#_pkgver=0.5.0-beta1 -#pkgver=${_pkgver//-/.} -#_tag=v${_pkgver} - -#pkgver=0.7.0 -#_tag=truth-rel-${pkgver//./-} - -#pkgver=0.8 -#_tag=truth-${pkgver} - -#pkgver=0.9 -#_tag=release_${pkgver//./_} - -pkgver=0.10 -_tag=release_${pkgver//./_} - -pkgrel=1 -arch=('any') -depends=('junit') -makedepends=('maven' 'jh') -conflicts=('openjdk6') # OpenJDK bug 100167 conflicts -source=("$pkgname::git://github.com/truth0/truth.git#tag=$tag") - -build() { - cd "${srcdir}/${pkgname}" - jh checksource - mvn package -} - -package() { - cd "${srcdir}/${pkgname}" - install -d "${pkgdir}"/usr/share/java/${pkgname} - JAR=${pkgname}-${pkgver}.jar - install -Dm 644 target/${JAR} "${pkgdir}"/usr/share/java/${pkgname} - ln -s ${pkgname}/${JAR} "${pkgdir}"/usr/share/java/${pkgname}.jar -} - -md5sums=('SKIP') diff --git a/java/not-working/junit-truth/TODO b/java/not-working/junit-truth/TODO deleted file mode 100644 index d21b3e472..000000000 --- a/java/not-working/junit-truth/TODO +++ /dev/null @@ -1 +0,0 @@ -has unpackaged dependencies diff --git a/pcr/byaccj/PKGBUILD b/pcr/byaccj/PKGBUILD new file mode 100644 index 000000000..10f2bef95 --- /dev/null +++ b/pcr/byaccj/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Luke Shumaker +# Maintainer (AUR): + +pkgname=byaccj +pkgver=1.15 +pkgdesc="Berkeley yacc with Java output" +url="http://byaccj.sourceforge.net/" +license=('custom:Public Domain') + +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +source=(http://downloads.sourceforge.net/project/byaccj/${pkgname}/${pkgver}/${pkgname}${pkgver}_src.tar.gz + http://metadata.ftp-master.debian.org/changelogs/main/b/byacc-j/byacc-j_${pkgver}-1_copyright + ldflags.patch) +md5sums=('5ee9959af35f245ac2c4355f85fdf351' + 'cc9e2ed821e7f2e5ef8f2be0fdc97b46' + '76fd678b41d614497cf77c6dba5de63e') + +prepare() { + cd "$srcdir"/$pkgname$pkgver + patch -Np1 -i ../ldflags.patch +} + +build() { + cd "$srcdir"/$pkgname$pkgver + make -C src linux CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" +} + +package() { + cd "$srcdir"/$pkgname$pkgver + install -Dm755 src/yacc.linux "$pkgdir"/usr/bin/byaccj + install -Dm644 src/yacc.1 "$pkgdir"/usr/share/man/man1/byaccj.1 + install -d "$pkgdir"/usr/share/doc/$pkgname + install -m644 docs/* -t "$pkgdir"/usr/share/doc/$pkgname + install -Dm644 ../byacc-j_$pkgver-1_copyright "$pkgdir"/usr/share/licenses/$pkgname/copyright +} diff --git a/pcr/byaccj/ldflags.patch b/pcr/byaccj/ldflags.patch new file mode 100644 index 000000000..81574d011 --- /dev/null +++ b/pcr/byaccj/ldflags.patch @@ -0,0 +1,12 @@ +diff -ru byaccj1.15.orig/src/Makefile byaccj1.15/src/Makefile +--- byaccj1.15.orig/src/Makefile 2014-06-04 11:10:43.711980001 -0400 ++++ byaccj1.15/src/Makefile 2014-06-04 11:13:00.635987894 -0400 +@@ -75,7 +75,7 @@ + $(CC) -c $(CFLAGS) $(INC) $< -o $@ + + yacc: $(OBJ) +- $(CC) -o yacc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 $(OBJ) ++ $(CC) -o yacc $(LDFLAGS) $(OBJ) + @echo "done" + + clean: diff --git a/pcr/java-asm2/PKGBUILD b/pcr/java-asm2/PKGBUILD new file mode 100644 index 000000000..8860ef86f --- /dev/null +++ b/pcr/java-asm2/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Luke Shumaker + +pkgver=2.2.3 +. PKGBUILD.common.sh + +#### + +pkgrel=7 + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm test/conform/org/objectweb/asm/attrs/StackMapTableSample.data + rm test/conform/cases/*.class + mkdir -p test/lib +} + +mkmd5sums=('7a92c87bf067925685cf68dcc0dd8998') +md5sums=('c2119ab39618cb49ca4e4ad74344b488') diff --git a/pcr/java-asm2/PKGBUILD-bootstrap b/pcr/java-asm2/PKGBUILD-bootstrap new file mode 100644 index 000000000..cbe29bb34 --- /dev/null +++ b/pcr/java-asm2/PKGBUILD-bootstrap @@ -0,0 +1,24 @@ +# Maintainer: Luke Shumaker + +# "java-asm2" is required to build "java-ow-util-ant-tasks", which is in turn +# required to build "java-asm2". + +. PKGBUILD + +makedepends=(jh) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver-bin.zip") +unset mksource +_distdir="$_pkgname-$pkgver" + +provides+=("$pkgname=$pkgver") +pkgname+='-bootstrap' +pkgdesc+=" (prebuilt binary release for bootstrapping purposes)" + +build() { + cd "$srcdir/$_pkgname-$pkgver" + echo "3-clause BSD license; install the non-bootstrap version for full text" > LICENSE.txt + cd "$srcdir/$_distdir/lib" + ln -s all/* . +} + +md5sums=('9bedaa1d00c5b5f1c7fec10a2d2f7142') diff --git a/pcr/java-asm2/PKGBUILD.common.sh b/pcr/java-asm2/PKGBUILD.common.sh new file mode 100644 index 000000000..ef4547696 --- /dev/null +++ b/pcr/java-asm2/PKGBUILD.common.sh @@ -0,0 +1,65 @@ +# Maintainer: Luke Shumaker + +_pkgname=asm +pkgname=java-asm${pkgver%%.*} +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +url="http://asm.ow2.org/" +license=('custom:BSD3') + +arch=('any') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks + jh +) +source=("libre://$pkgname-$pkgver.tar.gz") +mksource=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +_distdir="$_pkgname-$pkgver/output/dist" +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties + ant dist + + # This will make package() easier: + cd "$srcdir/$_distdir/lib" + ln -sf all/* . +} + +package() { + # Install license file + cd "$srcdir/$_pkgname-$pkgver" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd "$srcdir/$_distdir" + 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 the README about the -all files + cd "$srcdir/$_distdir/lib" + install -Dm644 README.txt \ + "$pkgdir"/usr/share/java/$_pkgname/README-$pkgver.txt + + # Install Maven artifacts + export DESTDIR=$pkgdir + for artifact in $(printf '%s\n' *.pom|sed 's/-[0-9.]*\.pom$//'); do + if [[ -f $artifact-$pkgver.jar ]]; then + # This artifact has a jar file + jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.{pom,jar} + # Symlink them to /usr/share/java + ln -s "$(jh mvn-basename asm $artifact $pkgver).jar" \ + "$pkgdir"/usr/share/java/$_pkgname/ + ln -s $_pkgname/$artifact-$pkgver.jar \ + "$pkgdir"/usr/share/java/$artifact-${pkgver%%.*}.jar + else + # This artifact is just a pom + jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.pom + fi + done +} diff --git a/pcr/java-asm3/PKGBUILD b/pcr/java-asm3/PKGBUILD new file mode 100644 index 000000000..9c9928766 --- /dev/null +++ b/pcr/java-asm3/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Luke Shumaker + +pkgver=3.3.1 +. PKGBUILD.common.sh + +#### + +pkgrel=7 + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm cobertura.ser # We regenerate this + rm examples/jasmin/test/jasmin.jar +} + +mkmd5sums=('433024df8176f09922646316e415631c') +md5sums=('c49fb45629cf8670b7f46b95013141cd') diff --git a/pcr/java-asm3/PKGBUILD.common.sh b/pcr/java-asm3/PKGBUILD.common.sh new file mode 120000 index 000000000..e76a92ae0 --- /dev/null +++ b/pcr/java-asm3/PKGBUILD.common.sh @@ -0,0 +1 @@ +../java-asm2/PKGBUILD.common.sh \ No newline at end of file diff --git a/pcr/java-bnd/PKGBUILD b/pcr/java-bnd/PKGBUILD new file mode 100644 index 000000000..86820469a --- /dev/null +++ b/pcr/java-bnd/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Luke Shumaker + +_pkgname=bnd +pkgname=java-bnd +pkgver=1.50.0 +pkgdesc="A swiss army knife for OSGi" +url="http://www.aqute.biz/Bnd/" +license=('Apache2') + +pkgrel=1 +arch=(any) +makedepends=('apache-ant' 'junit') +source=("git://github.com/bndtools/bnd.git") + +build() { + cd "$srcdir/$_pkgname" + ant dist +} + +package() { + : +} + +md5sums=('SKIP') diff --git a/pcr/java-cup/PKGBUILD b/pcr/java-cup/PKGBUILD new file mode 100644 index 000000000..97b41e20b --- /dev/null +++ b/pcr/java-cup/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Luke Shumaker + +pkgname=java-cup +_pkgver=0.10k +pkgver=0.10.k +pkgdesc="LALR parser generator for Java" +url=http://www2.cs.tum.edu/projects/cup/ +license=('custom:MIT') + +pkgrel=1 +arch=('any') +depends=('java-environment') + +source=(http://www2.cs.tum.edu/projects/cup/java_cup_v${_pkgver#*.}.tar.gz java-cup.sh) +md5sums=('8b11edfec13c590ea443d0f0ae0da479' + '2ec9859574d479ee27c71e8b7f978eea') + +prepare() { + cd "$srcdir" + find . -name '*.class' -delete +} + +build() { + cd "$srcdir" + mkdir classes + find java_cup -name '*.java' -exec javac -d classes {} + + jar cfe java_cup.jar java_cup.Main -C classes . +} + +package() { + cd "$srcdir" + + install -Dm644 java_cup.jar "$pkgdir"/usr/share/java/java_cup-${_pkgver}.jar + ln -s java_cup-${_pkgver}.jar "$pkgdir"/usr/share/java/java_cup.jar + + install -Dm755 java-cup.sh "$pkgdir"/usr/bin/java-cup + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + install -d "$pkgdir"/usr/share/doc/$pkgname + install -m644 manual.html cup_logo.gif -t "$pkgdir"/usr/share/doc/$pkgname +} diff --git a/pcr/java-cup/java-cup.sh b/pcr/java-cup/java-cup.sh new file mode 100644 index 000000000..b7bf91d14 --- /dev/null +++ b/pcr/java-cup/java-cup.sh @@ -0,0 +1,2 @@ +#!/bin/sh +java -jar /usr/share/java/java_cup.jar "$@" diff --git a/pcr/java-sonatype-oss-parent/PKGBUILD b/pcr/java-sonatype-oss-parent/PKGBUILD new file mode 100644 index 000000000..4936a8067 --- /dev/null +++ b/pcr/java-sonatype-oss-parent/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Luke Shumaker + +pkgname=java-sonatype-oss-parent +pkgver=7 +pkgdesc="Metadata file for Maven-based build systems to inherit from" +license=('Apache2') + +_groupId=org.sonatype.oss +_artifactId=oss-parent + +pkgrel=1 +arch=('any') +makedepends=('jh') +source=("http://search.maven.org/remotecontent?filepath=$_groupId/$_artifactId/$pkgver/$_artifactId-$pkgver.pom") + +package() { + cd "$srcdir" + DESTDIR=$pkgdir jh mvn-install $_groupId $_artifactId $pkgver $_artifactId-$pkgver.pom +} + +md5sums=('3e418cf7f2607bf359e6c514a992cb38') diff --git a/pcr/junit-truth/PKGBUILD b/pcr/junit-truth/PKGBUILD new file mode 100644 index 000000000..61a0ee469 --- /dev/null +++ b/pcr/junit-truth/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Luke Shumaker + +pkgname=junit-truth +pkgdesc="Assertion/Proposition framework for Java unit tests." +url="https://github.com/truth0/truth" +license=('Apache2') + +#_pkgver=0.5.0-beta1 +#pkgver=${_pkgver//-/.} +#_tag=v${_pkgver} + +#pkgver=0.7.0 +#_tag=truth-rel-${pkgver//./-} + +#pkgver=0.8 +#_tag=truth-${pkgver} + +#pkgver=0.9 +#_tag=release_${pkgver//./_} + +pkgver=0.10 +_tag=release_${pkgver//./_} + +pkgrel=1 +arch=('any') +depends=('junit') +makedepends=('maven' 'jh') +conflicts=('openjdk6') # OpenJDK bug 100167 conflicts +source=("$pkgname::git://github.com/truth0/truth.git#tag=$tag") + +build() { + cd "${srcdir}/${pkgname}" + jh checksource + mvn package +} + +package() { + cd "${srcdir}/${pkgname}" + install -d "${pkgdir}"/usr/share/java/${pkgname} + JAR=${pkgname}-${pkgver}.jar + install -Dm 644 target/${JAR} "${pkgdir}"/usr/share/java/${pkgname} + ln -s ${pkgname}/${JAR} "${pkgdir}"/usr/share/java/${pkgname}.jar +} + +md5sums=('SKIP') diff --git a/pcr/junit-truth/TODO b/pcr/junit-truth/TODO new file mode 100644 index 000000000..d21b3e472 --- /dev/null +++ b/pcr/junit-truth/TODO @@ -0,0 +1 @@ +has unpackaged dependencies -- cgit v1.2.3