summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-01-31 16:17:16 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-01-31 16:17:16 +0000
commit26ed5a001b5e993e624fb49d4e8707dac6e3bd26 (patch)
treecf5c97d70c7d3f39fac97edfd89e702e2f675147 /dev-libs/libusbx
parentVersion bump; drop undocumented EAUTORECONF=1 usage because the .ebuild doesn... (diff)
downloadgentoo-2-26ed5a001b5e993e624fb49d4e8707dac6e3bd26.tar.gz
gentoo-2-26ed5a001b5e993e624fb49d4e8707dac6e3bd26.tar.bz2
gentoo-2-26ed5a001b5e993e624fb49d4e8707dac6e3bd26.zip
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'dev-libs/libusbx')
-rw-r--r--dev-libs/libusbx/ChangeLog7
-rw-r--r--dev-libs/libusbx/libusbx-1.0.18.ebuild72
2 files changed, 78 insertions, 1 deletions
diff --git a/dev-libs/libusbx/ChangeLog b/dev-libs/libusbx/ChangeLog
index 22829a4654c5..333c0d261126 100644
--- a/dev-libs/libusbx/ChangeLog
+++ b/dev-libs/libusbx/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/libusbx
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/ChangeLog,v 1.30 2014/01/15 10:44:18 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/ChangeLog,v 1.31 2014/01/31 16:17:16 ssuominen Exp $
+
+*libusbx-1.0.18 (31 Jan 2014)
+
+ 31 Jan 2014; Samuli Suominen <ssuominen@gentoo.org> +libusbx-1.0.18.ebuild:
+ Version bump.
15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> libusbx-1.0.17.ebuild:
Stable for x86, wrt bug #488708
diff --git a/dev-libs/libusbx/libusbx-1.0.18.ebuild b/dev-libs/libusbx/libusbx-1.0.18.ebuild
new file mode 100644
index 000000000000..bc39941b4673
--- /dev/null
+++ b/dev-libs/libusbx/libusbx-1.0.18.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/libusbx-1.0.18.ebuild,v 1.1 2014/01/31 16:17:16 ssuominen Exp $
+
+EAPI=5
+inherit eutils toolchain-funcs multilib-minimal
+
+DESCRIPTION="Userspace access to USB devices"
+HOMEPAGE="http://libusbx.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc examples static-libs test udev"
+
+RDEPEND="udev? ( >=virtual/udev-200[${MULTILIB_USEDEP}] )
+ !dev-libs/libusb:1
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ !udev? ( virtual/os-headers )"
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable udev) \
+ $(use_enable debug debug-log) \
+ $(use_enable test tests-build)
+}
+
+multilib_src_compile() {
+ emake
+
+ if multilib_is_native_abi; then
+ use doc && emake -C doc docs
+ fi
+}
+
+multilib_src_test() {
+ emake check
+
+ # noinst_PROGRAMS from tests/Makefile.am
+ tests/stress || die
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if multilib_is_native_abi; then
+ gen_usr_ldscript -a usb-1.0
+
+ use doc && dohtml doc/html/*
+ fi
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+
+ dodoc AUTHORS ChangeLog NEWS PORTING README TODO
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*.{c,h}
+ insinto /usr/share/doc/${PF}/examples/getopt
+ doins examples/getopt/*.{c,h}
+ fi
+}