mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
* Unify the bzip2 builders.
svn path=/nixpkgs/trunk/; revision=6833
This commit is contained in:
parent
1080560215
commit
97a65f81b2
@ -1,4 +0,0 @@
|
||||
source $stdenv/setup
|
||||
installFlags="PREFIX=$out"
|
||||
|
||||
genericBuild
|
@ -1,24 +0,0 @@
|
||||
source $stdenv/setup
|
||||
installFlags="PREFIX=$out"
|
||||
|
||||
preBuild=preBuild
|
||||
preBuild() {
|
||||
make -f Makefile-libbz2_so
|
||||
}
|
||||
|
||||
preInstall=preInstall
|
||||
preInstall() {
|
||||
ensureDir $out/lib
|
||||
cp -p libbz2.so* $out/lib
|
||||
ln -s libbz2.so.*.*.* $out/lib/libbz2.so
|
||||
}
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
rm $out/bin/bunzip2 $out/bin/bzcat
|
||||
ln -s bzip2 $out/bin/bunzip2
|
||||
ln -s bzip2 $out/bin/bzcat
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
@ -1,11 +0,0 @@
|
||||
source $stdenv/setup
|
||||
installFlags="PREFIX=$out"
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
rm $out/bin/bunzip2 $out/bin/bzcat
|
||||
ln -s bzip2 $out/bin/bunzip2
|
||||
ln -s bzip2 $out/bin/bzcat
|
||||
}
|
||||
|
||||
genericBuild
|
@ -1,17 +1,20 @@
|
||||
source $stdenv/setup
|
||||
installFlags="PREFIX=$out"
|
||||
|
||||
preBuild=preBuild
|
||||
preBuild() {
|
||||
make -f Makefile-libbz2_so
|
||||
}
|
||||
if test -n "$sharedLibrary"; then
|
||||
|
||||
preInstall=preInstall
|
||||
preInstall() {
|
||||
ensureDir $out/lib
|
||||
cp -pd libbz2.so* $out/lib
|
||||
ln -s libbz2.so.*.*.* $out/lib/libbz2.so
|
||||
}
|
||||
preBuild=preBuild
|
||||
preBuild() {
|
||||
make -f Makefile-libbz2_so
|
||||
}
|
||||
|
||||
preInstall=preInstall
|
||||
preInstall() {
|
||||
ensureDir $out/lib
|
||||
mv libbz2.so* $out/lib
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
@ -21,4 +24,3 @@ postInstall() {
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
||||
|
@ -2,14 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "bzip2-1.0.3";
|
||||
builder =
|
||||
# !!! Merge these builders.
|
||||
if stdenv.isDarwin || stdenv ? isDietLibC then ./builder-static.sh
|
||||
else if stdenv.system == "i686-freebsd" then ./builder-freebsd.sh
|
||||
else if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh
|
||||
else ./builder.sh;
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
|
||||
md5 = "8a716bebecb6e647d2e8a29ea5d8447f";
|
||||
};
|
||||
|
||||
sharedLibrary =
|
||||
!stdenv.isDarwin && !(stdenv ? isDietLibC) && system != "i686-cygwin";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user