Skip to content

Commit

Permalink
apache-ant: update to version 1.10.12
Browse files Browse the repository at this point in the history
After 9 years an update is justified :)

The forme says:
  "Apache Ant(TM) version 1.9.0 compiled on March 5 2013"
  • Loading branch information
thomas committed Apr 8, 2022
1 parent a9526cb commit 5d51e60
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions apache-ant-1.10.12-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#! /bin/bash

PKG=apache-ant
VERSION=1.10.12
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi

PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin

set -xe
umask 022

BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.$USER.build.tmp

test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR )
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
export LD_LIBRARY_PATH=$PREFIX/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
. $PREFIX/profile

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

# https://dlcdn.apache.org//ant/source/apache-ant-1.10.12-src.tar.gz
BEEHIVE=https://beehive.molgen.mpg.de/e5c0cafa595b930517a720779ebeb277/apache-ant-1.10.12-src.tar.gz
test -e apache-ant-1.10.12-src.tar.gz || wget -nv $BEEHIVE
test -d apache-ant-$VERSION || tar -xf apache-ant-$VERSION-src.tar.gz
cd apache-ant-$VERSION

export JAVA_HOME=/pkg/jdk-8u141-0
./bootstrap.sh
# Well, skip installation of some optional task-modules
# (but leave as a reminder in case somebody wants them)
# bootstrap/bin/ant -f fetch.xml -Ddest=optional
./build.sh -Ddist.dir=$PREFIX dist

0 comments on commit 5d51e60

Please sign in to comment.