/[gentoo-x86]/dev-libs/libusb/libusb-1.0.9-r2.ebuild
Gentoo

Contents of /dev-libs/libusb/libusb-1.0.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 9 23:25:09 2014 UTC (4 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Mark arm64/m68k/s390/sh stable.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/libusb-1.0.9-r2.ebuild,v 1.4 2014/03/24 17:51:41 ssuominen Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs multilib-minimal
7
8 DESCRIPTION="Userspace access to USB devices"
9 HOMEPAGE="http://libusb.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
11
12 LICENSE="LGPL-2.1"
13 SLOT="1"
14 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -amd64-fbsd -x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
15 IUSE="debug doc examples static-libs"
16
17 RDEPEND="
18 abi_x86_32? (
19 !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
20 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
21 )"
22 DEPEND="doc? ( app-doc/doxygen )"
23
24 multilib_src_configure() {
25 ECONF_SOURCE=${S} \
26 econf \
27 $(use_enable static-libs static) \
28 $(use_enable debug debug-log)
29 }
30
31 multilib_src_compile() {
32 emake
33
34 if multilib_is_native_abi; then
35 use doc && emake -C doc docs
36 fi
37 }
38
39 multilib_src_install() {
40 emake DESTDIR="${D}" install
41
42 if multilib_is_native_abi; then
43 gen_usr_ldscript -a usb-1.0
44
45 use doc && dohtml doc/html/*
46 fi
47 }
48
49 multilib_src_install_all() {
50 prune_libtool_files
51
52 dodoc AUTHORS NEWS PORTING README THANKS TODO
53
54 if use examples; then
55 insinto /usr/share/doc/${PF}/examples
56 doins examples/*.c
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20