summaryrefslogtreecommitdiff
path: root/java/java-commons-bsf2/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-07-04 19:48:31 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-07-04 19:48:31 +0200
commitee9c1a601c6ce156c295e4a4608ad50535192954 (patch)
tree49757b312b758e793ffd8bfedd2d6665cd0b3e29 /java/java-commons-bsf2/PKGBUILD
parent2690b2e42de85dbcbca602f3299ae4404918e94d (diff)
parente9eb2503b10fe4c4aefbee39226c8962d72d58bd (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/bitcoin/PKGBUILD community/calc/PKGBUILD community/fcitx/PKGBUILD community/gloobus-preview/PKGBUILD community/linux-tools/PKGBUILD community/smc/PKGBUILD extra/elfutils/PKGBUILD extra/freenx/PKGBUILD extra/gnome-alsamixer/PKGBUILD extra/gvfs/PKGBUILD extra/kdenetwork/PKGBUILD extra/kdepim/PKGBUILD extra/kdesdk-kate/PKGBUILD extra/lcms2/PKGBUILD extra/libmspack/PKGBUILD extra/libtheora/PKGBUILD extra/mesa/PKGBUILD extra/nx-common/PKGBUILD extra/opennx/PKGBUILD extra/perl-tk/PKGBUILD extra/qt4/PKGBUILD extra/soprano/PKGBUILD extra/wireshark/PKGBUILD extra/xmlsec/PKGBUILD extra/xorg-server/PKGBUILD libre/audacious-plugins-libre/PKGBUILD libre/ipsec-tools-libre/PKGBUILD libre/tomoyo-tools-libre/PKGBUILD pcr/amsynth/PKGBUILD
Diffstat (limited to 'java/java-commons-bsf2/PKGBUILD')
-rw-r--r--java/java-commons-bsf2/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/java/java-commons-bsf2/PKGBUILD b/java/java-commons-bsf2/PKGBUILD
new file mode 100644
index 000000000..57a9dfc1a
--- /dev/null
+++ b/java/java-commons-bsf2/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=java-commons-bsf2
+pkgver=2.4.0
+url="https://commons.apache.org/proper/commons-bsf/"
+license=('Apache')
+pkgdesc="Bean Scripting Framework"
+
+pkgrel=1
+arch=('any')
+depends=('java-commons-logging')
+makedepends=('apache-ant')
+
+_mirror=http://archive.apache.org/dist
+source=($_mirror/commons/bsf/source/bsf-src-$pkgver.tar.gz
+ build-properties.xml::"https://svn.apache.org/viewvc/commons/proper/bsf/tags/bsf-2.4.0/build-properties.xml?view=co&content-type=text%2Fplain"
+)
+
+declare -A _opts
+#_opts[jacl]="/usr/share/java/jacl.jar"
+_opts[jython]="/opt/jython/jython.jar"
+#_opts[nexrexx]="/usr/share/java/nexrexx.jar"
+_opts[java-rhino]="/usr/share/java/js.jar"
+_opts[xalan-java]="/usr/share/java/xalan.jar"
+_opts[junit]="/usr/share/java/junit.jar"
+
+for pkg in "${!_opts[@]}"; do
+ optdepends+=("$pkg")
+ makedepends+=("$pkg")
+ _jars+="${_opts[$pkg]} "
+done
+
+prepare() {
+ cd "${srcdir}/bsf-${pkgver}"
+ rm lib/*.jar
+}
+
+build() {
+ cd "${srcdir}/bsf-${pkgver}"
+
+ for jar in $_jars; do
+ ln -s "$jar" lib/
+ done
+
+ # Adjust it to work with jython 2.5+
+ sed -i 's/PyJavaInstance/PyJavaType/g' src/org/apache/bsf/engines/jython/*
+
+ ln -sf ../build-properties.xml ./
+ ant jar
+}
+
+package() {
+ cd "${srcdir}/bsf-${pkgver}"
+ install -Dm644 build/lib/bsf.jar "$pkgdir"/usr/share/java/bsf-$pkgver.jar
+ ln -s bsf-$pkgver.jar "$pkgdir"/usr/share/java/bsf2.jar
+}
+
+md5sums=('7e58b2a009c0f70ab36bbef420b25c07'
+ 'd7180c2b95f1a5424f785a2482260eaa')