unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 48459@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#48459] [PATCH 2/3] gnu: tracker: Enable documentation.
Date: Sun, 16 May 2021 01:07:58 -0400	[thread overview]
Message-ID: <20210516050759.7239-2-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210516050759.7239-1-rg@raghavgururajan.name>

* gnu/packages/gnome.scm (tracker)[outputs](doc): New output.
[configure-flags](docs): New flag.
[phases](patch-docbook-xml,move-doc): New phases.
[native-inputs]: Add docbook-xml, docbook-xsl and gtk-doc.
---
 gnu/packages/gnome.scm | 41 +++++++++++++++++++++++++++++++++++------
 1 file changed, 35 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 882b643067..e8be1effc5 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8734,23 +8734,52 @@ easy, safe, and automatic.")
                (base32
                 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
     (build-system meson-build-system)
+    (outputs '("out" "doc"))
     (arguments
      `(#:glib-or-gtk? #t
        #:configure-flags
-       ;; Otherwise, the RUNPATH will lack the final path component.
-       (list (string-append "-Dc_link_args=-Wl,-rpath="
-                            (assoc-ref %outputs "out") "/lib:"
-                            (assoc-ref %outputs "out") "/lib/tracker-2.0"))
+       (list
+        "-Ddocs=true"
+        ;; Otherwise, the RUNPATH will lack the final path component.
+        (string-append "-Dc_link_args=-Wl,-rpath="
+                       (assoc-ref %outputs "out") "/lib:"
+                       (assoc-ref %outputs "out") "/lib/tracker-2.0"))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch-docbook-xml
+           (lambda* (#:key inputs #:allow-other-keys)
+             (with-directory-excursion "docs/reference"
+               (substitute* (find-files "." "\\..*ml$")
+                 (("http://www.oasis-open.org/docbook/xml/4.5/")
+                  (string-append (assoc-ref inputs "docbook-xml-4.5")
+                                 "/xml/dtd/docbook/"))
+                 (("http://www.oasis-open.org/docbook/xml/4.3/")
+                  (string-append (assoc-ref inputs "docbook-xml-4.3")
+                                 "/xml/dtd/docbook/"))
+                 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
+                  (string-append (assoc-ref inputs "docbook-xml-4.1.2")
+                                 "/xml/dtd/docbook/"))))))
          (add-before 'check 'pre-check
            (lambda _
              ;; Some tests expect to write to $HOME.
              (setenv "HOME" "/tmp")
-             #t)))))
+             #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"))))))))
     (native-inputs
-     `(("glib:bin" ,glib "bin")
+     `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
+       ("docbook-xml-4.3" ,docbook-xml-4.3)
+       ("docbook-xml-4.5" ,docbook-xml)
+       ("docbook-xsl" ,docbook-xsl)
+       ("glib:bin" ,glib "bin")
        ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
        ("python-pygobject" ,python-pygobject)
        ("intltool" ,intltool)
        ("pkg-config" ,pkg-config)
-- 
2.31.1





  reply	other threads:[~2021-05-16  5:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-16  5:04 [bug#48459] [PATCH-SERIES]: GNOME Tracker Raghav Gururajan via Guix-patches via
2021-05-16  5:07 ` [bug#48459] [PATCH 1/3] gnu: tracker: Add missing dependencies Raghav Gururajan via Guix-patches via
2021-05-16  5:07   ` Raghav Gururajan via Guix-patches via [this message]
2021-05-16  5:07   ` [bug#48459] [PATCH 3/3] gnu: tracker: Update to 3.1.1 Raghav Gururajan via Guix-patches via
2021-05-16  7:36   ` [bug#48459] [PATCH 1/3] gnu: tracker: Add missing dependencies Christopher Baines
2021-05-18  3:14     ` Raghav Gururajan via Guix-patches via
2021-05-16  7:13 ` [bug#48459] [PATCH-SERIES]: GNOME Tracker Leo Prikler
2021-05-18  3:11   ` Raghav Gururajan via Guix-patches via
2021-05-18  3:05 ` [bug#48459] [PATCH wip-gnome v2 1/6] gnu: tracker: Enable some features Raghav Gururajan via Guix-patches via
2021-05-18  3:05   ` [bug#48459] [PATCH wip-gnome v2 2/6] gnu: tracker: Enable documentation Raghav Gururajan via Guix-patches via
2021-05-18  3:05   ` [bug#48459] [PATCH wip-gnome v2 3/6] gnu: tracker: Update to 3.1.1 and make related changes Raghav Gururajan via Guix-patches via
2021-05-18  3:05   ` [bug#48459] [PATCH wip-gnome v2 4/6] gnu: tracker: Propagate dependencies as per pkg-config file Raghav Gururajan via Guix-patches via
2021-05-18  3:05   ` [bug#48459] [PATCH wip-gnome v2 5/6] gnu: tracker-miners: Update to 3.1.1 and make related changes Raghav Gururajan via Guix-patches via
2021-05-18  3:05   ` [bug#48459] [PATCH wip-gnome v2 6/6] gnu: tracker-miners: Enable some features Raghav Gururajan via Guix-patches via
2021-05-21 21:33 ` bug#48459: (no subject) Raghav Gururajan via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210516050759.7239-2-rg@raghavgururajan.name \
    --to=guix-patches@gnu.org \
    --cc=48459@debbugs.gnu.org \
    --cc=rg@raghavgururajan.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).