/[gentoo-x86]/dev-libs/libhid/libhid-0.2.16-r1.ebuild
Gentoo

Contents of /dev-libs/libhid/libhid-0.2.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Apr 4 14:56:17 2010 UTC (9 years, 6 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed -Werror, bug #260884. Fixed python dependency, bug #312189.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libhid/libhid-0.2.16-r1.ebuild,v 1.1 2009/09/23 23:53:21 matsuu Exp $
4
5 EAPI="1"
6 DESCRIPTION="Provides a generic and flexible way to access and interact with USB HID devices"
7 HOMEPAGE="http://libhid.alioth.debian.org/"
8 SRC_URI="http://beta.magicaltux.net/${P}.tar.gz"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~amd64 ~x86"
13 IUSE="debug doc python"
14
15 RDEPEND="virtual/libusb:0"
16 DEPEND="${RDEPEND}
17 doc? ( app-doc/doxygen )
18 python? (
19 dev-lang/swig
20 >=dev-lang/python-2.1.0
21 )"
22
23 src_compile() {
24 local myconf
25
26 myconf="${myconf} $(use_with doc doxygen)"
27 myconf="${myconf} $(use_enable debug)"
28 myconf="${myconf} $(use_enable python swig)"
29
30 if use python; then
31 # libhid includes its own python detection m4 from
32 # http://autoconf-archive.cryp.to/ac_python_devel.html
33 # As it seems to detect python in the wrong place, we'll force it by
34 # passing the right environnement variables, only if we have the python
35 # flag
36 PYTHON_LDFLAGS="$(python-config --ldflags)" econf ${myconf} || die
37 else
38 # avoid libhid running swig if it finds it automatically as long as the
39 # "python" use flag is not set
40 econf ${myconf} || die
41 fi
42 emake || die "emake failed"
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install || die "install failed"
47
48 dodoc AUTHORS ChangeLog NEWS README README.licence TODO || die
49 if use doc; then
50 dohtml -r doc/html/*
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20