From 129160ec854dca4c3fedb5bcfbcb56930371da0f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Jan 2021 21:06:00 +0000 Subject: gentoo new year resync : 01.01.2021 --- dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild (limited to 'dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild') diff --git a/dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild b/dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild new file mode 100644 index 000000000000..3fd89c0f77cc --- /dev/null +++ b/dev-embedded/libftd2xx/libftd2xx-1.4.8.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Library that allows a direct access to a USB device" +HOMEPAGE="http://www.ftdichip.com/Drivers/D2XX.htm" +# NOTE: We could include other arm versions here too. +SRC_URI=" + amd64? ( http://www.ftdichip.com/Drivers/D2XX/Linux/${PN}-x86_64-${PV}.gz -> ${PN}-x86_64-${PV}.tar.gz ) + arm? ( http://www.ftdichip.com/Drivers/D2XX/Linux/${PN}-arm-v6-hf-${PV}.gz -> ${PN}-arm-v6-hf-${PV}.tar.gz ) + x86? ( http://www.ftdichip.com/Drivers/D2XX/Linux/${PN}-i386-${PV}.gz -> ${PN}-i386-${PV}.tar.gz ) +" +S="${WORKDIR}" + +LICENSE="FTDI LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="examples" + +QA_PREBUILT="*" + +src_install() { + cd release/build || die + + into /opt + dolib.so ${PN}.so.${PV} + dosym ${PN}.so.${PV} /opt/$(get_libdir)/${PN}.so.${PV:0:1} + dosym ${PN}.so.${PV:0:1} /opt/$(get_libdir)/${PN}.so + insinto /usr/include + doins "${S}"/release/ftd2xx.h "${S}"/release/WinTypes.h + + dodir /etc/env.d + echo "LDPATH=\"/opt/$(get_libdir)\"" > ${ED}/etc/env.d/50libftd2xx || die + + if use examples ; then + docinto sample + dodoc -r "${S}"/release/examples + fi + + dodoc "${S}"/release/ReadMe.txt +} -- cgit v1.2.3