0
0
Fork 0
haikuports/dev-java/ant_core/ant_core-1.10.9.recipe

76 lines
2.3 KiB
Bash
Raw Permalink Normal View History

2014-01-02 21:40:56 +00:00
SUMMARY="Java-based build tool similar to 'make'"
2021-03-28 13:39:00 +00:00
DESCRIPTION="Apache Ant is a Java library and command-line tool whose mission \
is to drive processes described in build files as targets and extension \
points dependent upon each other. The main known usage of Ant is the build of \
Java applications. Ant supplies a number of built-in tasks allowing to \
compile, assemble, test and run Java applications. Ant can also be used \
effectively to build non Java applications, for instance C or C++ applications.
More generally, Ant can be used to pilot any type of process which can be \
described in terms of targets and tasks.
2014-01-02 21:40:56 +00:00
Ant is written in Java. Users of Ant can develop their own "antlibs" \
containing Ant tasks and types, and are offered a large number of ready-made \
commercial or open-source "antlibs".
Ant is extremely flexible and does not impose coding conventions or directory \
layouts to the Java projects which adopt it as a build tool.
Software development projects looking for a solution combining build tool and \
dependency management can use Ant in combination with Apache Ivy.
2021-03-28 13:39:00 +00:00
The Apache Ant project is part of the Apache Software Foundation."
2013-12-06 01:40:00 +00:00
HOMEPAGE="http://ant.apache.org/"
2021-03-28 13:39:00 +00:00
COPYRIGHT="1999-2020 The Apache Software Foundation"
2013-12-06 01:40:00 +00:00
LICENSE="Apache v2"
2021-03-28 13:39:00 +00:00
REVISION="1"
2019-03-31 10:13:17 +00:00
SOURCE_URI="http://archive.apache.org/dist/ant/source/apache-ant-$portVersion-src.tar.bz2"
2021-03-28 13:39:00 +00:00
CHECKSUM_SHA256="cac5cf44906fceae4604fb6a641d67ab1703b45e3dc941d2dd6108edf89fca71"
2013-12-06 01:40:00 +00:00
SOURCE_DIR="apache-ant-$portVersion"
2018-08-03 05:45:19 +00:00
ARCHITECTURES="any"
2019-03-31 10:13:17 +00:00
GLOBAL_WRITABLE_FILES="
settings/etc/ant.conf auto-merge
"
2018-08-03 05:45:19 +00:00
2013-12-06 01:40:00 +00:00
PROVIDES="
ant_core = $portVersion compat >= 1
cmd:ant = $portVersion compat >= 1
"
REQUIRES="
haiku
2019-03-31 10:13:17 +00:00
java:environment >= 8
2013-12-06 01:40:00 +00:00
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
2019-03-31 10:13:17 +00:00
java:environment == 8
2013-12-06 01:40:00 +00:00
"
PATCH()
{
sed -i 's/depends=\"jars,test-jar\"/depends=\"jars\"/' build.xml
}
BUILD()
{
2019-03-31 10:13:17 +00:00
source /system/data/profile.d/openjdk8.sh
export PATH=$JDK8_HOME/bin:$PATH
export JAVA_HOME="$JDK8_HOME"
2021-01-12 17:58:58 +00:00
export DISABLE_ASLR=1
2013-12-06 01:40:00 +00:00
ANT_HOME= ./build.sh
}
INSTALL()
{
2019-03-31 10:13:17 +00:00
source /system/data/profile.d/openjdk8.sh
export JAVA_HOME=$JDK8_HOME
2013-12-06 01:40:00 +00:00
export ANT_HOME=$libDir/ant
./build.sh install-lite
# symlink the executable to binDir
mkdir -p $binDir
2019-03-31 10:13:17 +00:00
ln -s $ANT_HOME/bin/ant $binDir
2013-12-06 01:40:00 +00:00
2019-03-31 10:13:17 +00:00
mkdir -p $settingsDir/etc
echo ANT_HOME=$ANT_HOME > $settingsDir/etc/ant.conf
2019-03-31 10:13:17 +00:00
rm $ANT_HOME/bin/*{.bat,.cmd}
2013-12-06 01:40:00 +00:00
}