diff options
author | Marc Weber <marco-oweber@gmx.de> | 2007-12-03 16:01:51 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2007-12-03 16:01:51 +0000 |
commit | d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3 (patch) | |
tree | 6fc74371a1d6480563b19f9648aefadab5ebd928 /pkgs/development/libraries/geos | |
parent | dc5292a6b895949349e0283c94bf1f261f23ab2e (diff) | |
download | nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar.gz nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar.bz2 nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar.lz nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar.xz nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.tar.zst nixlib-d870cba8bc323256b75c5fc6be5f73fa7f7cf0d3.zip |
geos library added
svn path=/nixpkgs/trunk/; revision=9837
Diffstat (limited to 'pkgs/development/libraries/geos')
-rw-r--r-- | pkgs/development/libraries/geos/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/geos/default.nix b/pkgs/development/libraries/geos/default.nix new file mode 100644 index 000000000000..bcfe8f757a24 --- /dev/null +++ b/pkgs/development/libraries/geos/default.nix @@ -0,0 +1,42 @@ +args: +( args.mkDerivationByConfiguration { + + flagConfig = { + mandatory = { implies = "python"; + buildInputs = [ "which" ]; # which is needed for the autogen.sh + }; + # python and ruby untested + python = { cfgOption = "--enable-python"; #Enable build of python module + buildInputs=["python"] ++ (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else []); + }; + ruby = { cfgOption = "--enable-ruby"; }; #Enable build of ruby module + }; + + extraAttrs = co : { + name = "geos-3.0.0rc4"; + + src = if (args.use_svn) then + args.fetchsvn { + url = http://svn.osgeo.org/geos/trunk; + md5 = "b46f5ea517a337064006bab92f3090d4"; + } else args.fetchurl { + url = http://geos.refractions.net/geos-3.0.0rc4.tar.bz2; + sha256 = "0pgwwv8q4p234r2jwdkaxcf68z2fwgmkc74c6dnmms2sdwkb5lbw"; + }; + + configurePhase = " + [ -f configure ] || \\ + LIBTOOLIZE=libtoolize ./autogen.sh + #{ automake --add-missing; autoconf; } + unset configurePhase; configurePhase + "; + + meta = { + description = "C++ port of the Java Topology Suite (JTS)" + + "- all the OpenGIS \"Simple Features for SQL\" spatial predicate functions and spatial operators," + + " as well as specific JTS topology functions such as IsValid"; + homepage = http://geos.refractions.net/; + license = "GPL"; + }; + }; +} ) args |