From unknown Tue Jun 24 17:29:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31175] [PATCH] gnu: Add postgis. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Apr 2018 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 31175@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152387034030975 (code B ref -1); Mon, 16 Apr 2018 09:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2018 09:19:00 +0000 Received: from localhost ([127.0.0.1]:55058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f80Hr-00083W-Ms for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:19:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f80Hp-00083J-Qz for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f80Hh-0005Hc-Tx for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f80Hh-0005HS-PR for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f80Hf-0004Rb-Uz for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f80Hc-0005Fn-Og for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:47 -0400 Received: from lepiller.eu ([89.234.186.109]:44456) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f80Hc-0005E2-Bq for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:44 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 904748cc (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 16 Apr 2018 09:21:43 +0000 (UTC) Date: Mon, 16 Apr 2018 11:18:21 +0200 From: Julien Lepiller Message-ID: <20180416111821.48042726@lepiller.eu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/JHdH6yC2Wy=rlBd5RXVe/ku" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, here are two patches to add postgis and its dependency gdal. --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-gdal.patch >From ef9ce433164c4018642d436fa5a7849ddd6c37b6 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 16 Apr 2018 10:36:53 +0200 Subject: [PATCH 1/2] gnu: Add gdal. * gnu/packages/geo.scm (gdal): New variable. --- gnu/packages/geo.scm | 93 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 9c7c071db..08c843728 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -43,6 +43,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages icu4c) + #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages statistics) @@ -611,3 +612,95 @@ spatial data and models on top of static maps from various online sources (e.g Google Maps and Stamen Maps). It includes tools common to those tasks, including functions for geolocation and routing.") (license license:gpl2))) + +(define-public gdal + (package + (name "gdal") + (version "2.2.4") + (source (origin + (method url-fetch) + (uri (string-append + "http://download.osgeo.org/gdal/" version "/gdal-" + version ".tar.gz")) + (sha256 + (base32 + "1951f7b69x3d1vic0rmq92q8f4bj3hbxnxmj5jl0cc3zg0isgmdr")) + (modules '((guix build utils))) + (snippet + `(begin + ;; TODO: frmts contains a lot more bundled code. + (for-each delete-file-recursively + ;; bundled code + '("frmts/png/libpng" + "frmts/gif/giflib" + "frmts/jpeg/libjpeg" + "frmts/jpeg/libjpeg12" + "frmts/gtiff/libtiff" + "frmts/gtiff/libgeotiff" + "frmts/zlib" + "ogr/ogrsf_frmts/geojson/libjson")))))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:configure-flags + (let-syntax ((with (syntax-rules () + ((_ option input) + (string-append option "=" + (assoc-ref %build-inputs input)))))) + (list + ;; TODO: --with-pcidsk, --with-pcraster + (with "--with-freexl" "freexl") + (with "--with-libjson-c" "json-c") + (with "--with-png" "libpng") + (with "--with-webp" "libwebp") + (with "--with-gif" "giflib") + (with "--with-jpeg" "libjpeg") + (with "--with-libtiff" "libtiff") + (with "--with-geotiff" "libgeotiff") + (with "--with-libz" "zlib") + "--with-pcre")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-path + (lambda _ + (substitute* "frmts/mrf/mrf_band.cpp" + (("\"../zlib/zlib.h\"") ""))))))) + (inputs + `(("freexl" ,freexl) + ("geos" ,geos) + ("giflib" ,giflib) + ("json-c" ,json-c) + ("libgeotiff" ,libgeotiff) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("libwebp" ,libwebp) + ("pcre" ,pcre) + ("zlib" ,zlib))) + (home-page "http://www.gdal.org/") + (synopsis "Raster and vector geospation data format library") + (description "GDAL is a translator library for raster and vector geospatial +data formats. As a library, it presents a single raster abstract data model +and single vector abstract data model to the calling application for all +supported formats. It also comes with a variety of useful command line +utilities for data translation and processing.") + (license (list + ; general license + license:expat + ; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf, + ; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp + ; frmts/mrf/ + license:bsd-3 + ; frmts/hdf4/hdf-eos/* + ; similar to the expat license, but without guarantee exclusion + (license:non-copyleft "file://frmts/hdf4/hdf-eos/README") + ; frmts/grib/degrib/ + license:public-domain ; with guarantee exclusion + ; port/cpl_minizip* + ; Some bsd-inspired license + (license:non-copyleft "file://port/LICENCE_minizip") + ; alg/internal_libqhull + ; Some 5-clause license + (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt") + ; frmts/mrf/libLERC + license:asl2.0)))) -- 2.17.0 --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-postgis.patch >From 0f844a0c65c484d0d52e67db1f63bc2892ef0aec Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 16 Apr 2018 10:45:52 +0200 Subject: [PATCH 2/2] gnu: Add postgis. * gnu/packages/geo.scm (postgis): New variable. --- gnu/packages/geo.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 08c843728..1739e1e68 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -44,6 +44,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages icu4c) #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages statistics) @@ -704,3 +705,56 @@ utilities for data translation and processing.") (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt") ; frmts/mrf/libLERC license:asl2.0)))) + +(define-public postgis + (package + (name "postgis") + (version "2.4.4") + (source (origin + (method url-fetch) + (uri (string-append "https://download.osgeo.org/postgis/source/postgis-" + version ".tar.gz")) + (sha256 + (base32 + "1hm8migjb53cymp4qvg1h20yqllmy9f7x0awv5450391i6syyqq6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:make-flags + (list (string-append "datadir=" (assoc-ref %outputs "out") "/share") + (string-append "docdir="(assoc-ref %outputs "out") "/share/doc") + (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib") + (string-append "bindir=" (assoc-ref %outputs "out") "/bin")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-install-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile") + (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)") + (string-append (assoc-ref outputs "out") "/bin")))))))) + (inputs + `(("gdal" ,gdal) + ("geos" ,geos) + ("libxml2" ,libxml2) + ("pcre" ,pcre) + ("postgresql" ,postgresql) + ("proj.4" ,proj.4))) + (native-inputs + `(("perl" ,perl) + ("pkg-config" ,pkg-config))) + (home-page "https://postgis.net") + (synopsis "Spatial database extender for PostgreSQL") + (description " PostGIS is a spatial database extender for PostgreSQL +object-relational database. It adds support for geographic objects allowing +location queries to be run in SQL.") + (license (list + ; General license + license:gpl2+ + ; loader/dbfopen, safileio.*, shapefil.h, shpopen.c + license:expat + ; loader/getopt.* + license:public-domain + ; doc/xsl + license:bsd-3 ; files only say "BSD" + ; doc + license:cc-by-sa3.0)))) -- 2.17.0 --MP_/JHdH6yC2Wy=rlBd5RXVe/ku-- From unknown Tue Jun 24 17:29:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31175] [PATCH] gnu: Add postgis. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 Apr 2018 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 31175@debbugs.gnu.org Received: via spool by 31175-submit@debbugs.gnu.org id=B31175.152400401619933 (code B ref 31175); Tue, 17 Apr 2018 22:27:01 +0000 Received: (at 31175) by debbugs.gnu.org; 17 Apr 2018 22:26:56 +0000 Received: from localhost ([127.0.0.1]:58143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8Z3w-0005BQ-K1 for submit@debbugs.gnu.org; Tue, 17 Apr 2018 18:26:56 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:33202 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8Z3u-0005BI-Qk for 31175@debbugs.gnu.org; Tue, 17 Apr 2018 18:26:55 -0400 Received: from alma-ubu (p57B52973.dip0.t-ipconnect.de [87.181.41.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 57E1F40B9F; Wed, 18 Apr 2018 00:26:53 +0200 (CEST) Date: Wed, 18 Apr 2018 00:26:45 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180418002645.1626ef6b@alma-ubu> In-Reply-To: <20180416111821.48042726@lepiller.eu> References: <20180416111821.48042726@lepiller.eu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/.lCdyd1qEF.G9N9F8.y17+L"; protocol="application/pgp-signature" X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/.lCdyd1qEF.G9N9F8.y17+L Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Julien, cool! Thanks for adding GDAL (and PostGIS). I have this on my TODO-list but haven't done it yet because of the long license list and all the dependencies. That's also the reason of why I haven't (yet?) done a full review. I only noticed two things: * Add a Copyright header for you. On Mon, 16 Apr 2018 11:18:21 +0200 Julien Lepiller wrote: > * gnu/packages/geo.scm (gdal): New variable. > --- > gnu/packages/geo.scm | 93 > ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 > insertions(+) [..] > + (home-page "http://www.gdal.org/") > + (synopsis "Raster and vector geospation data format library") This should be: geospatiAL=20 > + (description "GDAL is a translator library for raster and vector > geospatial +data formats. As a library, it presents a single raster > abstract data model +and single vector abstract data model to the > calling application for all +supported formats. It also comes with a > variety of useful command line +utilities for data translation and > processing.") OK. > + (license (list Not looked into this. Bj=C3=B6rn --Sig_/.lCdyd1qEF.G9N9F8.y17+L Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlrWdKYACgkQvyhstlk+X/3S8QCdHMvNOebrcLcNrJ6neZ1Xpb73 FG0AoIUXKs18DVHquuKu+ZRh8sARC0+X =Oa98 -----END PGP SIGNATURE----- --Sig_/.lCdyd1qEF.G9N9F8.y17+L-- From unknown Tue Jun 24 17:29:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31175] [PATCH] gnu: Add postgis. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 May 2018 05:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 31175@debbugs.gnu.org Received: via spool by 31175-submit@debbugs.gnu.org id=B31175.152584469625608 (code B ref 31175); Wed, 09 May 2018 05:45:01 +0000 Received: (at 31175) by debbugs.gnu.org; 9 May 2018 05:44:56 +0000 Received: from localhost ([127.0.0.1]:54714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGHuK-0006ey-2e for submit@debbugs.gnu.org; Wed, 09 May 2018 01:44:56 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:34190 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGHuH-0006ep-LC for 31175@debbugs.gnu.org; Wed, 09 May 2018 01:44:54 -0400 Received: from alma-ubu (unknown [46.183.103.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id E5F3F40B20; Wed, 9 May 2018 07:44:51 +0200 (CEST) Date: Wed, 9 May 2018 07:44:45 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180509074445.4c2bb458@alma-ubu> In-Reply-To: <20180416111821.48042726@lepiller.eu> References: <20180416111821.48042726@lepiller.eu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/G5etJjwHze/CecCNivEgPFi"; protocol="application/pgp-signature" X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/G5etJjwHze/CecCNivEgPFi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 16 Apr 2018 11:18:21 +0200 Julien Lepiller wrote: > Hi, here are two patches to add postgis and its dependency gdal. Hi Julien, I did a concise review of GDAL now. Besides of my above remarks, I have the following small notes: (license (list ; general license --> I think full-line comments should start with ";;" double semi-colons. ("libjpeg" ,libjpeg) --> Can you use libjpeg-turbo? The list of dependencies/supported algorithms could of cause be extended, but as a first start, this is OK. I could successfully use in a guix container ogr2ogr with a shapefile, transforming coordinates from EPSG:31468 to EPSG:4326. Furthermore, I could gdal_translate a tif+tfw into a jpeg*world-file. Thanks, Bj=C3=B6rn --Sig_/G5etJjwHze/CecCNivEgPFi Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlryis0ACgkQvyhstlk+X/01hgCglfV8Qv7uipoBTAR87P7v2wMH 1BEAoIdfxCTtO8jSWfrzEB8MQv9FPnIm =gmHM -----END PGP SIGNATURE----- --Sig_/G5etJjwHze/CecCNivEgPFi-- From unknown Tue Jun 24 17:29:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31175] [PATCH] gnu: Add postgis. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 May 2018 06:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 31175@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152584867131363 (code B ref -1); Wed, 09 May 2018 06:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2018 06:51:11 +0000 Received: from localhost ([127.0.0.1]:54735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGIwP-00089m-Lq for submit@debbugs.gnu.org; Wed, 09 May 2018 02:51:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGIwO-00089a-9B for submit@debbugs.gnu.org; Wed, 09 May 2018 02:51:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGIwI-0006dj-D9 for submit@debbugs.gnu.org; Wed, 09 May 2018 02:51:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGIwI-0006dR-9h for submit@debbugs.gnu.org; Wed, 09 May 2018 02:51:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGIwG-0001cV-Ue for guix-patches@gnu.org; Wed, 09 May 2018 02:51:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGIwD-0006Us-3F for guix-patches@gnu.org; Wed, 09 May 2018 02:51:01 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:53518 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGIwC-0006S0-SD for guix-patches@gnu.org; Wed, 09 May 2018 02:50:57 -0400 Received: from alma-ubu (hsvpn9.hotsplots.net [87.230.72.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id DF05C40B20 for ; Wed, 9 May 2018 08:50:54 +0200 (CEST) Date: Wed, 9 May 2018 08:50:52 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180509085052.575d501b@alma-ubu> In-Reply-To: <20180416111821.48042726@lepiller.eu> References: <20180416111821.48042726@lepiller.eu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/=bkz24pWRYSVaYM1lnVV1gU"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.9 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.9 (-----) --Sig_/=bkz24pWRYSVaYM1lnVV1gU Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hu Julien, looking at PostGIS: On Mon, 16 Apr 2018 11:18:21 +0200 Julien Lepiller wrote: > Hi, here are two patches to add postgis and its dependency gdal. + (description " PostGIS is a spatial database extender for PostgreSQL --> There is a space at the beginning. Besides of that, this looks good. I have successfully tried shp2pgsql.=20 I have not tried and have no idea of how to use Postgresql+PostGIS within GuixSD or with a temp database in a Guix container. Thanks, Bj=C3=B6rn --Sig_/=bkz24pWRYSVaYM1lnVV1gU Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlrymk0ACgkQvyhstlk+X/1jOgCeNzu060J1cYtYAeiy6vdTdp7v j7sAoIpyTo38gpW3IqU499KUQsdybWQ1 =nCqK -----END PGP SIGNATURE----- --Sig_/=bkz24pWRYSVaYM1lnVV1gU-- From unknown Tue Jun 24 17:29:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31175] [PATCH] gnu: Add postgis. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 May 2018 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 31175@debbugs.gnu.org Received: via spool by 31175-submit@debbugs.gnu.org id=B31175.152589869028420 (code B ref 31175); Wed, 09 May 2018 20:45:02 +0000 Received: (at 31175) by debbugs.gnu.org; 9 May 2018 20:44:50 +0000 Received: from localhost ([127.0.0.1]:55600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGVxC-0007OK-IZ for submit@debbugs.gnu.org; Wed, 09 May 2018 16:44:50 -0400 Received: from lepiller.eu ([89.234.186.109]:34412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGVxA-0007OB-P2 for 31175@debbugs.gnu.org; Wed, 09 May 2018 16:44:49 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 5d6e349e (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <31175@debbugs.gnu.org>; Wed, 9 May 2018 20:46:15 +0000 (UTC) Date: Wed, 9 May 2018 22:44:43 +0200 From: Julien Lepiller Message-ID: <20180509224439.25ce2bc2@lepiller.eu> In-Reply-To: <20180509085052.575d501b@alma-ubu> References: <20180416111821.48042726@lepiller.eu> <20180509085052.575d501b@alma-ubu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le Wed, 9 May 2018 08:50:52 +0200, Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : > Hu Julien, >=20 > looking at PostGIS: >=20 > On Mon, 16 Apr 2018 11:18:21 +0200 > Julien Lepiller wrote: >=20 > > Hi, here are two patches to add postgis and its dependency gdal. =20 >=20 > + (description " PostGIS is a spatial database extender for > PostgreSQL >=20 > --> There is a space at the beginning. =20 >=20 > Besides of that, this looks good. >=20 > I have successfully tried shp2pgsql.=20 >=20 > I have not tried and have no idea of how to use Postgresql+PostGIS > within GuixSD or with a temp database in a Guix container. I've tried to, but the extension directory is hardcoded. Nix has this patch for postgresql: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/postgresql/sp= ecify_pkglibdir_at_runtime.patch With this, we could add a field to the postgresql configuration that would take a list of extension packages and set the environment variable accordingly. The patch only allows one path though. Do you think it's worth it to adjust it and allow more paths? >=20 > Thanks, >=20 > Bj=C3=B6rn From unknown Tue Jun 24 17:29:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Julien Lepiller Subject: bug#31175: closed (Re: [bug#31175] [PATCH] gnu: Add postgis.) Message-ID: References: <20180523230858.33bb209d@lepiller.eu> <20180416111821.48042726@lepiller.eu> X-Gnu-PR-Message: they-closed 31175 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 31175@debbugs.gnu.org Date: Wed, 23 May 2018 21:10:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1527109802-10024-1" This is a multi-part message in MIME format... ------------=_1527109802-10024-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31175: [PATCH] gnu: Add postgis. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31175@debbugs.gnu.org. --=20 31175: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31175 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1527109802-10024-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31175-done) by debbugs.gnu.org; 23 May 2018 21:09:08 +0000 Received: from localhost ([127.0.0.1]:45684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLb0N-0002aV-4Q for submit@debbugs.gnu.org; Wed, 23 May 2018 17:09:08 -0400 Received: from lepiller.eu ([89.234.186.109]:54068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLb0K-0002aM-Si for 31175-done@debbugs.gnu.org; Wed, 23 May 2018 17:09:05 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id c8bb16a6 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <31175-done@debbugs.gnu.org>; Wed, 23 May 2018 21:10:57 +0000 (UTC) Date: Wed, 23 May 2018 23:08:58 +0200 From: Julien Lepiller To: 31175-done@debbugs.gnu.org Subject: Re: [bug#31175] [PATCH] gnu: Add postgis. Message-ID: <20180523230858.33bb209d@lepiller.eu> In-Reply-To: <20180509074445.4c2bb458@alma-ubu> References: <20180416111821.48042726@lepiller.eu> <20180509074445.4c2bb458@alma-ubu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/JAbly9c.IuBnvEAM_WozSlp"; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31175-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/JAbly9c.IuBnvEAM_WozSlp Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Pushed as 2b9be1a63aef1a0e67e94bfd9a676b6cb5c8463f and 996e45cbf7e46977e16c4ebc5ecc394db28f4a21, thank you for your review! --Sig_/JAbly9c.IuBnvEAM_WozSlp Content-Type: application/pgp-signature Content-Description: Signature digitale OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEtfrmKFtBNyiyoPrtQxEfRSAIagwFAlsF2GoACgkQQxEfRSAI agxPDg/7BgGF0eXLt9nmDxKTQvKVxC9cIhwXdmcUwFxNYBSTQphTjRvKSe70zb5q aWi0lLXcnDth+aOfHj3XTUHKe8dFTO2uyCuYOIrLpP5RlIoR2M8Y0+jsmDTc4M2I zehgLb3nW83huiwFyNyxh524WH46b9s4VpsSb9LyMtPE2s0WY/lTzFNRsNHO+I9+ xRP1NHAdD0rUB5w1Y7tZx5z3+r3FngY/lfxv7Imt/FNwg7oFwa0iwXdWfKcVTH+1 U5Sr7nDneyqWe2tPdKMROPaTeUHtTNHfkIzjxh03TgFzTyfrU9aJFP27NXNGhrYc umQZqtuzB0o/1VDv2itzj+oDa2K9qgFwVYBL06+5064BkIFIP+umSWJWZ8af8dSt OnH6GX0uVcnGoCWQyzq0gXZywxKaiwTahrh39mluZkkYhSizdvdXrz1IgvJwc1uL 3NjabbTfE9wge57QGvMWgIxy7BGVwkW0R7QYVCIyLkZ2JyN+snszkre/cGu5ad5J x934aKWqfUtexx4+1eepejipx8zrZ0WPfJcyxh96aOq4qh1FM3MGmqekXFghkwLa tkN1hsKmPbwTQ9QQbN1o408Q5iH7GnEXl6mCQkztehCxgZ6/aYsgoiy5kXQqmm9O GWYV5Jir5Mdn4c/4thi6pGGLCf/om9G1cGjMFfmrz2AIi76S60k= =X2Jl -----END PGP SIGNATURE----- --Sig_/JAbly9c.IuBnvEAM_WozSlp-- ------------=_1527109802-10024-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Apr 2018 09:19:00 +0000 Received: from localhost ([127.0.0.1]:55058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f80Hr-00083W-Ms for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:19:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f80Hp-00083J-Qz for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f80Hh-0005Hc-Tx for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f80Hh-0005HS-PR for submit@debbugs.gnu.org; Mon, 16 Apr 2018 05:18:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f80Hf-0004Rb-Uz for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f80Hc-0005Fn-Og for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:47 -0400 Received: from lepiller.eu ([89.234.186.109]:44456) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f80Hc-0005E2-Bq for guix-patches@gnu.org; Mon, 16 Apr 2018 05:18:44 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 904748cc (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 16 Apr 2018 09:21:43 +0000 (UTC) Date: Mon, 16 Apr 2018 11:18:21 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH] gnu: Add postgis. Message-ID: <20180416111821.48042726@lepiller.eu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/JHdH6yC2Wy=rlBd5RXVe/ku" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, here are two patches to add postgis and its dependency gdal. --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-gdal.patch >From ef9ce433164c4018642d436fa5a7849ddd6c37b6 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 16 Apr 2018 10:36:53 +0200 Subject: [PATCH 1/2] gnu: Add gdal. * gnu/packages/geo.scm (gdal): New variable. --- gnu/packages/geo.scm | 93 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 9c7c071db..08c843728 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -43,6 +43,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages icu4c) + #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages statistics) @@ -611,3 +612,95 @@ spatial data and models on top of static maps from various online sources (e.g Google Maps and Stamen Maps). It includes tools common to those tasks, including functions for geolocation and routing.") (license license:gpl2))) + +(define-public gdal + (package + (name "gdal") + (version "2.2.4") + (source (origin + (method url-fetch) + (uri (string-append + "http://download.osgeo.org/gdal/" version "/gdal-" + version ".tar.gz")) + (sha256 + (base32 + "1951f7b69x3d1vic0rmq92q8f4bj3hbxnxmj5jl0cc3zg0isgmdr")) + (modules '((guix build utils))) + (snippet + `(begin + ;; TODO: frmts contains a lot more bundled code. + (for-each delete-file-recursively + ;; bundled code + '("frmts/png/libpng" + "frmts/gif/giflib" + "frmts/jpeg/libjpeg" + "frmts/jpeg/libjpeg12" + "frmts/gtiff/libtiff" + "frmts/gtiff/libgeotiff" + "frmts/zlib" + "ogr/ogrsf_frmts/geojson/libjson")))))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:configure-flags + (let-syntax ((with (syntax-rules () + ((_ option input) + (string-append option "=" + (assoc-ref %build-inputs input)))))) + (list + ;; TODO: --with-pcidsk, --with-pcraster + (with "--with-freexl" "freexl") + (with "--with-libjson-c" "json-c") + (with "--with-png" "libpng") + (with "--with-webp" "libwebp") + (with "--with-gif" "giflib") + (with "--with-jpeg" "libjpeg") + (with "--with-libtiff" "libtiff") + (with "--with-geotiff" "libgeotiff") + (with "--with-libz" "zlib") + "--with-pcre")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-path + (lambda _ + (substitute* "frmts/mrf/mrf_band.cpp" + (("\"../zlib/zlib.h\"") ""))))))) + (inputs + `(("freexl" ,freexl) + ("geos" ,geos) + ("giflib" ,giflib) + ("json-c" ,json-c) + ("libgeotiff" ,libgeotiff) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("libwebp" ,libwebp) + ("pcre" ,pcre) + ("zlib" ,zlib))) + (home-page "http://www.gdal.org/") + (synopsis "Raster and vector geospation data format library") + (description "GDAL is a translator library for raster and vector geospatial +data formats. As a library, it presents a single raster abstract data model +and single vector abstract data model to the calling application for all +supported formats. It also comes with a variety of useful command line +utilities for data translation and processing.") + (license (list + ; general license + license:expat + ; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf, + ; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp + ; frmts/mrf/ + license:bsd-3 + ; frmts/hdf4/hdf-eos/* + ; similar to the expat license, but without guarantee exclusion + (license:non-copyleft "file://frmts/hdf4/hdf-eos/README") + ; frmts/grib/degrib/ + license:public-domain ; with guarantee exclusion + ; port/cpl_minizip* + ; Some bsd-inspired license + (license:non-copyleft "file://port/LICENCE_minizip") + ; alg/internal_libqhull + ; Some 5-clause license + (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt") + ; frmts/mrf/libLERC + license:asl2.0)))) -- 2.17.0 --MP_/JHdH6yC2Wy=rlBd5RXVe/ku Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-postgis.patch >From 0f844a0c65c484d0d52e67db1f63bc2892ef0aec Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 16 Apr 2018 10:45:52 +0200 Subject: [PATCH 2/2] gnu: Add postgis. * gnu/packages/geo.scm (postgis): New variable. --- gnu/packages/geo.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 08c843728..1739e1e68 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -44,6 +44,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages icu4c) #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages statistics) @@ -704,3 +705,56 @@ utilities for data translation and processing.") (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt") ; frmts/mrf/libLERC license:asl2.0)))) + +(define-public postgis + (package + (name "postgis") + (version "2.4.4") + (source (origin + (method url-fetch) + (uri (string-append "https://download.osgeo.org/postgis/source/postgis-" + version ".tar.gz")) + (sha256 + (base32 + "1hm8migjb53cymp4qvg1h20yqllmy9f7x0awv5450391i6syyqq6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:make-flags + (list (string-append "datadir=" (assoc-ref %outputs "out") "/share") + (string-append "docdir="(assoc-ref %outputs "out") "/share/doc") + (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib") + (string-append "bindir=" (assoc-ref %outputs "out") "/bin")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-install-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile") + (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)") + (string-append (assoc-ref outputs "out") "/bin")))))))) + (inputs + `(("gdal" ,gdal) + ("geos" ,geos) + ("libxml2" ,libxml2) + ("pcre" ,pcre) + ("postgresql" ,postgresql) + ("proj.4" ,proj.4))) + (native-inputs + `(("perl" ,perl) + ("pkg-config" ,pkg-config))) + (home-page "https://postgis.net") + (synopsis "Spatial database extender for PostgreSQL") + (description " PostGIS is a spatial database extender for PostgreSQL +object-relational database. It adds support for geographic objects allowing +location queries to be run in SQL.") + (license (list + ; General license + license:gpl2+ + ; loader/dbfopen, safileio.*, shapefil.h, shpopen.c + license:expat + ; loader/getopt.* + license:public-domain + ; doc/xsl + license:bsd-3 ; files only say "BSD" + ; doc + license:cc-by-sa3.0)))) -- 2.17.0 --MP_/JHdH6yC2Wy=rlBd5RXVe/ku-- ------------=_1527109802-10024-1--