From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYDjF-0002it-Hx for guix-patches@gnu.org; Thu, 20 Jul 2017 11:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYDjC-0000z2-Fd for guix-patches@gnu.org; Thu, 20 Jul 2017 11:51:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYDjC-0000yv-Bh for guix-patches@gnu.org; Thu, 20 Jul 2017 11:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYDjC-0007F4-2p for guix-patches@gnu.org; Thu, 20 Jul 2017 11:51:02 -0400 Subject: [bug#27774] [PATCH] gnu: add libgeotiff Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYDie-0002ZP-IP for guix-patches@gnu.org; Thu, 20 Jul 2017 11:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYDib-0000gJ-Eu for guix-patches@gnu.org; Thu, 20 Jul 2017 11:50:28 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:47145 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYDib-0000el-4E for guix-patches@gnu.org; Thu, 20 Jul 2017 11:50:25 -0400 Received: from alma-ubu (unknown [46.189.119.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 04C4C4013A for ; Thu, 20 Jul 2017 17:50:20 +0200 (CEST) Date: Thu, 20 Jul 2017 17:50:18 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20170720175018.49ec09ac@alma-ubu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27774@debbugs.gnu.org =46rom 4e96405382258d0aa3a1760ac77dd0ac72706786 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Bj=3DC3=3DB6rn=3D20H=3DC3=3DB6fling?=3D Date: Tue, 24 Jan 2017 09:00:07 +0100 Subject: [PATCH] gnu: add libgeotiff * gnu/packages/geo.scm (libgeotiff): New variable. --- gnu/packages/geo.scm | 56 ++++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index d8d5490f3..019731158 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -25,9 +25,11 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) + #:use-module (gnu packages compression) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) + #:use-module (gnu packages image) #:use-module (gnu packages pkg-config) #:use-module (gnu packages webkit) #:use-module (gnu packages xml)) @@ -133,6 +135,60 @@ and driving.") (home-page "https://wiki.gnome.org/Apps/Maps") (license license:gpl2+))) =20 +(define-public libgeotiff + (package + (name "libgeotiff") + (version "1.4.2") + (source (origin + (method url-fetch) + (uri (string-append "http://download.osgeo.org/geotiff/libgeot= iff/" + "libgeotiff-" + version ".tar.gz")) + (sha256 + (base32 + "0vjy3bwfhljjx66p9w999i4mdhsf7vjshx29yc3pn5livf5091xd")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + `( ,(string-append "--with-zlib") + ,(string-append "--with-jpeg") + ,(string-append "--with-libtiff=3D" + (assoc-ref %build-inputs "libtiff"))) + #:phases + (modify-phases %standard-phases + (add-after + 'unpack 'delete-nonfree-files + (lambda _ + ;; Remove .csv-files, distributed from + ;; EPSG under a restricted license. + ;; See LICENSE.txt for full license text. + (for-each delete-file (find-files "." "\\.csv$")) + ;; Now that we remove the csv-files, we need to modify the Makef= ile: + (substitute* "Makefile.in" + (("all-am: Makefile \\$\\(LTLIBRARIES\\) \\$\\(DATA\\) \\$\\(H= EADERS\\) geo_config.h") + "all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h") + (("install-data-am: install-dist_csvDATA install-includeHEADER= S") + "install-data-am: install-includeHEADERS")) + #t))))) + (inputs `(("libjpeg" ,libjpeg) + ("libtiff" ,libtiff) + ("proj.4" ,proj.4) + ("zlib" ,zlib))) + (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)") + (description + "Libgeotiff is a library on top of libtiff for reading and writing +GeoTIFF information tags.") + ;; This is a mixture of various contributions under different licenses + ;; Not that the EPSG database is NOT "free to use" as the LICENSE file + ;; states, as its commercial redistribution is restricted. + ;; We thus remove it from the package. + (license (list license:public-domain + license:x11 + license:bsd-3 + (license:non-copyleft "file://LICENSE" + "See LICENSE in the distribution."))) + (home-page "https://trac.osgeo.org/geotiff/"))) + (define-public proj.4 (package (name "proj.4") --=20 2.12.2