[arch-commits] Commit in rhino/repos/extra-any (PKGBUILD PKGBUILD)

Guillaume Alaux guillaume at archlinux.org
Sun Oct 16 09:18:27 EDT 2011


    Date: Sunday, October 16, 2011 @ 09:18:26
  Author: guillaume
Revision: 140519

archrelease: copy trunk to extra-any

Added:
  rhino/repos/extra-any/PKGBUILD
    (from rev 140518, rhino/trunk/PKGBUILD)
Deleted:
  rhino/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   67 ++++++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 45 insertions(+), 22 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-16 13:18:03 UTC (rev 140518)
+++ PKGBUILD	2011-10-16 13:18:26 UTC (rev 140519)
@@ -1,22 +0,0 @@
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=rhino
-pkgver=1.7R2
-pkgrel=1
-pkgdesc="Open-source implementation of JavaScript written entirely in Java"
-arch=('any')
-url="http://www.mozilla.org/rhino/"
-license=('MPL' 'GPL2')
-source=(ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R1.zip)
-md5sums=('613eed8201d37be201805e5048ebb0c3')
-
-build() {
-  /bin/true
-}
-
-package() {
-  cd ${srcdir}/rhino1_7R1
-  install -m755 -d ${pkgdir}/usr/share/java
-  install -m644 js.jar ${pkgdir}/usr/share/java/
-}

Copied: rhino/repos/extra-any/PKGBUILD (from rev 140518, rhino/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2011-10-16 13:18:26 UTC (rev 140519)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=rhino
+pkgname=('rhino' 'rhino-javadoc')
+pkgver=1.7R3
+pkgrel=1
+arch=('any')
+url="http://www.mozilla.org/rhino/"
+license=('MPL' 'GPL2')
+makedepends=('apache-ant')
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/js/${pkgname}${pkgver/./_}.zip
+        http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.5.0.tgz)
+md5sums=('99d94103662a8d0b571e247a77432ac5'
+         '982e8e3d36aa5f7839f7675adc2b0c53')
+
+build() {
+  cd ${srcdir}/${pkgname}${pkgver/./_}
+  ant \
+    -Dxbean.jar=${srcdir}/xmlbeans-2.5.0/lib/xbean.jar \
+    -Djsr173.jar=${srcdir}/xmlbeans-2.5.0/lib/jsr173_1.0_api.jar \
+    jar \
+    javadoc
+}
+
+# As explained on the build.xml, tests are difficult to run from CLI. We skip them.
+
+package_rhino() {
+  pkgdesc="Open-source implementation of JavaScript written entirely in Java"
+  depends=('java-runtime')
+
+  cd ${srcdir}/${pkgname}${pkgver/./_}/build/${pkgname}${pkgver/./_}
+  install -Dm644 js.jar ${pkgdir}/usr/share/java/js-${pkgver}.jar
+  ln -s js-${pkgver}.jar ${pkgdir}/usr/share/java/js.jar
+}
+
+package_rhino-javadoc() {
+  pkgdesc="Open-source implementation of JavaScript written entirely in Java - Javadoc"
+
+  cd ${srcdir}/${pkgbase}${pkgver/./_}/build/${pkgbase}${pkgver/./_}
+  install -m755 -d ${pkgdir}/usr/share/${pkgbase}
+  cp -r javadoc ${pkgdir}/usr/share/${pkgbase}
+}



More information about the arch-commits mailing list