diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2008-10-01 16:36:55 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2008-10-01 16:36:55 +0000 |
commit | 24444fb39eb5544dcdb99bc3556ddd73546504dc (patch) | |
tree | 2b090cca376ef015c8743b981ae00cf21909760a /dev-libs/libhid/libhid-0.2.16.ebuild | |
parent | Version bumped. (diff) | |
download | gentoo-2-24444fb39eb5544dcdb99bc3556ddd73546504dc.tar.gz gentoo-2-24444fb39eb5544dcdb99bc3556ddd73546504dc.tar.bz2 gentoo-2-24444fb39eb5544dcdb99bc3556ddd73546504dc.zip |
Initial import. Submitted by Mark Karpeles, bug #234264.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)
Diffstat (limited to 'dev-libs/libhid/libhid-0.2.16.ebuild')
-rw-r--r-- | dev-libs/libhid/libhid-0.2.16.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/libhid/libhid-0.2.16.ebuild b/dev-libs/libhid/libhid-0.2.16.ebuild new file mode 100644 index 000000000000..51c48a11552d --- /dev/null +++ b/dev-libs/libhid/libhid-0.2.16.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhid/libhid-0.2.16.ebuild,v 1.1 2008/10/01 16:36:55 matsuu Exp $ + +DESCRIPTION="Provides a generic and flexible way to access and interact with USB HID devices" +HOMEPAGE="http://libhid.alioth.debian.org/" +SRC_URI="http://beta.magicaltux.net/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc python" + +RDEPEND="dev-libs/libusb" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + python? ( + dev-lang/swig + >=dev-lang/python-2.1.0 + )" + +src_compile() { + local myconf + + myconf="${myconf} $(use_with doc doxygen)" + myconf="${myconf} $(use_enable debug)" + myconf="${myconf} $(use_enable python swig)" + + if use python; then + # libhid includes its own python detection m4 from + # http://autoconf-archive.cryp.to/ac_python_devel.html + # As it seems to detect python in the wrong place, we'll force it by + # passing the right environnement variables, only if we have the python + # flag + PYTHON_LDFLAGS="$(python-config --ldflags)" econf ${myconf} || die + else + # avoid libhid running swig if it finds it automatically as long as the + # "python" use flag is not set + econf ${myconf} || die + fi + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + dodoc AUTHORS ChangeLog NEWS README README.licence TODO || die + if use doc; then + dohtml -r doc/html/* + fi +} |