47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'apache-ant'
|
|
pkgname=apache-ant
|
|
version=1.10.9
|
|
revision=1
|
|
hostmakedepends="openjdk8"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Java library and command-line tool that help building software"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://ant.apache.org"
|
|
distfiles="https://archive.apache.org/dist/ant/source/apache-ant-${version}-src.tar.xz"
|
|
checksum=4b2008cc60fefd424b05567e9d43a071302865d5fd8b01a807e15e381b557ec2
|
|
python_version=2 # only script uses python2-isms like print ""
|
|
|
|
nocross=yes
|
|
_prefix=usr/share/apache-ant
|
|
|
|
do_configure() {
|
|
# Disable tests
|
|
sed -i 's/jars,test-jar/jars/' build.xml
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
|
|
./bootstrap.sh
|
|
bootstrap/bin/ant -Ddest=optional -f fetch.xml
|
|
}
|
|
do_build() {
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
|
|
bootstrap/bin/ant -Ddist.dir=$DESTDIR/$_prefix jars
|
|
}
|
|
do_install() {
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
|
|
bootstrap/bin/ant -Ddist.dir=$DESTDIR/$_prefix dist
|
|
|
|
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
|
rm $DESTDIR/$_prefix/bin/*.bat
|
|
rm $DESTDIR/$_prefix/bin/*.cmd
|
|
|
|
vmkdir usr/bin
|
|
ln -rs $DESTDIR/$_prefix/bin/ant $DESTDIR/usr/bin
|
|
}
|
|
|
|
apache-ant-doc_package() {
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove $_prefix/manual
|
|
}
|
|
}
|