2009-01-12 02:05:35 +11:00
|
|
|
# Description: Ant is a Java-based build tool.
|
|
|
|
# URL: http://ant.apache.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-11-21 16:24:41 +01:00
|
|
|
# Depends on: openjdk17-jdk
|
2009-01-12 02:05:35 +11:00
|
|
|
|
|
|
|
name=ant
|
2021-10-25 02:02:50 +11:00
|
|
|
version=1.10.12
|
2020-05-14 22:34:32 +10:00
|
|
|
release=1
|
2019-12-23 23:06:08 +11:00
|
|
|
source=(https://www-eu.apache.org/dist/ant/source/apache-$name-$version-src.tar.xz
|
|
|
|
ant.conf)
|
2009-01-12 02:05:35 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd apache-$name-$version
|
2019-12-23 23:06:08 +11:00
|
|
|
|
2021-11-21 16:24:41 +01:00
|
|
|
sed -i 's|/usr/bin/python|/usr/bin/python3|' \
|
2019-12-23 23:06:08 +11:00
|
|
|
src/script/runant.py
|
|
|
|
|
|
|
|
unset JAVA_HOME
|
2021-11-21 16:24:41 +01:00
|
|
|
export JAVA_HOME='/usr/lib/java/openjdk17-jdk'
|
2019-12-23 23:06:08 +11:00
|
|
|
|
|
|
|
./bootstrap.sh
|
|
|
|
bootstrap/bin/ant -Ddest=optional -f fetch.xml
|
|
|
|
bootstrap/bin/ant dist
|
|
|
|
|
|
|
|
cd apache-$name-$version
|
|
|
|
|
|
|
|
install -d $PKG/usr/share/ant
|
|
|
|
cp -Rp etc $PKG/usr/share/ant
|
|
|
|
|
|
|
|
find bin -type f -a ! -name \*.bat -a ! -name \*.cmd \
|
|
|
|
-exec install -Dm 755 {} -t "$PKG/usr/share/ant/bin" \;
|
|
|
|
|
|
|
|
install -d "$PKG/usr/bin"
|
|
|
|
ln -s /usr/share/ant/bin/ant "$PKG/usr/bin/ant"
|
|
|
|
|
|
|
|
install -Dm 644 "$SRC/ant.conf" -t "$PKG/etc"
|
|
|
|
install -Dm 644 lib/*.jar -t "$PKG/usr/share/java/ant"
|
|
|
|
ln -s /usr/share/java/ant "$PKG/usr/share/ant/lib"
|
2009-01-12 02:05:35 +11:00
|
|
|
}
|