diff options
author | Sam James <sam@gentoo.org> | 2021-02-05 07:23:13 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-05 07:23:20 +0000 |
commit | 4dd95ef5819b71b04ea02a7676c841363f756d35 (patch) | |
tree | d776c79b3602ea9cb7b203abb36057057d8d6b7d | |
parent | net-analyzer/sslscan: cleanup (diff) | |
download | gentoo-4dd95ef5819b71b04ea02a7676c841363f756d35.tar.gz gentoo-4dd95ef5819b71b04ea02a7676c841363f756d35.tar.bz2 gentoo-4dd95ef5819b71b04ea02a7676c841363f756d35.zip |
dev-embedded/libftdi: sync live ebuild
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-embedded/libftdi/libftdi-9999.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-embedded/libftdi/libftdi-9999.ebuild b/dev-embedded/libftdi/libftdi-9999.ebuild index 028e9c9ad1cb..9b1e30890f4a 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 |