summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-02-22 17:02:25 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-02-22 17:02:25 +0000
commitde462622a9db6cc1f267b209e088b163bce86f83 (patch)
treec6a5cf292bac60d15872850695fd44cee0f5ccc3 /dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild
parentMoved from sunrise overlay. Thanks to Laurento Frittella (mrfree) <laurento.f... (diff)
downloadgentoo-2-de462622a9db6cc1f267b209e088b163bce86f83.tar.gz
gentoo-2-de462622a9db6cc1f267b209e088b163bce86f83.tar.bz2
gentoo-2-de462622a9db6cc1f267b209e088b163bce86f83.zip
Install enviromental file. Bug #355563
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild')
-rw-r--r--dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild b/dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild
new file mode 100644
index 000000000000..b296f780526f
--- /dev/null
+++ b/dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftd2xx/libftd2xx-0.4.16-r1.ebuild,v 1.1 2011/02/22 17:02:25 hwoarang Exp $
+
+inherit multilib
+
+MY_P="${PN}${PV}"
+
+DESCRIPTION="Library that allows a direct access to a USB device"
+HOMEPAGE="http://www.ftdichip.com/Drivers/D2XX.htm"
+SRC_URI="amd64? ( http://www.ftdichip.com/Drivers/D2XX/Linux/${MY_P}_x86_64.tar.gz )
+ x86? ( http://www.ftdichip.com/Drivers/D2XX/Linux/${MY_P}.tar.gz )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+S=${WORKDIR}
+
+src_install() {
+ use x86 && cd ${MY_P}
+ use amd64 && cd ${MY_P}_x86_64
+
+ into /opt
+ dolib.so ${PN}.so.${PV} || die
+ dosym ${PN}.so.${PV} /opt/$(get_libdir)/${PN}.so.${PV:0:1} || die
+ dosym ${PN}.so.${PV:0:1} /opt/$(get_libdir)/${PN}.so || die
+ insinto /usr/include
+ doins ftd2xx.h WinTypes.h || die
+
+ dodir /etc/env.d
+ echo "LDPATH=\"/opt/$(get_libdir)\"" > ${D}/etc/env.d/50libftd2xx || die
+ if use examples ; then
+ find sample lib_table '(' -name '*.so' -o -name '*.[oa]' ')' -exec rm -f {} +
+ insinto /usr/share/doc/${PF}
+ doins -r sample || die "doins failed"
+ insinto /usr/share/doc/${PF}/sample
+ doins -r lib_table || die "doins failed"
+ fi
+
+ dodoc Config.txt FAQ.txt README.dat
+}