Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 48 lines (35 sloc) 1.34 KB
#! /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