commit: 4dd95ef5819b71b04ea02a7676c841363f756d35
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 5 07:23:13 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 5 07:23:20 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd95ef5
dev-embedded/libftdi: sync live ebuild
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-embedded/libftdi/libftdi-9999.ebuild | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dev-embedded/libftdi/libftdi-9999.ebuild
b/dev-embedded/libftdi/libftdi-9999.ebuild
index 028e9c9ad1c..9b1e30890f4 100644
--- a/dev-embedded/libftdi/libftdi-9999.ebuild
+++ b/dev-embedded/libftdi/libftdi-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -60,11 +60,19 @@ src_configure() {
src_test() {
cd "${BUILD_DIR}/test" || die
- ./test_libftdi1 -l all || die
+ LD_LIBRARY_PATH="${BUILD_DIR}/src" ./test_libftdi1 -l all || die
}
src_install() {
cmake_src_install
+
+ # Fix up pkgconfig files
+ # bug #766818
+ if use cxx ; then
+ sed -i -e "s/libftdipp1/libftdi1/"
"${ED}"/usr/$(get_libdir)/pkgconfig/libftdi1.pc || die
+ sed -i -e "s/libftdi1/libftdipp1/"
"${ED}"/usr/$(get_libdir)/pkgconfig/libftdipp1.pc || die
+ fi
+
use python && python_optimize
dodoc AUTHORS ChangeLog README TODO