summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-embedded/libftd2xx/Manifest2
-rw-r--r--dev-embedded/libftd2xx/libftd2xx-1.4.8-r1.ebuild33
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-embedded/libftd2xx/Manifest b/dev-embedded/libftd2xx/Manifest
new file mode 100644
index 0000000..62c7bbc
--- /dev/null
+++ b/dev-embedded/libftd2xx/Manifest
@@ -0,0 +1,2 @@
+DIST libftd2xx-1.4.8-amd64.tar.gz 898269 BLAKE2B e491b58f66ec64014511469e7eb0a628e799ffa4cc52cb94ca66c082dbc56793e3435a80bde7433ce1bea96eea1a52461606ce78a9b2e447f3f9c5a7faef1f1b SHA512 b738b764bcebb5f93f5a968b266547b8775cbc72df8587bfcf67591ce95557b6a43dce2f5dbd9de451f8c9421ec41c25c8fb9bed37b76aec4cd5bac854d4af06
+DIST libftd2xx-1.4.8-x86.tar.gz 891331 BLAKE2B 742be8418ac598b0c4b6b1e4be99a57c85e70310c2a15936dba3a765b0168eac37a080619ed92816a96f93106f96b812545d1cf212f5d6d32b03e5100870f6a7 SHA512 d66415b9ecdc2b38370c2c6b97e5d14c3891910ceaf5aee2740b2e893891c4f2ebf395960748d55508f4b63edd3d829d9c0020898c1b83b453496d18b4a85528
diff --git a/dev-embedded/libftd2xx/libftd2xx-1.4.8-r1.ebuild b/dev-embedded/libftd2xx/libftd2xx-1.4.8-r1.ebuild
new file mode 100644
index 0000000..964f1c5
--- /dev/null
+++ b/dev-embedded/libftd2xx/libftd2xx-1.4.8-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib
+
+DESCRIPTION="Library that allows a direct access to a USB device"
+HOMEPAGE="http://www.ftdichip.com/Drivers/D2XX.htm"
+SRC_URI="
+ amd64? ( https://www.ftdichip.com/Drivers/D2XX/Linux/${PN}-x86_64-${PV}.gz -> ${P}-amd64.tar.gz )
+ x86? ( https://www.ftdichip.com/Drivers/D2XX/Linux/${PN}-i386-${PV}.gz -> ${P}-x86.tar.gz )
+"
+S="${WORKDIR}/release"
+
+LICENSE="FTDI LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+src_install() {
+ dolib.so "${S}/build/${PN}.so.${PV}"
+ dosym "${PN}.so.${PV}" "/usr/$(get_libdir)/${PN}.so.${PV:0:1}"
+ dosym "${PN}.so.${PV}" "/usr/$(get_libdir)/${PN}.so"
+ dolib.a "${S}/build/libftd2xx.a"
+ doheader "${S}"/{ftd2xx,WinTypes}.h
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/sample
+ doins -r "${S}/examples"
+ fi
+
+ dodoc "${S}/ReadMe.txt"
+}