[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
262/377: gnu: libsigc++: Enable documentation.
From: |
guix-commits |
Subject: |
262/377: gnu: libsigc++: Enable documentation. |
Date: |
Thu, 2 Sep 2021 17:55:51 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 5bd7238214fd99f738a7f58a6e8433b27cd5fd9c
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Thu Mar 25 00:07:52 2021 -0400
gnu: libsigc++: Enable documentation.
* gnu/packages/glib.scm (libsigc++)[outputs]: New output "doc".
[arguments]<#:configure-flags>[-Dbuild-documentation]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['move-doc]: New phase.
[native-inputs]: Add dblatex, doxygen and graphviz.
Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
---
gnu/packages/glib.scm | 45 +++++++++++++++++++++++++++++++++++++--------
1 file changed, 37 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index a10d0fa..cf63a59 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -47,6 +47,7 @@
#:use-module (gnu packages flex)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages gperf)
#:use-module (gnu packages gtk)
#:use-module (gnu packages libffi)
@@ -583,8 +584,36 @@ by GDBus included in Glib.")
(base32
"1kn57b039lg20182lnchl1ys27vf34brn43f895cal8nc7sdq3mp"))))
(build-system meson-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ `(#:configure-flags
+ (list
+ "-Dbuild-documentation=true")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs"
+ (substitute* (find-files "." "\\.xml$")
+ (("http://www.oasis-open.org/docbook/xml/4\\.1\\.2/")
+ (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/doc")
+ (string-append doc "/share/doc"))
+ #t))))))
(native-inputs
- `(("m4" ,m4)
+ `(("docbook-xml" ,docbook-xml-4.1.2)
+ ("docbook-xsl" ,docbook-xsl)
+ ("dot" ,graphviz)
+ ("doxygen" ,doxygen)
+ ("m4" ,m4)
("mm-common" ,mm-common)
("perl" ,perl)
("pkg-config" ,pkg-config)
@@ -596,12 +625,12 @@ by GDBus included in Glib.")
(synopsis "Type-safe callback system for standard C++")
(description
"Libsigc++ implements a type-safe callback system for standard C++. It
-allows you to define signals and to connect those signals to any callback
-function, either global or a member function, regardless of whether it is
-static or virtual.
+ allows you to define signals and to connect those signals to any callback
+ function, either global or a member function, regardless of whether it is
+ static or virtual.
-It also contains adaptor classes for connection of dissimilar callbacks and
-has an ease of use unmatched by other C++ callback libraries.")
+ It also contains adaptor classes for connection of dissimilar callbacks
and
+ has an ease of use unmatched by other C++ callback libraries.")
(license license:lgpl3+)))
(define glibmm
@@ -633,8 +662,8 @@ has an ease of use unmatched by other C++ callback
libraries.")
;; to open a TLS session; just skip it.
(substitute* "tests/giomm_tls_client/main.cc"
(("Gio::init.*$")
- "return 77;\n"))
- #t)))))
+ "return 77 ;\n"))
+ #t)))))
(native-inputs `(("pkg-config" ,pkg-config)
("glib" ,glib "bin")))
(propagated-inputs
- 273/377: gnu: cairo: Make some cosmetic changes., (continued)
- 273/377: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/09/02
- 254/377: gnu: glib: Make some cosmetic changes., guix-commits, 2021/09/02
- 267/377: gnu: gtk-doc: Change build-system., guix-commits, 2021/09/02
- 275/377: gnu: cairo: Move documentation to separate output., guix-commits, 2021/09/02
- 276/377: gnu: cairo: Enable some features., guix-commits, 2021/09/02
- 253/377: gnu: harmonist: Update to 0.4.1., guix-commits, 2021/09/02
- 258/377: gnu: glib-with-documentation: Make some cosmetic changes., guix-commits, 2021/09/02
- 252/377: gnu: Add go-github-com-anaseto-gruid-tcell., guix-commits, 2021/09/02
- 277/377: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/09/02
- 278/377: gnu: cairomm: Update to 1.16.0., guix-commits, 2021/09/02
- 262/377: gnu: libsigc++: Enable documentation.,
guix-commits <=
- 282/377: gnu: pango: Re-arrange inputs in alphabetical order., guix-commits, 2021/09/02
- 284/377: gnu: pango: Update synopsis, description and home-page., guix-commits, 2021/09/02
- 285/377: gnu: pangomm: Update to 2.48.0., guix-commits, 2021/09/02
- 283/377: gnu: pango: Update to 1.48.3., guix-commits, 2021/09/02
- 289/377: gnu: gdk-pixbuf: Correct inputs., guix-commits, 2021/09/02
- 290/377: gnu: gdk-pixbuf: Enable jasper support., guix-commits, 2021/09/02
- 298/377: gnu: vala: Fix documentation., guix-commits, 2021/09/02
- 294/377: gnu: gdk-pixbuf: Disable failing tests., guix-commits, 2021/09/02
- 301/377: gnu: libgsf: Change build-system., guix-commits, 2021/09/02
- 299/377: gnu: vala: Update to 0.52.0., guix-commits, 2021/09/02