diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-06-24 20:10:17 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-06-24 20:10:17 -0300 |
commit | 1696b858277be08beb68a3bb9bb30984b57097a6 (patch) | |
tree | 0b67c705956a32aca8a95cbc9c7856c7f0c025bd /java/apache-ant | |
parent | a4c5032b21eb49cb04d9b00dfb990fa9b1fa4a1c (diff) | |
parent | 003c376c2f2d73ec9730965992d9e6364de1bceb (diff) | |
download | abslibre-1696b858277be08beb68a3bb9bb30984b57097a6.tar.gz abslibre-1696b858277be08beb68a3bb9bb30984b57097a6.tar.bz2 abslibre-1696b858277be08beb68a3bb9bb30984b57097a6.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'java/apache-ant')
-rw-r--r-- | java/apache-ant/PKGBUILD | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/java/apache-ant/PKGBUILD b/java/apache-ant/PKGBUILD index 77e0dfe94..9f9c77c28 100644 --- a/java/apache-ant/PKGBUILD +++ b/java/apache-ant/PKGBUILD @@ -3,52 +3,54 @@ # Contributor: Andrew Wright <andreww@photism.org> pkgname=apache-ant -pkgver=1.8.4 +pkgver=1.9.1 +pkgdesc="A Java-based build tool" +license=('Apache' 'custom:BSD3') +url="http://ant.apache.org/" provides=("apache-ant-libre=$pkgver") replaces=("apache-ant-libre") conflicts=("apache-ant-libre") -pkgrel=1.1 -pkgdesc="A Java-based build tool" +pkgrel=2 arch=('any') -license=('Apache') -url="http://ant.apache.org/" +depends=('java-environment') + _mirror=http://archive.apache.org/dist source=($_mirror/ant/source/${pkgname}-${pkgver}-src.tar.bz2 ${pkgname}.sh ${pkgname}.csh) -depends=('java-environment') # This list is adapted from https://ant.apache.org/manual/install.html#librarydependencies declare -A _opts _opts[junit]='to have JUnit on the classpath in javac tasks;/usr/share/java/junit.jar' _opts[xalan-java]='<junitreport> task;/usr/share/java/xalan.jar' -_opts[antlr2]='<antlr> task;/usr/share/java/antlr2.jar::antlr.jar' -#_opts[java-bsf]='<script> task;/usr/share/java/bsf.jar' +_opts[java-antlr2]='<antlr> task;/usr/share/java/antlr2.jar::antlr.jar' +_opts[java-commons-bsf2]='<script> task;/usr/share/java/bsf2.jar::bsf.jar' #_opts[groovy]='Groovy with <script> and <scriptdef> tasks;/usr/share/java/groovy.jar' _opts[java-asm2]='Groovy with <script> and <scriptdef> tasks;/usr/share/java/asm-2.jar::asm.jar /usr/share/java/asm-util-2.jar::asm-util.jar' #_opts[netrexx]='<netrexx> task, Rexx with <script> task;/usr/share/java/netrexx.jar' -_opts[rhino]='Javascript with <script> task;/usr/share/java/js.jar' +_opts[java-rhino]='Javascript with <script> task;/usr/share/java/js.jar' _opts[jython]='Python with <script> task;/opt/jython/jython.jar' #_opts[jacl]='TCL with <script> task;/usr/share/java/jacl.jar' #_opts[tcljava]='TCL with <script> task;/usr/share/java/tcljava.jar' _opts[beanshell>=1.3]='BeanShell with <script> task;/usr/share/java/bsh.jar::beanshell.jar' -#_opts[jruby]='Ruby with <script> task;/usr/share/java/jruby.jar' +_opts[jruby]='Ruby with <script> task;/opt/jruby/lib/jruby.jar' #_opts[judo]='Judoscript with <script> task;/usr/share/java/judo.jar' _opts[java-commons-logging]='CommonsLoggingListener;/usr/share/java/commons-logging/commons-logging.jar' #_opts[java-log4j]='Log4jListener;/usr/share/java/log4j.jar' -#_opts[java-commons-net>=1.4.0]='<ftp>, <rexec> and <telnet> tasks;/usr/share/java/commons-net.jar' -#_opts[java-bcel]="'classfileset' data type, JavaClassHelper for ClassConstants filter reader;/usr/share/java/bcel.jar" +_opts[java-commons-net1>=1.4.0]='<ftp>, <rexec> and <telnet> tasks;/usr/share/java/commons-net.jar' +_opts[java-bcel]="'classfileset' data type, JavaClassHelper for ClassConstants filter reader;/usr/share/java/bcel.jar" #_opts[java-mail]='<mimemail> task, mime encoding with <mail>;/usr/share/java/mail.jar' -#_opts[java-activation]='<mimemail> task, mime encoding with <mail>;/usr/share/java/activation.jar' -#_opts[jdepend]='<jdepend> task;/usr/share/java/jdepend.jar' +_opts[java-activation-gnu]='<mimemail> task, mime encoding with <mail>;/usr/share/java/activation.jar' +_opts[java-jdepend]='<jdepend> task;/usr/share/java/jdepend.jar' #_opts[java-xmlcommons-resolver>=1.1beta]="external files for 'xmlcatalog' datatype;/usr/share/java/resolver.jar" -#_opts[java-jsch>=0.1.42]='<sshexec> and <scp> tasks;/usr/share/java/jsch.jar' +_opts[java-jsch>=0.1.42]='<sshexec> and <scp> tasks;/usr/share/java/jsch.jar' #_opts[java-advanced-imaging]='<image> task/usr/share/java/jai/*.jar' for pkg in "${!_opts[@]}"; do optdepends+=("$pkg: ${_opts[$pkg]%;*}") makedepends+=("$pkg") + _jars+="${_opts[$pkg]#*;} " done build() { @@ -59,9 +61,9 @@ build() { mkdir -p "${srcdir}"/${pkgname}-${pkgver}-bin cd "${srcdir}"/${pkgname}-${pkgver} - # Symlink to external optional libraries - for jar in ${_opts[@]#*;}; do - ln -sf ${jar%::*} lib/optional/`basename ${jar/*::}` + # Symlink to external optional libraries/ + for jar in $_jars; do + ln -sfv ${jar%::*} lib/optional/`basename ${jar#*::}` done # Build source "/etc/profile.d/jdk.sh" # Get the JAVA_HOME env var @@ -87,8 +89,8 @@ package() { # Fix python2 path sed -i 's|/usr/bin/python|/usr/bin/python2|' "${pkgdir}"/${ANT_HOME}/bin/runant.py # Symlink to external optional libraries - for jar in ${_opts[@]#*;}; do - ln -sf ${jar%::*} "${pkgdir}"/${ANT_HOME}/lib/`basename ${jar/*::}` + for jar in $_jars; do + ln -sf ${jar%::*} "${pkgdir}"/${ANT_HOME}/lib/`basename ${jar#*::}` done ## Symlink the /opt distribution to the normal places @@ -105,6 +107,6 @@ package() { ln -sf ${ANT_HOME}/{LICENSE,NOTICE} "${pkgdir}"/usr/share/licenses/${pkgname} } -md5sums=('c474fa9d0c35a24037c23b6e476862c1' +md5sums=('39771fd8b4ba87cd77ff6f27001cce4e' 'bd63c881be406f515fc4d22635e8326a' 'aaa615512cbe1ed7f3b62c1ff46802f8') |