[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
120/125: gnu: tracker: Enable documentation.
From: |
guix-commits |
Subject: |
120/125: gnu: tracker: Enable documentation. |
Date: |
Sat, 3 Jul 2021 21:17:47 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit ad2e3299cb7a1f6cfa415800648beeb07f2210ef
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 3a20a7a..cfdc2a1 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8790,23 +8790,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)
- 111/125: gnu: gnutls: Enable PKCS#11 support., (continued)
- 111/125: gnu: gnutls: Enable PKCS#11 support., guix-commits, 2021/07/03
- 115/125: gnu: gtkmm: Change build-system and adjust arguments accordingly., guix-commits, 2021/07/03
- 123/125: gnu: tracker-miners: Update to 3.1.1 and make related changes., guix-commits, 2021/07/03
- 79/125: gnu: gtk+-2: Update to 2.24.33., guix-commits, 2021/07/03
- 98/125: gnu: gst-plugins-ugly: Update to 1.18.4., guix-commits, 2021/07/03
- 100/125: gnu: gst-plugins-bad: Update to 1.18.4., guix-commits, 2021/07/03
- 109/125: gnu: glib-networking: Enable libproxy and openssl support., guix-commits, 2021/07/03
- 112/125: gnu: w3m: Update to 0.5.3+git20210102., guix-commits, 2021/07/03
- 117/125: gnu: libsoup: Disable ssl-test., guix-commits, 2021/07/03
- 122/125: gnu: tracker: Propagate dependencies as per pkg-config file., guix-commits, 2021/07/03
- 120/125: gnu: tracker: Enable documentation.,
guix-commits <=
- 94/125: gnu: gstreamer: Update to 1.18.4., guix-commits, 2021/07/03
- 71/125: gnu: json-glib: Update synopsis and description., guix-commits, 2021/07/03
- 75/125: gnu: wayland-protocols: Update description., guix-commits, 2021/07/03
- 77/125: gnu: gtk+-2: Enable tests., guix-commits, 2021/07/03
- 89/125: gnu: ibus: Enable tests., guix-commits, 2021/07/03
- 102/125: gnu: gst-editing-services: Update to 1.18.4., guix-commits, 2021/07/03
- 106/125: gnu: docbook-xsl: Update to 1.79.2., guix-commits, 2021/07/03
- 105/125: gnu: meson-0.55: Update to 0.55.3., guix-commits, 2021/07/03
- 116/125: gnu: gtkmm@2: Override inheritance of certain changes from gtkmm., guix-commits, 2021/07/03
- 121/125: gnu: tracker: Update to 3.1.1 and make related changes., guix-commits, 2021/07/03