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

Contents of /dev-libs/libusb/libusb-1.0.18.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun May 10 01:31:23 2015 UTC (3 years, 6 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +3 -3 lines
Update HOMEPAGE.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

1 # Copyright 1999-2015 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.18.ebuild,v 1.15 2014/07/26 08:58:59 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.info/"
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 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
15 IUSE="debug doc examples static-libs test udev"
16
17 RDEPEND="udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] )
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="${RDEPEND}
23 doc? ( app-doc/doxygen )
24 !udev? ( virtual/os-headers )"
25
26 multilib_src_configure() {
27 ECONF_SOURCE=${S} \
28 econf \
29 $(use_enable static-libs static) \
30 $(use_enable udev) \
31 $(use_enable debug debug-log) \
32 $(use_enable test tests-build)
33 }
34
35 multilib_src_compile() {
36 emake
37
38 if multilib_is_native_abi; then
39 use doc && emake -C doc docs
40 fi
41 }
42
43 multilib_src_test() {
44 emake check
45
46 # noinst_PROGRAMS from tests/Makefile.am
47 tests/stress || die
48 }
49
50 multilib_src_install() {
51 emake DESTDIR="${D}" install
52
53 if multilib_is_native_abi; then
54 gen_usr_ldscript -a usb-1.0
55
56 use doc && dohtml doc/html/*
57 fi
58 }
59
60 multilib_src_install_all() {
61 prune_libtool_files
62
63 dodoc AUTHORS ChangeLog NEWS PORTING README TODO
64
65 if use examples; then
66 insinto /usr/share/doc/${PF}/examples
67 doins examples/*.{c,h}
68 insinto /usr/share/doc/${PF}/examples/getopt
69 doins examples/getopt/*.{c,h}
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20