GCJ 4.4: Move ecj.jar' out of the
src' attribute.
svn path=/nixpkgs/trunk/; revision=16417
This commit is contained in:
parent
1dfef78633
commit
8cbb8848a9
@ -62,6 +62,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
preConfigure() {
|
preConfigure() {
|
||||||
|
# Copy `ecj.jar' to `$(top_srcdir)' when available.
|
||||||
|
if [ -f "$javaEcj" ]
|
||||||
|
then
|
||||||
|
cp -v "$javaEcj" "ecj.jar"
|
||||||
|
fi
|
||||||
|
|
||||||
# Perform the build in a different directory.
|
# Perform the build in a different directory.
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
@ -45,16 +45,6 @@ stdenv.mkDerivation ({
|
|||||||
optional langJava (fetchurl {
|
optional langJava (fetchurl {
|
||||||
url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2";
|
url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2";
|
||||||
sha256 = "0i60llrllgm4sbplw2rc9b0gi0mxr88la07a72mvlbblzpxn22hb";
|
sha256 = "0i60llrllgm4sbplw2rc9b0gi0mxr88la07a72mvlbblzpxn22hb";
|
||||||
}) ++
|
|
||||||
|
|
||||||
optional langJava (fetchurl {
|
|
||||||
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
|
||||||
# `configure' time.
|
|
||||||
|
|
||||||
# XXX: Eventually we might want to take it from upstream.
|
|
||||||
url = "ftp://sourceware.org/pub/java/ecj-4.3.jar";
|
|
||||||
name = "ecj.jar";
|
|
||||||
sha256 = "0jz7hvc0s6iydmhgh5h2m15yza7p2rlss2vkif30vm9y77m97qcx";
|
|
||||||
});
|
});
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
@ -62,6 +52,19 @@ stdenv.mkDerivation ({
|
|||||||
++ optional noSysDirs ./no-sys-dirs.patch
|
++ optional noSysDirs ./no-sys-dirs.patch
|
||||||
++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch;
|
++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch;
|
||||||
|
|
||||||
|
javaEcj =
|
||||||
|
if langJava
|
||||||
|
then fetchurl {
|
||||||
|
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
||||||
|
# `configure' time.
|
||||||
|
|
||||||
|
# XXX: Eventually we might want to take it from upstream.
|
||||||
|
url = "ftp://sourceware.org/pub/java/ecj-4.3.jar";
|
||||||
|
sha256 = "0jz7hvc0s6iydmhgh5h2m15yza7p2rlss2vkif30vm9y77m97qcx";
|
||||||
|
}
|
||||||
|
else "";
|
||||||
|
|
||||||
|
|
||||||
inherit noSysDirs profiledCompiler staticCompiler;
|
inherit noSysDirs profiledCompiler staticCompiler;
|
||||||
|
|
||||||
buildInputs = [ texinfo gmp mpfr gettext ]
|
buildInputs = [ texinfo gmp mpfr gettext ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user