From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 1/2] gnu: Add libharu. Date: Mon, 4 Jul 2016 13:23:23 +0200 Message-ID: <20160704112324.9531-2-ricardo.wurmus@mdc-berlin.de> References: <20160704112324.9531-1-ricardo.wurmus@mdc-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK1ya-0001t3-3N for guix-devel@gnu.org; Mon, 04 Jul 2016 07:23:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK1yW-0007sG-BC for guix-devel@gnu.org; Mon, 04 Jul 2016 07:23:43 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:58720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK1yV-0007sC-WC for guix-devel@gnu.org; Mon, 04 Jul 2016 07:23:40 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 38F0F38026C for ; Mon, 4 Jul 2016 13:23:39 +0200 (CEST) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U39wkN4urlGl for ; Mon, 4 Jul 2016 13:23:33 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Mon, 4 Jul 2016 13:23:33 +0200 (CEST) In-Reply-To: <20160704112324.9531-1-ricardo.wurmus@mdc-berlin.de> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/pdf.scm (libharu): New variable. --- gnu/packages/pdf.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index d46bd1f..36d3985 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013, 2015, 2016 Andreas Enge ;;; Copyright =C2=A9 2014 Mark H Weaver -;;; Copyright =C2=A9 2014, 2015 Ricardo Wurmus +;;; Copyright =C2=A9 2014, 2015, 2016 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Paul van der Walt ;;; Copyright =C2=A9 2016 Roel Janssen ;;; @@ -28,6 +28,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system python) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages compression) #:use-module (gnu packages fontutils) #:use-module (gnu packages ghostscript) @@ -154,6 +155,45 @@ Poppler PDF rendering library.") (license license:lgpl2.1+))) =20 +(define-public libharu + (package + (name "libharu") + (version "2.3.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/libharu/libharu/arc= hive/" + "RELEASE_" + (string-join (string-split version #\.)= "_") + ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1lm4v539y9cb1lvbq387j57sy7yxda3yv8b1pk8m6zazbp66i7lg")))= ) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list (string-append "--with-zlib=3D" + (assoc-ref %build-inputs "zlib")) + (string-append "--with-png=3D" + (assoc-ref %build-inputs "libpng"))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'autogen + (lambda _ (zero? (system* "autoreconf" "-vif"))))))) + (inputs + `(("zlib" ,zlib) + ("libpng" ,libpng))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (home-page "http://libharu.org/") + (synopsis "Library for generating PDF files") + (description + "libHaru is a library for generating PDF files. libHaru does not su= pport +reading and editing of existing PDF files.") + (license license:zlib))) + (define-public xpdf (package (name "xpdf") --=20 2.8.4