aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSimon South <simon@simonsouth.net>2023-09-07 12:37:55 -0400
committerLudovic Courtès <ludo@gnu.org>2023-09-14 23:37:08 +0200
commitfce3d00cdb045fe8714be62d67ba3a0c303f4ea0 (patch)
tree2d44de52e45d825f3a36d1dcb293c1c286c95f6b /gnu
parentd92c71f1d63cd89e4805c4dfde8f4deed9d037cf (diff)
downloadguix-fce3d00cdb045fe8714be62d67ba3a0c303f4ea0.tar.gz
guix-fce3d00cdb045fe8714be62d67ba3a0c303f4ea0.zip
gnu: libftdi: Build C++ bindings.
Enabling the C++ bindings allows the test suite to be run, although this fails without access to the host's USB interface. * gnu/packages/libftdi.scm (libftdi)[arguments]: Add #:test-target, #:tests?. (inputs): Add boost. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/libftdi.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm
index b3fb717905..0a996b05e7 100644
--- a/gnu/packages/libftdi.scm
+++ b/gnu/packages/libftdi.scm
@@ -24,6 +24,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (gnu packages)
+ #:use-module (gnu packages boost)
#:use-module (gnu packages libusb)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages textutils))
@@ -47,11 +48,13 @@
#~(list (string-append "-DCMAKE_INSTALL_DOCDIR="
#$output "/share/doc/" #$name "-" #$version)
"-DEXAMPLES=OFF"
- "-DLIB_SUFFIX=''"))) ; place libraries in /lib, not /lib64
+ "-DLIB_SUFFIX=''") ; place libraries in /lib, not /lib64
+ #:test-target "check"
+ #:tests? #f)) ; tests fail without access to USB
(native-inputs
(list pkg-config))
(inputs
- (list libconfuse))
+ (list boost libconfuse))
(propagated-inputs
(list libusb)) ; required by libftdi1.pc
(home-page "https://www.intra2net.com/en/developer/libftdi/")
@@ -59,5 +62,5 @@
(description
"libFTDI is a library to talk to FTDI chips: FT232BM, FT245BM, FT2232C,
FT2232D, FT245R and FT232H including the popular bitbangmode.")
- (license (list license:gpl2 ; ftdi_eeprom
+ (license (list license:gpl2 ; ftdi_eeprom, C++ bindings
license:lgpl2.1)))) ; main library