diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/byaccj/PKGBUILD | 36 | ||||
-rw-r--r-- | pcr/byaccj/ldflags.patch | 12 | ||||
-rw-r--r-- | pcr/java-asm2/PKGBUILD | 18 | ||||
-rw-r--r-- | pcr/java-asm2/PKGBUILD-bootstrap | 24 | ||||
-rw-r--r-- | pcr/java-asm2/PKGBUILD.common.sh | 65 | ||||
-rw-r--r-- | pcr/java-asm3/PKGBUILD | 17 | ||||
l--------- | pcr/java-asm3/PKGBUILD.common.sh | 1 | ||||
-rw-r--r-- | pcr/java-bnd/PKGBUILD | 24 | ||||
-rw-r--r-- | pcr/java-cup/PKGBUILD | 41 | ||||
-rw-r--r-- | pcr/java-cup/java-cup.sh | 2 | ||||
-rw-r--r-- | pcr/java-sonatype-oss-parent/PKGBUILD | 21 | ||||
-rw-r--r-- | pcr/junit-truth/PKGBUILD | 45 | ||||
-rw-r--r-- | pcr/junit-truth/TODO | 1 |
13 files changed, 307 insertions, 0 deletions
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 <lukeshu@sbcglobal.net> +# Maintainer (AUR): <ying@althonx4> + +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 <lukeshu@sbcglobal.net> + +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 <lukeshu@sbcglobal.net> + +# "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 <lukeshu@sbcglobal.net> + +_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 <lukeshu@sbcglobal.net> + +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 <lukeshu@sbcglobal.net> + +_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 <lukeshu@sbcglobal.net> + +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 <lukeshu@sbcglobal.net> + +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 <lukeshu@sbcglobal.net> + +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 |