# ChangeLog for sys-apps/usbutils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.126 2011/12/13 18:23:22 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.127 2011/12/14 17:21:58 ssuominen Exp $
+
+ 14 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> usbutils-005.ebuild,
+ +files/usbutils-005-missing-includes.patch:
+ Fix missing limits.h and stddef.h wrt #394633 by Alexandre Rostovtsev. This
+ is Debian patch 04-missing-includes.diff.
13 Dec 2011; Jeroen Roovers <jer@gentoo.org> usbutils-004.ebuild:
Stable for HPPA (bug #394577).
--- /dev/null
+This is 04-missing-includes.diff from Debian to resolve http://bugs.gentoo.org/394633
+
+--- usbhid-dump/include/uhd/dev_list.h
++++ usbhid-dump/include/uhd/dev_list.h
+@@ -27,6 +27,7 @@
+ #ifndef __UHD_DEV_LIST_H__
+ #define __UHD_DEV_LIST_H__
+
++#include <stddef.h>
+ #include "uhd/dev.h"
+
+ #ifdef __cplusplus
+--- usbhid-dump/src/usbhid-dump.c
++++ usbhid-dump/src/usbhid-dump.c
+@@ -39,6 +39,7 @@
+ #include <getopt.h>
+ #include <stdio.h>
+ #include <libusb-1.0/libusb.h>
++#include <limits.h>
+
+ #include "config.h"
+
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-005.ebuild,v 1.1 2011/12/13 17:38:22 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-005.ebuild,v 1.2 2011/12/14 17:21:59 ssuominen Exp $
EAPI="4"
PYTHON_DEPEND="python? 2:2.6"
-inherit autotools python
+inherit autotools eutils python
DESCRIPTION="USB enumeration utilities"
HOMEPAGE="http://linux-usb.sourceforge.net/"
}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-missing-includes.patch
+
eautoreconf
if use python; then