apache-ant: build with openjdk
This commit is contained in:
parent
913ac4d241
commit
191cbde798
1 changed files with 3 additions and 6 deletions
|
@ -1,31 +1,28 @@
|
||||||
# Template file for 'apache-ant'
|
# Template file for 'apache-ant'
|
||||||
pkgname="apache-ant"
|
pkgname="apache-ant"
|
||||||
version="1.9.4"
|
version="1.9.4"
|
||||||
revision=3
|
revision=4
|
||||||
short_desc="Java library and command-line tool that help building software"
|
short_desc="Java library and command-line tool that help building software"
|
||||||
maintainer="Enno Boland <eb@s01.de>"
|
maintainer="Enno Boland <eb@s01.de>"
|
||||||
license="Apache License"
|
license="Apache License"
|
||||||
homepage="http://ant.apache.org"
|
homepage="http://ant.apache.org"
|
||||||
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
|
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
|
||||||
checksum="ac594ff7dcd461ebb3e607493af7682f84b1ceaa0621e17ec6367b8d2c410a1c"
|
checksum="ac594ff7dcd461ebb3e607493af7682f84b1ceaa0621e17ec6367b8d2c410a1c"
|
||||||
hostmakedepends="oracle-jdk"
|
hostmakedepends="openjdk"
|
||||||
depends="virtual?java-runtime"
|
depends="virtual?java-runtime"
|
||||||
noarch="yes"
|
noarch="yes"
|
||||||
_prefix=usr/share/apache-ant
|
_prefix=usr/share/apache-ant
|
||||||
|
|
||||||
# Restrict builds on x86
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
||||||
only_for_archs="i686 x86_64"
|
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# Disable tests
|
# Disable tests
|
||||||
sed -i 's/jars,test-jar/jars/' build.xml
|
sed -i 's/jars,test-jar/jars/' build.xml
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
source /etc/profile.d/10_oracle-jdk.sh
|
|
||||||
./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
source /etc/profile.d/10_oracle-jdk.sh
|
|
||||||
./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
||||||
|
|
||||||
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue