[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/19: gnu: libftdi: Build API documentation.
From: |
guix-commits |
Subject: |
18/19: gnu: libftdi: Build API documentation. |
Date: |
Thu, 14 Sep 2023 17:45:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit a5bc9f233f630e06b05f3029b181ba951502c00d
Author: Simon South <simon@simonsouth.net>
AuthorDate: Thu Sep 7 12:37:58 2023 -0400
gnu: libftdi: Build API documentation.
* gnu/packages/libftdi.scm (libftdi)[outputs]: Add "doc" output.
[arguments]<#:configure-flags>: Add "-DDOCUMENTATION".
<#:phases>: Add "install-documentation" phase.
[native-inputs]: Add doxygen, graphviz.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/libftdi.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm
index bdfc635379..02efcbbbc0 100644
--- a/gnu/packages/libftdi.scm
+++ b/gnu/packages/libftdi.scm
@@ -28,6 +28,8 @@
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages documentation)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages libusb)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -49,12 +51,13 @@
(patches
(search-patches "libftdi-fix-paths-when-FTDIPP-set.patch"))))
(build-system cmake-build-system)
- (outputs '("out" "python"))
+ (outputs '("out" "doc" "python"))
(arguments
(list
#:configure-flags
#~(list (string-append "-DCMAKE_INSTALL_DOCDIR="
#$output "/share/doc/" #$name "-" #$version)
+ "-DDOCUMENTATION=ON"
"-DEXAMPLES=OFF"
"-DFTDIPP=ON"
"-DLIB_SUFFIX=''" ; place libraries in /lib, not /lib64
@@ -74,11 +77,20 @@
(rename-file (string-append #$output
"/share/libftdi/examples")
(string-append #$output:python
- "/share/libftdi/examples"))))))
+ "/share/libftdi/examples")))))
+ (add-after 'install-python-binding 'install-documentation
+ (lambda _
+ (let ((share (string-append #$output:doc "/share")))
+ (copy-recursively "doc/man"
+ (string-append share "/man"))
+ (copy-recursively "doc/html"
+ (string-append share "/doc/"
+ #$name "-" #$version
+ "/html"))))))
#:test-target "check"
#:tests? #f)) ; tests fail without access to USB
(native-inputs
- (list pkg-config python swig))
+ (list doxygen graphviz pkg-config python swig))
(inputs
(list boost libconfuse))
(propagated-inputs
- 02/19: gnu: makefile2graph: fix cross-compile., (continued)
- 02/19: gnu: makefile2graph: fix cross-compile., guix-commits, 2023/09/14
- 03/19: gnu: uncrustify: Update to 0.77.1., guix-commits, 2023/09/14
- 01/19: gnu: openmpi: Enable PMIx., guix-commits, 2023/09/14
- 04/19: gnu: uncrustify: use new style and gexp., guix-commits, 2023/09/14
- 08/19: gnu: armagetronad: Update to 0.2.9.1.1., guix-commits, 2023/09/14
- 07/19: gnu: kwin: Unwrap executable name for desktop file search., guix-commits, 2023/09/14
- 10/19: gnu: libftdi: Update package style., guix-commits, 2023/09/14
- 19/19: gnu: go-ipfs: Update to 0.13.0., guix-commits, 2023/09/14
- 06/19: gnu: nanosvg: Add a patch for PrusaSlicer 2.6., guix-commits, 2023/09/14
- 15/19: gnu: libftdi: Build C++ bindings., guix-commits, 2023/09/14
- 18/19: gnu: libftdi: Build API documentation.,
guix-commits <=
- 13/19: gnu: libftdi: Install libraries to /lib instead of /lib64., guix-commits, 2023/09/14
- 17/19: gnu: libftdi: Update to 1.5., guix-commits, 2023/09/14
- 11/19: gnu: libftdi: Use HTTPS for package source., guix-commits, 2023/09/14