summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2008-10-01 16:36:55 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2008-10-01 16:36:55 +0000
commitd260fa527c95c6befd98c607053277609fe657d2 (patch)
treef51cd129e935e5cd0529f2fb19a0ede67024a310 /dev-libs/libhid
parentVersion bumped. (diff)
downloadhistorical-d260fa527c95c6befd98c607053277609fe657d2.tar.gz
historical-d260fa527c95c6befd98c607053277609fe657d2.tar.bz2
historical-d260fa527c95c6befd98c607053277609fe657d2.zip
Initial import. Submitted by Mark Karpeles, bug #234264.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64
Diffstat (limited to 'dev-libs/libhid')
-rw-r--r--dev-libs/libhid/ChangeLog10
-rw-r--r--dev-libs/libhid/Manifest4
-rw-r--r--dev-libs/libhid/libhid-0.2.16.ebuild51
-rw-r--r--dev-libs/libhid/metadata.xml15
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/libhid/ChangeLog b/dev-libs/libhid/ChangeLog
new file mode 100644
index 000000000000..8df97a17f273
--- /dev/null
+++ b/dev-libs/libhid/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-libs/libhid
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhid/ChangeLog,v 1.1 2008/10/01 16:36:55 matsuu Exp $
+
+*libhid-0.2.16 (01 Oct 2008)
+
+ 01 Oct 2008; MATSUU Takuto <matsuu@gentoo.org> +metadata.xml,
+ +libhid-0.2.16.ebuild:
+ Initial import. Submitted by Mark Karpeles, bug #234264.
+
diff --git a/dev-libs/libhid/Manifest b/dev-libs/libhid/Manifest
new file mode 100644
index 000000000000..73ff03b89dcd
--- /dev/null
+++ b/dev-libs/libhid/Manifest
@@ -0,0 +1,4 @@
+DIST libhid-0.2.16.tar.gz 435245 RMD160 f61f016ae54bc5532202fd676d38d1f684e7ab8d SHA1 9a25fef674e8f20f97fea6700eb91c21ebbbcc02 SHA256 f6809ab3b9c907cbb05ceba9ee6ca23a705f85fd71588518e14b3a7d9f2550e5
+EBUILD libhid-0.2.16.ebuild 1481 RMD160 21e4fc8e263725536c33a9b8c1258f5883ef2cca SHA1 0f269507abf763d2ad2d53cca195ae9661b9892c SHA256 f393afc77e62084f537a06a7cf8ca644c73478d5f8c9a5587907a8734fbb5fb1
+MISC ChangeLog 382 RMD160 f573850dbac428fd430a1f8622018855b4eaede2 SHA1 1998fee5d0b957a87aa84c0bf66a0799e68f4e29 SHA256 476ea753e7ddc05f05b35e40344dca64b8b055f830913f6cb030bd64424d9355
+MISC metadata.xml 550 RMD160 93eacd05e85031e424468b57585ce7bd20bcfb87 SHA1 57562a7ba3822914c992304f814fc5b0fe6142b0 SHA256 24d8e5690795c1a6842852b9ac2f9b33323805e26ac83a16c1571d016ace4fae
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
+}
diff --git a/dev-libs/libhid/metadata.xml b/dev-libs/libhid/metadata.xml
new file mode 100644
index 000000000000..8ec6a4501bb4
--- /dev/null
+++ b/dev-libs/libhid/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>matsuu@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+libhid provides a generic and flexible way to access and interact with USB
+HID devices, much like libusb does for plain USB devices. It is based on
+libusb, thus it requires no HID support in the kernel and provides means to
+take control over a device even if the kernel governs it.
+</longdescription>
+</pkgmetadata>
+