Added Apache Ant, including configuration of JAVA_HOME and ANT_HOME. Currently only the shell script is patched, but this one is used most in practice.
svn path=/nixpkgs/trunk/; revision=718
This commit is contained in:
parent
d427c4271d
commit
d9cebb072f
|
@ -0,0 +1,21 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
|
tar xvfj $src || exit 1
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
mv apache-ant-1.6.0/* $out || exit 1
|
||||||
|
|
||||||
|
rm -rf $out/docs
|
||||||
|
rm $out/*
|
||||||
|
|
||||||
|
confpath=$out/etc/nixpaths.conf || exit 1
|
||||||
|
sed "s^.etc.ant.conf^$confpath^g" $out/bin/ant > $out/bin/ant_temp || exit 1
|
||||||
|
mv $out/bin/ant_temp $out/bin/ant || exit 1
|
||||||
|
chmod u+xrw $out/bin/ant || exit 1
|
||||||
|
chmod u+x $out/bin/* || exit 1
|
||||||
|
echo "
|
||||||
|
JAVA_HOME=$j2sdk
|
||||||
|
ANT_HOME=$out
|
||||||
|
" > $confpath || exit 1
|
|
@ -0,0 +1,10 @@
|
||||||
|
{stdenv, fetchurl, j2sdk}: derivation {
|
||||||
|
name = "apache-ant-1.6.0";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://dist.apache.easynet.nl/ant/binaries/apache-ant-1.6.0-bin.tar.bz2;
|
||||||
|
md5 = "01989c306da53862c101d9ea4ebb1f00";
|
||||||
|
};
|
||||||
|
stdenv = stdenv;
|
||||||
|
}
|
|
@ -240,6 +240,12 @@
|
||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
apacheant = (import ../development/tools/build-managers/apache-ant) {
|
||||||
|
fetchurl = fetchurl;
|
||||||
|
stdenv = stdenv;
|
||||||
|
j2sdk = j2sdk;
|
||||||
|
};
|
||||||
|
|
||||||
pcre = (import ../development/libraries/pcre) {
|
pcre = (import ../development/libraries/pcre) {
|
||||||
fetchurl = fetchurl;
|
fetchurl = fetchurl;
|
||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
|
|
Loading…
Reference in New Issue