GCJ 4.4: Provide InfoZIP; remove FastJar hack; don't build C; provide which(1).
svn path=/nixpkgs/trunk/; revision=16475
This commit is contained in:
parent
b4c3057f76
commit
35b5686ad4
@ -4,16 +4,17 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, gmp, mpfr, gettext
|
, gmp, mpfr, gettext, which
|
||||||
, ppl ? null, cloogppl ? null # used by the Graphite optimization framework
|
, ppl ? null, cloogppl ? null # used by the Graphite optimization framework
|
||||||
, bison ? null, flex ? null
|
, bison ? null, flex ? null
|
||||||
, fastjar ? null, zlib ? null, boehmgc ? null
|
, fastjar ? null, zlib ? null, boehmgc ? null
|
||||||
|
, zip ? null, unzip ? null
|
||||||
, enableMultilib ? false
|
, enableMultilib ? false
|
||||||
, name ? "gcc"
|
, name ? "gcc"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert langTreelang -> bison != null && flex != null;
|
assert langTreelang -> bison != null && flex != null;
|
||||||
assert langJava -> fastjar != null;
|
assert langJava -> fastjar != null && zip != null && unzip != null;
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -32,16 +33,6 @@ in
|
|||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
|
|
||||||
preConfigure =
|
|
||||||
if langJava
|
|
||||||
then ''
|
|
||||||
# Make sure a `jar' executable is in the search path.
|
|
||||||
ensureDir "bin"
|
|
||||||
ln -sv "${fastjar}/bin/fastjar" "bin/jar"
|
|
||||||
export PATH="$PWD/bin:$PATH"
|
|
||||||
''
|
|
||||||
else "";
|
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
|
||||||
src =
|
src =
|
||||||
@ -72,13 +63,13 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
inherit noSysDirs profiledCompiler staticCompiler langJava;
|
inherit noSysDirs profiledCompiler staticCompiler langJava;
|
||||||
|
|
||||||
buildInputs = [ texinfo gmp mpfr gettext ]
|
buildInputs = [ texinfo gmp mpfr gettext which ]
|
||||||
++ (optional (ppl != null) ppl)
|
++ (optional (ppl != null) ppl)
|
||||||
++ (optional (cloogppl != null) cloogppl)
|
++ (optional (cloogppl != null) cloogppl)
|
||||||
++ (optionals langTreelang [bison flex])
|
++ (optionals langTreelang [bison flex])
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optional (boehmgc != null) boehmgc)
|
++ (optional (boehmgc != null) boehmgc)
|
||||||
++ (optional langJava fastjar)
|
++ (optionals langJava [fastjar zip unzip])
|
||||||
;
|
;
|
||||||
|
|
||||||
configureFlags = "
|
configureFlags = "
|
||||||
|
@ -1669,7 +1669,7 @@ let
|
|||||||
|
|
||||||
gcc44 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.4) {
|
gcc44 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.4) {
|
||||||
inherit fetchurl stdenv texinfo gmp mpfr ppl cloogppl
|
inherit fetchurl stdenv texinfo gmp mpfr ppl cloogppl
|
||||||
gettext noSysDirs;
|
gettext which noSysDirs;
|
||||||
profiledCompiler = true;
|
profiledCompiler = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1741,9 +1741,9 @@ let
|
|||||||
langJava = true;
|
langJava = true;
|
||||||
langFortran = false;
|
langFortran = false;
|
||||||
langCC = true;
|
langCC = true;
|
||||||
langC = true;
|
langC = false;
|
||||||
profiledCompiler = false;
|
profiledCompiler = false;
|
||||||
inherit fastjar zlib boehmgc gettext;
|
inherit fastjar zip unzip zlib boehmgc gettext;
|
||||||
});
|
});
|
||||||
|
|
||||||
#ghc = haskellPackages.ghc;
|
#ghc = haskellPackages.ghc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user