* Merge builder-cygwin.sh.
svn path=/nixpkgs/trunk/; revision=7497
This commit is contained in:
parent
7a2c0d1793
commit
f6d923febc
|
@ -10,5 +10,3 @@
|
||||||
* Add gettext to glib propagatedBuildInputs? Glib's `gi18n.h' doesn't
|
* Add gettext to glib propagatedBuildInputs? Glib's `gi18n.h' doesn't
|
||||||
seem to like Glibc `libintl.h'; needs the gettext one instead.
|
seem to like Glibc `libintl.h'; needs the gettext one instead.
|
||||||
[Move from libbonoboui]
|
[Move from libbonoboui]
|
||||||
|
|
||||||
* Fix the bzip2 build generically.
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
source $stdenv/setup
|
|
||||||
installFlags="PREFIX=$out"
|
|
||||||
|
|
||||||
if test -n "$sharedLibrary"; then
|
|
||||||
|
|
||||||
preBuild=preBuild
|
|
||||||
preBuild() {
|
|
||||||
make -f Makefile-libbz2_so
|
|
||||||
}
|
|
||||||
|
|
||||||
preInstall=preInstall
|
|
||||||
preInstall() {
|
|
||||||
ensureDir $out/lib
|
|
||||||
mv libbz2.so* $out/lib
|
|
||||||
}
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
postInstall=postInstall
|
|
||||||
postInstall() {
|
|
||||||
rm $out/bin/bunzip2* $out/bin/bzcat*
|
|
||||||
ln -s bzip2 $out/bin/bunzip2
|
|
||||||
ln -s bzip2 $out/bin/bzcat
|
|
||||||
}
|
|
||||||
|
|
||||||
genericBuild
|
|
|
@ -18,7 +18,7 @@ fi
|
||||||
|
|
||||||
postInstall=postInstall
|
postInstall=postInstall
|
||||||
postInstall() {
|
postInstall() {
|
||||||
rm $out/bin/bunzip2 $out/bin/bzcat
|
rm $out/bin/bunzip2* $out/bin/bzcat*
|
||||||
ln -s bzip2 $out/bin/bunzip2
|
ln -s bzip2 $out/bin/bunzip2
|
||||||
ln -s bzip2 $out/bin/bzcat
|
ln -s bzip2 $out/bin/bzcat
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "bzip2-1.0.3";
|
name = "bzip2-1.0.3";
|
||||||
builder = if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh else ./builder.sh; # !!! merge
|
builder = ./builder.sh;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
|
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
|
||||||
|
|
Loading…
Reference in New Issue