summaryrefslogtreecommitdiff
path: root/dev-libs/libhid
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libhid')
-rw-r--r--dev-libs/libhid/Manifest6
-rw-r--r--dev-libs/libhid/files/libhid-0.2.17-configure.patch36
-rw-r--r--dev-libs/libhid/files/libhid-0.2.17-man.patch11
-rw-r--r--dev-libs/libhid/libhid-0.2.17.ebuild61
-rw-r--r--dev-libs/libhid/metadata.xml17
5 files changed, 123 insertions, 8 deletions
diff --git a/dev-libs/libhid/Manifest b/dev-libs/libhid/Manifest
index c53b19519d73..e5ac65cee21f 100644
--- a/dev-libs/libhid/Manifest
+++ b/dev-libs/libhid/Manifest
@@ -1,6 +1,10 @@
AUX libhid-0.2.16-gentoo.patch 628 BLAKE2B 6c2a25cb230a50c5eceff0229d9d6bf3860c5ff4c4c5075d6dd062cdb600dd2dda70979303ef62422fb65e3a441fa4e1487ee173c78343d4bcca4b061f5bd0b0 SHA512 a756d99b115e1903ff633e511c8b9c2de1743b9d8c5050ba422281aea6c4d330b70632e45f688177d8d06ba4077574193e7e378f0e0a79924d2463f5e1584d40
AUX libhid-0.2.16-libusb.patch 421 BLAKE2B 8b3283ddf9ca120bb77af75fb5aae88ca6d45904a425fdc90f4ca7fda8bd111f37deea5454d692499156337f473bdbd3731d7bf45ea7b80af5c359478cb96c69 SHA512 0fa3be119d1ab3efa428c81b96709a0cee4fd40fa4515d255a64be095a4e26f68a2c8175beda6615c720aaa593edc5aaaa2909bfc5ab9e7f9b818d8c507b9fde
AUX libhid-0.2.16-swig.patch 1424 BLAKE2B afc3bbaedcd83c87b3186742872681a7a74780873d7aea8fe5fb1df9c69aa66e8265af58200476a2c85f7c0f7abc8036cd569e8827cfb239cb60262758618784 SHA512 62ff58921aa99947f8b33b0d1c02cf30f19fd3f75393cbb681846266b67af49bf6a2e70a995c9a7252b27c67e573e2c198b366830c15ca3c5e87a93325a849cb
+AUX libhid-0.2.17-configure.patch 651 BLAKE2B 734aec3525837a5179fe75057628fa5c9276603b62d5075a95f49c1813f2bbff94dde8a538fe82a25c07a0b101a6ace518e5f496b261c8b9d8063bedea001766 SHA512 da06305f3846c24e5faac1bd3f69f2527801a0e2bff127414fecd78ff658a6c25221441a61c24a97d465523b44bd8c8d7e3396fe20b11ad6ff3a5b96902740fb
+AUX libhid-0.2.17-man.patch 500 BLAKE2B 404b7163651258a28369458a76cdcc591ebc8285b53b60e84c41f899d3449e6493b191ff6411668ad168a9ea91b024b5c6d738ca86c91a49f115ba58bf7b01c0 SHA512 de3364eeff10e5e0dc287b4c04bc680ab44c487cd539d3642ef72ebc11384713021bff750f6bf1a46819e59842ad51c37e2eec0d0d9e20afb8a194b5844fe1ce
DIST libhid-0.2.16.tar.gz 435245 BLAKE2B 9bd06b226e42ed0dbbf4395824636dbfaa796ce9c0170ad7af561741ec3f494b92ec09c548f3bc7c698a32aa78d82d4da4094231fbb810de5a67d3066947fd97 SHA512 3c9348f9d63e0e1577e983c65ff8e6acbaee0d5f43ecb29b7004654a7e9d14a94176aa029f259e0b8576fc30e8a9af6d1df34912dd582bfadc2b29f9b87eb52b
+DIST libhid-0.2.17.tar.gz 218501 BLAKE2B d7110dc1854829023531f1fd58fd6668f5d15dc3b98f9a6c799b3bc4725ded907de645921d17161a37cde8d9759ec371f96caf4fbb8d6f7bd480dfe2a352b399 SHA512 d82ef95871460e22e26f4fddb88edb83c262a8d0cd70beb7e65cacb443bfc21e12f868d50b8b4ea0ee00acce7c2d0f5bd06437b69cf89ef39dd118c21c73b977
EBUILD libhid-0.2.16-r4.ebuild 1254 BLAKE2B 169b8bad85fac93966d558c789456389e8451f409a216fd953f081fccbe30c2fe1d35e8cd990ede83ff8f0fd9ee43e686bcb549fe8a330f5e030374ede5c86e2 SHA512 12547eb12fc9ef71b81d0733386cf1ef9aaea9d685c6971c69a7653dc0bdf92e96f78ce4aabc8d553f0d9f7c026fd736a4210224506787310491d1ef092d88b9
-MISC metadata.xml 495 BLAKE2B 1cf63c758e96eaeb6195814d8f568f80016982d94561737c3077637165c4fe5f791ca88d45374f95e0208aaca523f77e887e5c99b5839c8c8ce34573febe5987 SHA512 e465b7596e61565aa21ce9c32d7d76b099ee21c471c341677604f5816f2b7547c57f8a065f2bb9df2356c3e6d5fd26efb303884117096e8178127490a14ca268
+EBUILD libhid-0.2.17.ebuild 1028 BLAKE2B d4e5688269959fe25bbe241338b5188e4302e6dd4d9b0bff961697a26192e24df0290d66f03c277c111eb071cf138a4b0ea3586709a4b1fc855a1268ce73e3db SHA512 6eda25820eae4709e80675d35d8ea8110b897c196604d6b74edfb39680ee2d1471a200c6ef1806175c1b3248666046f61da9d251cd8e14feb07f3ad3f97d69be
+MISC metadata.xml 579 BLAKE2B c06739bd7822f74c3721fb2848c6b91e2904a2731478bbdda4b7500dff9882d2d885983ad017191bf9ac3217ce1e200db82663c3dec29777f995358dc6bcab28 SHA512 5ee3274cd0351f5d4a7853a1392bc538c85b9539b1964cf420b00c7e9dcbcb20534b74b641e7c4ed7ccb2218ffea9ef42b06d6ffebf1c1402337c66a8c9c7bce
diff --git a/dev-libs/libhid/files/libhid-0.2.17-configure.patch b/dev-libs/libhid/files/libhid-0.2.17-configure.patch
new file mode 100644
index 000000000000..5318aa2d89fe
--- /dev/null
+++ b/dev-libs/libhid/files/libhid-0.2.17-configure.patch
@@ -0,0 +1,36 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -59,9 +59,10 @@
+ MD_CHECK_OS
+
+ MD_CHECK_LIBUSB018B
++LIBS="$LIBS $LIBUSB_LIBS"
++INCLUDES="$INCLUDES $LIBUSB_CFLAGS"
+
+ AC_PROG_CC
+-MD_CHECK_GCC3
+
+ dnl MD_CONF_DISTCC
+ dnl MD_CONF_CCACHE
+@@ -78,7 +79,6 @@
+ AC_C_BIGENDIAN
+ AC_C_STRINGIZE
+
+-MD_CONF_DEBUGGING
+ MD_CONF_COMPILER
+ AM_CONDITIONAL(OS_LINUX, test "$MD_OS" = "linux")
+ AM_CONDITIONAL(OS_BSD, test "$MD_OS" = "bsd")
+@@ -98,13 +98,6 @@
+
+ MD_CHECK_DOXYGEN
+
+-MD_CONF_FLAGS(
+- [],
+- [$OS_CFLAGS $LIBUSB_CFLAGS],
+- [],
+- [$OS_LDFLAGS $LIBUSB_LIBS]
+-)
+-
+ MD_CONF_DB2MAN
+
+ ##### OUTPUT #################################################################
diff --git a/dev-libs/libhid/files/libhid-0.2.17-man.patch b/dev-libs/libhid/files/libhid-0.2.17-man.patch
new file mode 100644
index 000000000000..4fe5677c107a
--- /dev/null
+++ b/dev-libs/libhid/files/libhid-0.2.17-man.patch
@@ -0,0 +1,11 @@
+--- a/m4/md_conf_db2man.m4
++++ b/m4/md_conf_db2man.m4
+@@ -3,7 +3,7 @@
+ for file in \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/*/manpages/docbook.xsl \
+- /usr/share/{x,sg}ml/docbook/xsl-stylesheets-*/manpages/docbook.xsl \
++ /usr/share/{x,sg}ml/docbook/xsl-stylesheets*/manpages/docbook.xsl \
+ /sw/share/xml/xsl/docbook-xsl/manpages/docbook.xsl; do
+
+ test -r $file && db2man_file=$file
diff --git a/dev-libs/libhid/libhid-0.2.17.ebuild b/dev-libs/libhid/libhid-0.2.17.ebuild
new file mode 100644
index 000000000000..bfc00287f463
--- /dev/null
+++ b/dev-libs/libhid/libhid-0.2.17.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Provides a generic and flexible way to access and interact with USB HID devices"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="https://dev.gentoo.org/~conikost/files/${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc"
+
+RDEPEND="virtual/libusb:0="
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ doc? ( app-doc/doxygen )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+ "${FILESDIR}"/${P}-man.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ export OS_LDFLAGS="${LDFLAGS}"
+
+ myeconfargs=(
+ "--disable-static"
+ "--disable-swig"
+ "--disable-warnings"
+ "--disable-werror"
+ "$(use_with doc doxygen)"
+ )
+
+ econf ${myeconfargs[@]}
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ docinto html
+ dodoc -r doc/html/.
+ fi
+
+ find "${D}" -name '*.la' -type f -delete || die
+}
diff --git a/dev-libs/libhid/metadata.xml b/dev-libs/libhid/metadata.xml
index 8ab798976991..8e5545cdf11e 100644
--- a/dev-libs/libhid/metadata.xml
+++ b/dev-libs/libhid/metadata.xml
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
-<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>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <longdescription>
+ 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>