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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Dec 31 16:06:13 2014 UTC (4 years, 9 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

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/libhid/libhid-0.2.16-r3.ebuild,v 1.6 2014/08/13 09:12:28 jer Exp $
4
5 EAPI="2"
6
7 PYTHON_DEPEND="python? 2"
8
9 inherit autotools python
10
11 DESCRIPTION="Provides a generic and flexible way to access and interact with USB HID devices"
12 HOMEPAGE="http://libhid.alioth.debian.org/"
13 SRC_URI="http://beta.magicaltux.net/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
18 IUSE="doc python"
19
20 RDEPEND="virtual/libusb:0"
21 DEPEND="${RDEPEND}
22 doc? ( app-doc/doxygen )
23 python? ( dev-lang/swig )"
24
25 pkg_setup() {
26 python_set_active_version 2
27 }
28
29 src_prepare() {
30 # Respect LDFLAGS
31 export OS_LDFLAGS="${LDFLAGS}"
32 # Bug #260884
33 sed -i -e 's/-Werror//' m4/md_conf_compiler.m4 || die
34 # bug #519768
35 sed -i -e '/MD_CONF_DEBUGGING/d' configure.ac || die
36 eautoconf
37 }
38
39 src_configure() {
40 local myconf
41
42 myconf="${myconf} $(use_enable python swig)"
43 myconf="${myconf} $(use_with doc doxygen)"
44 myconf="${myconf} --disable-debug"
45
46 if use python; then
47 # libhid includes its own python detection m4 from
48 # http://autoconf-archive.cryp.to/ac_python_devel.html
49 # As it seems to detect python in the wrong place, we'll force it by
50 # passing the right environnement variables, only if we have the python
51 # flag
52 PYTHON_LDFLAGS="$(python-config --ldflags)" econf ${myconf} || die
53 else
54 # avoid libhid running swig if it finds it automatically as long as the
55 # "python" use flag is not set
56 econf ${myconf} || die
57 fi
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "install failed"
62
63 dodoc AUTHORS ChangeLog NEWS README README.licence TODO || die
64 if use doc; then
65 dohtml -r doc/html/* || die
66 fi
67 #delete .la file. Bug #313841
68 rm "${D}"/$(python_get_sitedir)/${PN}/_hid.la
69
70 }

  ViewVC Help
Powered by ViewVC 1.1.20