guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

231/402: gnu: totem-pl-parser: Update package definition.


From: guix-commits
Subject: 231/402: gnu: totem-pl-parser: Update package definition.
Date: Tue, 18 Aug 2020 16:47:46 -0400 (EDT)

dannym pushed a commit to branch wip-desktop
in repository guix.

commit e1d58ec363c2d1d60f087269bd091cecd191a342
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 30 16:16:35 2020 -0400

    gnu: totem-pl-parser: Update package definition.
    
    * gnu/packages/gnome.scm (totem-pl-parser) [version]: Update to
    3.26.5.
    [source]<origin>[sha256]: Modify base32.
    [outputs]: New output "doc".
    [arguments]<#:glib-or-gtk?>: New argument.
    <#:configure-flags>[-Denable-gtk-doc]: New flag.
    <#:phases>['patch-docbook-xml]: New phase.
    ['move-doc]: New phase.
    [native-inputs]: Add docbook-xml and gtk-doc.
    [inputs]: Add libgcrypt and libquvi.
    [propagated-inputs]: Add glib-networking. Remove gmime and libgcrypt.
    [synopsis]: Modify.
    [description]: Modify.
    [home-page]: Modify.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/gnome.scm | 93 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 60 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 49917e2..13fc06d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5925,39 +5925,66 @@ settings, themes, mouse settings, and startup of other 
daemons.")
     (license license:gpl2+)))
 
 (define-public totem-pl-parser
- (package
-   (name "totem-pl-parser")
-   (version "3.26.3")
-   (source (origin
-            (method url-fetch)
-            (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
-                                (version-major+minor version) "/"
-                                "totem-pl-parser-" version ".tar.xz"))
-            (sha256
-             (base32
-              "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
-   (build-system meson-build-system)
-   (arguments
-    ;; FIXME: Tests require gvfs.
-    `(#:tests? #f))
-   (native-inputs
-    `(("intltool" ,intltool)
-      ("glib" ,glib "bin")
-      ("gobject-introspection" ,gobject-introspection)
-      ("pkg-config" ,pkg-config)))
-   (propagated-inputs
-    `(("glib" ,glib)
-      ("gmime" ,gmime)
-      ("libarchive" ,libarchive)
-      ("libgcrypt" ,libgcrypt)
-      ("libxml2" ,libxml2)))
-   (inputs
-    `(("libsoup" ,libsoup)))
-   (home-page "https://projects.gnome.org/totem";)
-   (synopsis "Library to parse and save media playlists for GNOME")
-   (description "Totem-pl-parser is a GObjects-based library to parse and save
-playlists in a variety of formats.")
-   (license license:lgpl2.0+)))
+  (package
+    (name "totem-pl-parser")
+    (version "3.26.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "mirror://gnome/sources/totem-pl-parser/"
+                       (version-major+minor version) "/"
+                       "totem-pl-parser-" version ".tar.xz"))
+       (sha256
+        (base32 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
+    (build-system meson-build-system)
+    (outputs '("out" "doc"))
+    (arguments
+     `(#:glib-or-gtk? #t     ; To wrap binaries and/or compile schemas
+       #:tests? #f           ; Tests require networking
+       #:configure-flags
+       (list
+        "-Denable-gtk-doc=true")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-docbook-xml
+           (lambda* (#:key inputs #:allow-other-keys)
+             (with-directory-excursion "docs/reference"
+               (substitute* "totem-pl-parser-docs.xml"
+                 (("http://www.oasis-open.org/docbook/xml/4.3/";)
+                  (string-append (assoc-ref inputs "docbook-xml")
+                                 "/xml/dtd/docbook/"))))
+             #t))
+         (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))))))
+    (native-inputs
+     `(("docbook-xml" ,docbook-xml-4.3)
+       ("intltool" ,intltool)
+       ("glib" ,glib "bin")
+       ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libgcrypt" ,libgcrypt)
+       ("libquvi" ,libquvi)
+       ("libsoup" ,libsoup)))
+    (propagated-inputs
+     `(("glib" ,glib)
+       ("glib-networking" ,glib-networking)
+       ("libarchive" ,libarchive)
+       ("libxml2" ,libxml2)))
+    (synopsis "Totem Playlist Parser")
+    (description "Totem-pl-parser is a simple GObject-based library to parse a
+host of playlist formats, as well as save those.")
+    (home-page "http://wiki.gnome.org/Apps/Videos";)
+    (license license:lgpl2.0+)))
 
 (define-public aisleriot
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]