[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65807] [PATCH v2 6/9] gnu: libftdi: Build C++ bindings.
From: |
Simon South |
Subject: |
[bug#65807] [PATCH v2 6/9] gnu: libftdi: Build C++ bindings. |
Date: |
Thu, 7 Sep 2023 12:37:55 -0400 |
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.
---
gnu/packages/libftdi.scm | 9 ++++++---
1 file 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 @@ (define-module (gnu packages libftdi)
#: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 @@ (define-public libftdi
#~(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 @@ (define-public libftdi
(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
--
2.40.1
- [bug#65807] [PATCH 4/8] gnu: libftdi: Build ftdi_eeprom., (continued)
- [bug#65807] [PATCH 4/8] gnu: libftdi: Build ftdi_eeprom., Simon South, 2023/09/07
- [bug#65807] [PATCH 8/8] gnu: libftdi: Build API documentation., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 0/9] gnu: libftdi: Update to 1.5; other improvements., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 1/9] gnu: libftdi: Update package style., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 2/9] gnu: libftdi: Use HTTPS for package source., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 4/9] gnu: libftdi: Install libraries to /lib instead of /lib64., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 7/9] gnu: libftdi: Build Python bindings., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 9/9] gnu: libftdi: Build API documentation., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 5/9] gnu: libftdi: Build ftdi_eeprom., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 3/9] gnu: libftdi: Do not build example programs., Simon South, 2023/09/07
- [bug#65807] [PATCH v2 6/9] gnu: libftdi: Build C++ bindings.,
Simon South <=
- [bug#65807] [PATCH v2 8/9] gnu: libftdi: Update to 1.5., Simon South, 2023/09/07
- bug#65807: [PATCH 0/8] gnu: libftdi: Update to 1.5; other improvements., Ludovic Courtès, 2023/09/14