mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Build jclasslib from source using Ant. xpf-rm is used to modify the build.xml file in one that actually works.
svn path=/nixpkgs/trunk/; revision=1309
This commit is contained in:
parent
db7289192e
commit
8c4fcb13e0
|
@ -1,9 +1,16 @@
|
|||
. $stdenv/setup || exit 1
|
||||
|
||||
tar zxf $src || exit 1
|
||||
mkdir -p $out/bin
|
||||
mv jclasslib/bin/jclasslib.jar $out/bin/ || exit 1
|
||||
cd jclasslib || exit 1
|
||||
|
||||
xpf-rm -i build.xml "//taskdef" > build.new
|
||||
mv build.new build.xml
|
||||
|
||||
ant clean || exit 1
|
||||
ant jar || exit 1
|
||||
|
||||
mkdir -p $out/bin
|
||||
mv build/jclasslib.jar $out/bin/ || exit 1
|
||||
|
||||
cat >> $out/bin/jclasslib <<EOF
|
||||
#! /bin/sh
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{stdenv, fetchurl, j2re}:
|
||||
{stdenv, fetchurl, xpf, j2re, ant}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "jclasslib-2.0";
|
||||
|
@ -8,5 +8,6 @@ stdenv.mkDerivation {
|
|||
md5 = "31d91bb03fee23410689d2f1c4c439b1";
|
||||
};
|
||||
|
||||
inherit j2re;
|
||||
inherit j2re xpf ant;
|
||||
buildInputs = [xpf ant];
|
||||
}
|
||||
|
|
|
@ -311,8 +311,9 @@ rec {
|
|||
};
|
||||
|
||||
jclasslib = (import ../development/tools/java/jclasslib) {
|
||||
inherit fetchurl stdenv;
|
||||
inherit fetchurl stdenv xpf;
|
||||
j2re = j2sdk15;
|
||||
ant = apacheant14.body;
|
||||
};
|
||||
|
||||
ocaml = (import ../development/compilers/ocaml) {
|
||||
|
|
Loading…
Reference in a new issue