iniparser library added

svn path=/nixpkgs/branches/stdenv-updates/; revision=10193
This commit is contained in:
Yury G. Kudryashov 2008-01-17 13:00:21 +00:00
parent 60f2d47400
commit 4eeee85ad1
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,34 @@
args: with args;
stdenv.mkDerivation rec{
name = "iniparser-3.0b";
src = fetchurl {
url = "${meta.homepage}/iniparser3.0b.tar.gz";
sha256 = "09klyddnqlpbgkv4cmh6ww9q5pv6nf1vfmzw4z256p51rnnlqqwa";
};
patches = ./no-usr.patch;
buildFlags = "libiniparser.so";
installPhase = ''
ensureDir $out/lib
cp libiniparser.so.0 $out/lib
ln -s libiniparser.so.0 $out/lib/libiniparser.so
ensureDir $out/include
cp src/*.h $out/include
ensureDir $out/share/doc/${name}
for i in AUTHORS INSTALL LICENSE README; do
bzip2 -c -9 $i > $out/share/doc/${name}/$i.bz2;
done;
cp -r html $out/share/doc/${name}
'';
meta = {
homepage = http://ndevilla.free.fr/iniparser;
description = "Free standalone ini file parsing library";
license = "MIT";
};
}

View File

@ -0,0 +1,14 @@
diff -urN iniparser3.0b.orig/Makefile iniparser3.0b/Makefile
--- iniparser3.0b.orig/Makefile 2008-01-16 19:56:08.000000000 +0100
+++ iniparser3.0b/Makefile 2008-01-16 19:56:49.000000000 +0100
@@ -11,8 +11,8 @@
ARFLAGS = rcv
SHLD = ${CC} ${CFLAGS}
-LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
-LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
+LDSHFLAGS = -shared
+LDFLAGS =
# Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
# RANLIB = ranlib

View File

@ -1987,6 +1987,10 @@ rec {
inherit fetchurl stdenv x11 libjpeg libtiff libungif libpng bzip2;
};
iniparser = import ../development/libraries/iniparser {
inherit fetchurl stdenv;
};
intltoolFun = lib.sumArgs (selectVersion ../development/tools/misc/intltool) {
inherit fetchurl stdenv lib builderDefs stringsWithDeps
perl perlXMLParser;