gnu: scribus: Update to 1.5.3. Add inputs.

* gnu/packages/scribus.scm (scribus): Update to 1.5.3.
[input]: Add fontconfig, harfbuzz, hunspell, icu4c, libcdr, libfreehand,
libmspub, librevenge, libvisio, openssl, podofo, poppler, and boost.  Move
qttools to ...
[native-input]: ... here.
[home-page]: Fix URL.

Co-authored-by: Eric Bavier <bavier@member.fsf.org>
This commit is contained in:
Nicolas Goaziou 2017-10-29 09:09:56 +01:00
parent e4bc172730
commit 4a8bd5500d
No known key found for this signature in database
GPG Key ID: A834B9E080A93738
1 changed files with 65 additions and 22 deletions

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -24,53 +25,95 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages cups) #:use-module (gnu packages cups)
#:use-module (gnu packages fontutils) #:use-module (gnu packages fontutils)
#:use-module (gnu packages ghostscript) #:use-module (gnu packages ghostscript)
#:use-module (gnu packages gtk) #:use-module (gnu packages gtk)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image) #:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages libreoffice)
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages pdf)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages qt) #:use-module (gnu packages qt)
#:use-module (gnu packages imagemagick) #:use-module (gnu packages tls)
#:use-module (gnu packages xml)) #:use-module (gnu packages xml))
(define-public scribus (define-public scribus
(package (package
(name "scribus") (name "scribus")
(version "1.5.2") (version "1.5.3")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "mirror://sourceforge/scribus/scribus-devel/" (method url-fetch)
version "/scribus-" version ".tar.xz")) (uri (string-append "mirror://sourceforge/scribus/scribus-devel/"
(sha256 version "/scribus-" version ".tar.xz"))
(base32 (sha256
"1xbl7h4x32y2nfhn57ivjziyvlnwadcbizqwfqx5srfsmqiyqppc")))) (base32
"0kyp45vidxa3v35ic9592db4zk3m8al26vck38q5v7z14x3hp8vk"))
(patches
(list
(origin
(method url-fetch)
(uri (string-append "https://github.com/scribusproject/scribus/commit/"
"61186c7ef083046b7e0c908952e8a773e2787d82.patch"))
(file-name "scribus-fix-poppler-0.58-breakage.patch")
(sha256
(base32 "189qw9xmgz01xz1w1bi9lzrp399zk1j1iz5qdhchdrhgnd69b7ly")))
(origin
(method url-fetch)
(uri (string-append "https://github.com/scribusproject/scribus/commit/"
"d82b1c989bd0e79b5611521f671adbfb94996e5e.patch"))
(file-name "scribus-fix-poppler-packaging.patch")
(sha256
(base32 "1p9s18jjvj2h0ba1xvk1zhmnn4f4n3ykrgb56mjd6in30h0vrykx")))))
(modules '((guix build utils)))
(snippet
;; Fix typo. Equivalent to patch at
;; https://bugs.scribus.net/view.php?id=14850
'(substitute* "cmake/modules/FindLIBPODOFO.cmake"
(("find_package\\(OPENSSL\\)") "find_package(OpenSSL)")))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f ; no test target `(#:tests? #f ;no test target
#:configure-flags #:configure-flags
'("-DCMAKE_CXX_FLAGS=-std=gnu++11"))) '("-DWANT_GRAPHICSMAGICK=1")))
(inputs (inputs
`(("cairo" ,cairo) `(("boost" ,boost)
("cairo" ,cairo)
("cups" ,cups) ("cups" ,cups)
("graphicsmagick" ,graphicsmagick) ("fontconfig" ,fontconfig)
("lcms" ,lcms)
("libjpeg" ,libjpeg)
("libtiff" ,libtiff)
("libxml2" ,libxml2)
("python" ,python-2)
("freetype" ,freetype) ("freetype" ,freetype)
("graphicsmagick" ,graphicsmagick)
("harfbuzz" ,harfbuzz)
("hunspell" ,hunspell)
("icu4c" ,icu4c)
("lcms" ,lcms)
("libcdr" ,libcdr)
("libfreehand" ,libfreehand)
("libjpeg" ,libjpeg)
("libmspub" ,libmspub)
("libpagemaker" ,libpagemaker)
("librevenge" ,librevenge)
("libtiff" ,libtiff)
("libvisio" ,libvisio)
("libxml2" ,libxml2)
("openssl" ,openssl)
("podofo" ,podofo)
("poppler" ,poppler)
("python" ,python-2) ;need Python library
("qtbase" ,qtbase) ("qtbase" ,qtbase)
("qtdeclarative" ,qtdeclarative) ("qtdeclarative" ,qtdeclarative)
("qttools" ,qttools)
("zlib" ,zlib))) ("zlib" ,zlib)))
(native-inputs (native-inputs
`(("util-linux" ,util-linux) `(("pkg-config" ,pkg-config)
("pkg-config" ,pkg-config))) ("qttools" ,qttools)
(home-page "http://scribus.net") ("util-linux" ,util-linux)))
(home-page "https://www.scribus.net")
(synopsis "Desktop publishing and page layout program") (synopsis "Desktop publishing and page layout program")
(description (description
"Scribus is a @dfn{desktop publishing} (DTP) application and can be used "Scribus is a @dfn{desktop publishing} (DTP) application and can be used