From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elzxZ-0007VK-5b for guix-patches@gnu.org; Wed, 14 Feb 2018 11:31:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elzxW-0004oQ-0U for guix-patches@gnu.org; Wed, 14 Feb 2018 11:31:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elzxV-0004oG-Sk for guix-patches@gnu.org; Wed, 14 Feb 2018 11:31:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1elzxV-0001FY-NM for guix-patches@gnu.org; Wed, 14 Feb 2018 11:31:01 -0500 Subject: [bug#30456] [PATCH 1/2] gnu: Add mapnik. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elzwh-0006mZ-U8 for guix-patches@gnu.org; Wed, 14 Feb 2018 11:30:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elzwa-0003vY-Su for guix-patches@gnu.org; Wed, 14 Feb 2018 11:30:11 -0500 Received: from [2001:19f0:5:274f:4827:c39:448f:6777] (port=57078 helo=vultr.systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1elzwa-0003sE-8N for guix-patches@gnu.org; Wed, 14 Feb 2018 11:30:04 -0500 From: Arun Isaac Date: Wed, 14 Feb 2018 21:59:03 +0530 Message-Id: <20180214162903.23995-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 30456@debbugs.gnu.org * gnu/packages/geo.scm (mapnik): New variable. --- gnu/packages/geo.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 9c7f7c115..b37320e8b 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2017 Björn Höfling ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018 Ricardo Wurmus +;;; Copyright © 2018 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,16 +24,21 @@ (define-module (gnu packages geo) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) + #:use-module (guix build-system scons) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) + #:use-module (gnu packages boost) #:use-module (gnu packages compression) + #:use-module (gnu packages fontutils) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages image) + #:use-module (gnu packages icu4c) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages webkit) #:use-module (gnu packages xml)) @@ -242,3 +248,46 @@ projections.") (license:non-copyleft "http://www.epsg.org/TermsOfUse") ;; cmake/* license:boost1.0)))) + +(define-public mapnik + (package + (name "mapnik") + (version "3.0.16") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/mapnik/mapnik/releases/download/v" + version "/mapnik-v" version ".tar.bz2")) + (sha256 + (base32 + "1cdivxr6p1gs17ixvjny59sxxaj391fq7famflr24ad3s58n63ha")))) + (build-system scons-build-system) + (inputs + `(("boost" ,boost) + ("freetype" ,freetype) + ("harfbuzz" ,harfbuzz) + ("icu4c" ,icu4c) + ("libjpeg-turbo" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("proj.4" ,proj.4) + ("zlib" ,zlib))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + `(#:scons ,scons-python2 + #:scons-flags + (list "CC=gcc" + (string-append "PREFIX=" %output) + (string-append "CUSTOM_LDFLAGS=-Wl,-rpath=" %output "/lib")))) + (home-page "http://mapnik.org/") + (synopsis "Toolkit for developing mapping applications") + (description "Mapnik is a toolkit for developing mapping applications. It +is basically a collection of geographic objects like maps, layers, +datasources, features, and geometries. At its core is a C++ shared library +providing algorithms and patterns for spatial data access and visualization. +The library does not rely on any specific windowing system and can be deployed +to any server environment. It is intended to play fair in a multi-threaded +environment and is aimed primarily, but not exclusively, at web-based +development.") + (license license:lgpl2.1+))) -- 2.15.1