From bf2953325739fbec5d7f65436585490512437d8a Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Mon, 28 Jan 2008 19:45:19 +0000 Subject: iniparser library added svn path=/nixpkgs/trunk/; revision=10344 --- pkgs/development/libraries/iniparser/default.nix | 34 +++++++++++++++++++++++ pkgs/development/libraries/iniparser/no-usr.patch | 14 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/libraries/iniparser/default.nix create mode 100644 pkgs/development/libraries/iniparser/no-usr.patch (limited to 'pkgs/development/libraries/iniparser') diff --git a/pkgs/development/libraries/iniparser/default.nix b/pkgs/development/libraries/iniparser/default.nix new file mode 100644 index 00000000000..46fe5b6ef03 --- /dev/null +++ b/pkgs/development/libraries/iniparser/default.nix @@ -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"; + }; +} diff --git a/pkgs/development/libraries/iniparser/no-usr.patch b/pkgs/development/libraries/iniparser/no-usr.patch new file mode 100644 index 00000000000..28be099b8ee --- /dev/null +++ b/pkgs/development/libraries/iniparser/no-usr.patch @@ -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 -- cgit 1.4.1