diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:47 +0000 |
commit | 36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch) | |
tree | b3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/development/libraries/librdf | |
parent | 4e31070265257dc67d120c27e0f75c2344fdfa9a (diff) | |
parent | abf060725d7614bd3b9f96764262dfbc2f9c2199 (diff) | |
download | nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2 nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip |
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/librdf')
5 files changed, 157 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/librdf/default.nix b/nixpkgs/pkgs/development/libraries/librdf/default.nix new file mode 100644 index 000000000000..41047796662e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librdf/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, pkgconfig, autoreconfHook +, librdf_raptor2, ladspaH, openssl, zlib +, doCheck ? stdenv.config.doCheckByDefault or false, ladspaPlugins +}: + +stdenv.mkDerivation rec { + version = "0.5.0"; + name = "liblrdf-${version}"; + + src = fetchurl { + url = "http://github.com/swh/LRDF/archive/${version}.tar.gz"; + sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s"; + }; + + postPatch = stdenv.lib.optionalString doCheck '' + sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c + ''; + + preAutoreconf = "rm m4/*"; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + buildInputs = [ ladspaH openssl zlib ]; + + propagatedBuildInputs = [ librdf_raptor2 ]; + + inherit doCheck; + + meta = { + description = "Lightweight RDF library with special support for LADSPA plugins"; + homepage = https://sourceforge.net/projects/lrdf/; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.marcweber ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/librdf/raptor.nix b/nixpkgs/pkgs/development/libraries/librdf/raptor.nix new file mode 100644 index 000000000000..14e3e1891bae --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librdf/raptor.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, libxml2, curl }: + +stdenv.mkDerivation rec { + name = "raptor-1.4.21"; + + src = fetchurl { + url = "http://download.librdf.org/source/${name}.tar.gz"; + sha256 = "db3172d6f3c432623ed87d7d609161973d2f7098e3d2233d0702fbcc22cfd8ca"; + }; + + buildInputs = [ libxml2 curl ]; + + preBuild = '' + sed -e '/curl\/types/d' -i src/*.c src/*.h + ''; + + meta = { + description = "The RDF Parser Toolkit"; + homepage = http://librdf.org/raptor; + license = with stdenv.lib.licenses; [ lgpl21 asl20 ]; + maintainers = [ stdenv.lib.maintainers.marcweber ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/librdf/raptor2.nix b/nixpkgs/pkgs/development/libraries/librdf/raptor2.nix new file mode 100644 index 000000000000..3f4366771235 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librdf/raptor2.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, libxml2, libxslt }: + +stdenv.mkDerivation rec { + name = "raptor2-2.0.15"; + + src = fetchurl { + url = "http://download.librdf.org/source/${name}.tar.gz"; + sha256 = "ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed"; + }; + + buildInputs = [ libxml2 libxslt ]; + + postInstall = "rm -rvf $out/share/gtk-doc"; + + meta = { + description = "The RDF Parser Toolkit"; + homepage = http://librdf.org/raptor; + license = with stdenv.lib.licenses; [ lgpl21 asl20 ]; + maintainers = with stdenv.lib.maintainers; [ marcweber ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/librdf/rasqal.nix b/nixpkgs/pkgs/development/libraries/librdf/rasqal.nix new file mode 100644 index 000000000000..124fd0178182 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librdf/rasqal.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, librdf_raptor2, gmp, pkgconfig, pcre, libxml2, perl }: + +stdenv.mkDerivation rec { + name = "rasqal-0.9.33"; + + src = fetchurl { + url = "http://download.librdf.org/source/${name}.tar.gz"; + sha256 = "0z6rrwn4jsagvarg8d5zf0j352kjgi33py39jqd29gbhcnncj939"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ gmp pcre libxml2 ]; + + propagatedBuildInputs = [ librdf_raptor2 ]; + + postInstall = "rm -rvf $out/share/gtk-doc"; + + checkInputs = [ perl ]; + doCheck = false; # fails with "No testsuite plan file sparql-query-plan.ttl could be created in build/..." + doInstallCheck = false; # fails with "rasqal-config does not support (--help|--version)" + + meta = { + description = "Library that handles Resource Description Framework (RDF)"; + homepage = http://librdf.org/rasqal; + license = with stdenv.lib.licenses; [ lgpl21 asl20 ]; + maintainers = with stdenv.lib.maintainers; [ marcweber ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/librdf/redland.nix b/nixpkgs/pkgs/development/libraries/librdf/redland.nix new file mode 100644 index 000000000000..30d8d8a94e9d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librdf/redland.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchurl, pkgconfig, openssl, libxslt, perl +, curl, pcre, libxml2, librdf_rasqal, gmp +, mysql, withMysql ? false +, postgresql, withPostgresql ? false +, sqlite, withSqlite ? true +, db, withBdb ? false +}: + +stdenv.mkDerivation rec { + name = "redland-1.0.17"; + + src = fetchurl { + url = "http://download.librdf.org/source/${name}.tar.gz"; + sha256 = "de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681"; + }; + + nativeBuildInputs = [ perl pkgconfig ]; + + buildInputs = [ openssl libxslt curl pcre libxml2 gmp ] + ++ stdenv.lib.optional withMysql mysql.connector-c + ++ stdenv.lib.optional withSqlite sqlite + ++ stdenv.lib.optional withPostgresql postgresql + ++ stdenv.lib.optional withBdb db; + + propagatedBuildInputs = [ librdf_rasqal ]; + + postInstall = "rm -rvf $out/share/gtk-doc"; + + configureFlags = + [ "--with-threads" ] + ++ stdenv.lib.optionals withBdb [ + "--with-bdb-include=${db.dev}/include" + "--with-bdb-lib=${db.out}/lib" + ]; + + # Fix broken DT_NEEDED in lib/redland/librdf_storage_sqlite.so. + NIX_CFLAGS_LINK = "-lraptor2"; + + doCheck = false; # fails 1 out of 17 tests with a segmentation fault + + meta = with stdenv.lib; { + description = "C libraries that provide support for the Resource Description Framework (RDF)"; + homepage = http://librdf.org/; + platforms = platforms.unix; + license = licenses.asl20; + }; +} |