1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

iniparser library added

svn path=/nixpkgs/trunk/; revision=10344
This commit is contained in:
Yury G. Kudryashov 2008-01-28 19:45:19 +00:00
parent 95f4acf31e
commit bf29533257
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

@ -2083,6 +2083,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;