blob: 964f1c58e56cb4d63e0e767bfc8ece2f5a2e50e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"
}
|