diff options
Diffstat (limited to 'dev-libs/libhid/libhid-0.2.16-r4.ebuild')
-rw-r--r-- | dev-libs/libhid/libhid-0.2.16-r4.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/libhid/libhid-0.2.16-r4.ebuild b/dev-libs/libhid/libhid-0.2.16-r4.ebuild new file mode 100644 index 000000000000..d082da46f04a --- /dev/null +++ b/dev-libs/libhid/libhid-0.2.16-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit autotools eutils python-single-r1 + +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 ~ppc ~ppc64 ~x86" +IUSE="doc python static-libs" + +RDEPEND=" + python? ( ${PYTHON_DEPS} ) + virtual/libusb:0 +" +DEPEND=" + ${RDEPEND} + doc? ( app-doc/doxygen ) + python? ( dev-lang/swig ) +" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-swig.patch + epatch "${FILESDIR}"/${P}-libusb.patch + + eautoreconf +} + +src_configure() { + export OS_LDFLAGS="${LDFLAGS}" + use python && export PYTHON_LDFLAGS=$(${EPYTHON}-config --ldflags) + + econf \ + $(use_enable python swig) \ + $(use_enable static-libs static) \ + $(use_with doc doxygen) \ + --disable-debug \ + --disable-werror +} + +DOCS=( AUTHORS ChangeLog NEWS README README.licence TODO ) + +src_install() { + default + + use doc && dohtml -r doc/html/* + + prune_libtool_files +} |