-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apache-ant: update to version 1.10.12
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
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|