[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
132/265: gnu: eog: Update package definition.
From: |
guix-commits |
Subject: |
132/265: gnu: eog: Update package definition. |
Date: |
Wed, 19 Aug 2020 13:09:07 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit c788306950ef60f1ab03b6908a88c8d11bc25791
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sun Aug 2 00:04:15 2020 -0400
gnu: eog: Update package definition.
* gnu/packages/gnome.scm (eog) [version]: Update to 3.36.3.
[source]<origin>[sha256]: Modify base32.
[outputs]: New outputs "help" and "doc".
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Dgtk_doc]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['move-doc]: New phase.
['move-help]: New phase.
['wrap-eog]: Modify phase.
[native-inputs]: Add docbook-xml and gtk-doc.
[inputs]: Add gconf, gdk-pixbuf+svg, glib, libart-lgpl, libx11 and zlib.
Move gtk+ to ...
[propagated-inputs]: ... here. Remove dconf.
[synopsis]: Modify.
[description]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 146 +++++++++++++++++++++++++++++++------------------
1 file changed, 92 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 60a63ca..5a930ca 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6935,64 +6935,102 @@ supports playlists, song ratings, and any codecs
installed through gstreamer.")
(license license:gpl2+)))
(define-public eog
- (package
- (name "eog")
- (version "3.34.1")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
- (build-system meson-build-system)
- (arguments
- `(#:configure-flags
- ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
- (list (string-append "-Dc_link_args=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib/eog"))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'skip-gtk-update-icon-cache
+ (package
+ (name "eog")
+ (version "3.36.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1p1lrnsgk5iyw7h02qzax4s74dqqsh5lk85b0qsj7hwx91qm61xp"))))
+ (build-system meson-build-system)
+ (outputs '("out" "help" "doc"))
+ (arguments
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
+ (list
+ "-Dgtk_doc=true"
+ (string-append "-Dc_link_args=-Wl,-rpath="
+ (assoc-ref %outputs "out")
+ "/lib/eog"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc/reference"
+ (substitute* '("eog-docs.xml" "eog-docs.xml.in")
+ (("http://www.oasis-open.org/docbook/xml/4.1.2/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-before 'configure 'skip-gtk-update-icon-cache
;; Don't create 'icon-theme.cache'.
(lambda _
(substitute* "meson_post_install.py"
- (("gtk-update-icon-cache") "true"))
+ (("gtk-update-icon-cache")
+ "true"))
#t))
- (add-after 'install 'wrap-eog
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
- (wrap-program (string-append out "/bin/eog")
- `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
- #t)))))
- (propagated-inputs
- `(("dconf" ,dconf)))
- (native-inputs
- `(("intltool" ,intltool)
- ("itstool" ,itstool)
- ("glib" ,glib "bin")
- ("gobject-introspection" ,gobject-introspection)
- ("pkg-config" ,pkg-config)
- ("xmllint" ,libxml2)))
- (inputs
- `(("gnome-desktop" ,gnome-desktop)
- ("shared-mime-info" ,shared-mime-info)
- ("adwaita-icon-theme" ,adwaita-icon-theme)
- ("exempi" ,exempi)
- ("lcms" ,lcms)
- ("libexif" ,libexif)
- ("libpeas" ,libpeas)
- ("libjpeg" ,libjpeg-turbo)
- ("librsvg" ,librsvg-next)
- ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
- ("gtk+" ,gtk+)))
- (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
- (synopsis "GNOME image viewer")
- (description "Eye of GNOME is the GNOME image viewer. It
-supports image conversion, rotation, and slideshows.")
- (license license:gpl2+)))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ #t)))
+ (add-after 'move-doc 'move-help
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (help (assoc-ref outputs "help")))
+ (mkdir-p (string-append help "/share"))
+ (rename-file
+ (string-append out "/share/help")
+ (string-append help "/share/help"))
+ #t)))
+ (add-after 'move-help 'wrap-eog
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
+ (wrap-program (string-append out "/bin/eog")
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
+ #t)))))
+ (native-inputs
+ `(("docbook-xml" ,docbook-xml-4.1.2)
+ ("glib" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
+ ("intltool" ,intltool)
+ ("itstool" ,itstool)
+ ("pkg-config" ,pkg-config)
+ ("xmllint" ,libxml2)))
+ (inputs
+ `(("exempi" ,exempi)
+ ("gconf" ,gconf)
+ ("gdk-pixbuf" ,gdk-pixbuf+svg)
+ ("glib" ,glib)
+ ("gnome-desktop" ,gnome-desktop)
+ ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+ ("lcms" ,lcms)
+ ("libart" ,libart-lgpl)
+ ("libexif" ,libexif)
+ ("libjpeg" ,libjpeg-turbo)
+ ("libpeas" ,libpeas)
+ ("librsvg" ,librsvg-next)
+ ("shared-mime-info" ,shared-mime-info)
+ ("x11" ,libx11)
+ ("zlib" ,zlib)))
+ (propagated-inputs
+ `(("gtk+" ,gtk+)))
+ (synopsis "Eye of GNOME")
+ (description "EoG is the GNOME image viewer.")
+ (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
+ (license license:gpl2+)))
(define-public eog-plugins
;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
- 113/265: gnu: libdmapsharing: Update home-page., (continued)
- 113/265: gnu: libdmapsharing: Update home-page., guix-commits, 2020/08/19
- 115/265: gnu: mobile-broadband-provider-info: Update package definition., guix-commits, 2020/08/19
- 116/265: gnu: libappindicator: Propagate gtk+ and libdbusmenu., guix-commits, 2020/08/19
- 117/265: gnu: network-manager: Update package definition., guix-commits, 2020/08/19
- 121/265: gnu: gtksourceview: Fix glade., guix-commits, 2020/08/19
- 120/265: gnu: phodav: Update package definition., guix-commits, 2020/08/19
- 123/265: gnu: tepl: Update package definition., guix-commits, 2020/08/19
- 125/265: gnu: libquvi: Update package definition., guix-commits, 2020/08/19
- 129/265: gnu: baobab: Update package definition., guix-commits, 2020/08/19
- 131/265: gnu: cheese: Update package definition., guix-commits, 2020/08/19
- 132/265: gnu: eog: Update package definition.,
guix-commits <=
- 134/265: gnu: texlive-bin: Recompile with -fPIC., guix-commits, 2020/08/19
- 135/265: gnu: evince: Update package definition., guix-commits, 2020/08/19
- 136/265: gnu: file-roller: Update package definition., guix-commits, 2020/08/19
- 137/265: gnu: gedit: Update package definition., guix-commits, 2020/08/19
- 138/265: gnu: gnome-backgrounds: Update package definition., guix-commits, 2020/08/19
- 139/265: gnu: gnome-bluetooth: Update package definition., guix-commits, 2020/08/19
- 140/265: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/19
- 143/265: gnu: gnome-characters: Update package definition., guix-commits, 2020/08/19
- 144/265: gnu: gnome-clocks: Update package definition., guix-commits, 2020/08/19
- 145/265: gnu: gnome-color-manager: Update package definition., guix-commits, 2020/08/19