[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
371/377: gnu: tracker: Enable documentation.
From: |
guix-commits |
Subject: |
371/377: gnu: tracker: Enable documentation. |
Date: |
Sun, 5 Sep 2021 10:08:35 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 2286dfc02d558137c8f77127a3dbf7298cfa7a10
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Sat May 15 21:17:47 2021 -0400
gnu: tracker: Enable documentation.
* 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 93057ed..76a0684 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8735,23 +8735,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)
- 269/377: gnu: gtk-doc: Update to 1.32., (continued)
- 269/377: gnu: gtk-doc: Update to 1.32., guix-commits, 2021/09/05
- 273/377: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/09/05
- 274/377: gnu: cairo: Change build-system., guix-commits, 2021/09/05
- 276/377: gnu: cairo: Enable some features., guix-commits, 2021/09/05
- 277/377: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/09/05
- 192/377: gnu: Add emacs-company-org-block., guix-commits, 2021/09/05
- 202/377: gnu: python-rope: Update to 0.19.0 and remove python2-rope., guix-commits, 2021/09/05
- 281/377: gnu: pango: Add missing arguments., guix-commits, 2021/09/05
- 282/377: gnu: pango: Re-arrange inputs in alphabetical order., guix-commits, 2021/09/05
- 309/377: gnu: atk: Update to 2.36.0., guix-commits, 2021/09/05
- 371/377: gnu: tracker: Enable documentation.,
guix-commits <=
- 373/377: gnu: tracker: Propagate dependencies as per pkg-config file., guix-commits, 2021/09/05
- 377/377: gnu: glib-networking: Disable openssl support., guix-commits, 2021/09/05
- 320/377: gnu: json-glib: Update to 1.6.2., guix-commits, 2021/09/05
- 332/377: gnu: gtk+: Add missing inputs., guix-commits, 2021/09/05
- 361/377: gnu: glib-networking: Update home-page, synopsis, description and license., guix-commits, 2021/09/05
- 363/377: gnu: w3m: Update to 0.5.3+git20210102., guix-commits, 2021/09/05
- 364/377: gnu: python-pycairo: Update to 1.20.0., guix-commits, 2021/09/05
- 368/377: gnu: libsoup: Disable ssl-test., guix-commits, 2021/09/05
- 374/377: gnu: tracker-miners: Update to 3.1.1 and make related changes., guix-commits, 2021/09/05
- 375/377: gnu: tracker-miners: Enable some features., guix-commits, 2021/09/05