[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/265: gnu: gdk-pixbuf: Update package definition.
From: |
guix-commits |
Subject: |
19/265: gnu: gdk-pixbuf: Update package definition. |
Date: |
Wed, 19 Aug 2020 13:08:28 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit f753edcebb17282cfbf2340f0e97037c5b38421f
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jun 4 12:49:51 2020 -0400
gnu: gdk-pixbuf: Update package definition.
* gnu/packages/gtk.scm (gdk-pixbuf): Update package definition.
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Djasper]: New flag.
<#:phases>['patch-docbook]: New phase.
['disable-failing-tests]: Remove phase.
[native-inputs]: Add docbook-xml, docbook-xsl, perl and libxslt.
[inputs]: Add jasper and libpng. Remove libx11.
[propagated-inputs]: Add libx11. Remove libpng.
[synopsis]: Modify.
[description]: Modify.
[home-page]: Modify.
[license]: Update to lgpl2.1+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gtk.scm | 114 ++++++++++++++++++++++++++-------------------------
1 file changed, 58 insertions(+), 56 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index a8121b0..22dc874 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -540,63 +540,65 @@ highlighting and other features typical of a source code
editor.")
(define-public gdk-pixbuf
(package
- (name "gdk-pixbuf")
- (version "2.40.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
- (build-system meson-build-system)
- (arguments
- `(#:configure-flags '("-Dinstalled_tests=false")
- #:phases
- (modify-phases %standard-phases
- (add-after
- 'unpack 'disable-failing-tests
- (lambda _
- (substitute* "tests/meson.build"
- ;; XXX FIXME: This test fails on armhf machines with:
- ;; SKIP Not enough memory to load bitmap image
- ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
- ((".*'cve-2015-4491'.*") "")
- ;; XXX FIXME: This test fails with:
- ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
- ;; assertion failed (error == NULL): Data differ
- ;; (gdk-pixbuf-error-quark, 0)
- ((".*'pixbuf-jpeg'.*") ""))
- #t))
- ;; The slow tests take longer than the specified timeout.
- ,@(if (any (cute string=? <> (%current-system))
- '("armhf-linux" "aarch64-linux"))
- '((replace 'check
- (lambda _
- (invoke "meson" "test" "--timeout-multiplier" "5"))))
- '()))))
- (propagated-inputs
- `(;; Required by gdk-pixbuf-2.0.pc
- ("glib" ,glib)
- ("libpng" ,libpng)
- ;; Used for testing and required at runtime.
- ("shared-mime-info" ,shared-mime-info)))
- (inputs
- `(("libjpeg" ,libjpeg-turbo)
- ("libtiff" ,libtiff)
- ("libx11" ,libx11)))
- (native-inputs
- `(("pkg-config" ,pkg-config)
+ (name "gdk-pixbuf")
+ (version "2.40.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Djasper=true"
+ "-Dinstalled_tests=false")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs"
+ (substitute* "meson.build"
+ (("http://docbook.sourceforge.net/release/xsl/current/")
+ (string-append (assoc-ref inputs "docbook-xsl")
+ "/xml/xsl/docbook-xsl-1.79.1/")))
+ (substitute* '("gdk-pixbuf-csource.xml"
+ "gdk-pixbuf-from-drawables.xml"
+ "gdk-pixbuf-query-loaders.xml"
+ "gdk-pixbuf-rendering.xml" "gdk-pixbuf.xml")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t)))))
+ (native-inputs
+ `(("docbook-xml" ,docbook-xml-4.3)
+ ("docbook-xsl" ,docbook-xsl)
("gettext" ,gettext-minimal)
- ("glib" ,glib "bin") ; glib-mkenums, etc.
- ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
- (synopsis "GNOME image loading and manipulation library")
- (description
- "GdkPixbuf is a library for image loading and manipulation developed
-in the GNOME project.")
- (license license:lgpl2.0+)
- (home-page "https://developer.gnome.org/gdk-pixbuf/")))
+ ("glib:bin" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("xsltproc" ,libxslt)))
+ (inputs
+ `(("jasper" ,jasper)
+ ("libjpeg" ,libjpeg-turbo)
+ ("libpng" ,libpng)
+ ("libtiff" ,libtiff)))
+ (propagated-inputs
+ `(("glib" ,glib)
+ ("libx11" ,libx11)
+ ("shared-mime-info" ,shared-mime-info)))
+ (synopsis "Image loading library")
+ (description "GdkPixbuf is a library that loads image data in various
+formats and stores it as linear buffers in memory. The buffers can then be
+scaled, composited, modified, saved, or rendered.")
+ (home-page "https://wiki.gnome.org/Projects/GdkPixbuf")
+ (license license:lgpl2.1+)))
;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
- 18/265: gnu: gcr: Update to 3.36.0., (continued)
- 18/265: gnu: gcr: Update to 3.36.0., guix-commits, 2020/08/19
- 15/265: gnu: enchant: Update package definition., guix-commits, 2020/08/19
- 20/265: gnu: gdk-pixbuf+svg: Update package definition., guix-commits, 2020/08/19
- 22/265: gnu: glib-networking: Update to 2.62.4., guix-commits, 2020/08/19
- 23/265: gnu: gsettings-desktop-schemas: Update package definition., guix-commits, 2020/08/19
- 24/265: gnu: glib: Update package definition., guix-commits, 2020/08/19
- 25/265: gnu: glib-with-documentation: Update package definition., guix-commits, 2020/08/19
- 29/265: gnu: gst-plugins-base: Update package definition., guix-commits, 2020/08/19
- 34/265: gnu: gtk-doc: Update package definition., guix-commits, 2020/08/19
- 33/265: gnu: gtk+: Update package definition., guix-commits, 2020/08/19
- 19/265: gnu: gdk-pixbuf: Update package definition.,
guix-commits <=
- 27/265: gnu: gobject-introspection: Update package definition., guix-commits, 2020/08/19
- 11/265: gnu: font-cantarell: Update package definition., guix-commits, 2020/08/19
- 13/265: gnu: dconf: Update to 0.36.0., guix-commits, 2020/08/19
- 21/265: gnu: gjs: Update to 1.58.8., guix-commits, 2020/08/19
- 26/265: gnu: glib-networking: Update to 2.64.3., guix-commits, 2020/08/19
- 30/265: gnu: Add ruby-slim., guix-commits, 2020/08/19
- 45/265: gnu: json-glib: Update package definition., guix-commits, 2020/08/19
- 28/265: gnu: gstreamer: Update package definition., guix-commits, 2020/08/19
- 36/265: gnu: gtksourceview: Update package definition., guix-commits, 2020/08/19
- 39/265: gnu: fuse: Update package definition., guix-commits, 2020/08/19