diff options
author | Sam James <sam@gentoo.org> | 2022-11-30 03:56:32 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-30 04:13:35 +0000 |
commit | 2891a184491eb5b6f65b90b6618d65be791b7e24 (patch) | |
tree | 52a4f9f0b3a40e9485f8357ecd6619091420a6fb /dev-libs/libusb-compat | |
parent | dev-python/cwcwidth: Remove old (diff) | |
download | gentoo-2891a184491eb5b6f65b90b6618d65be791b7e24.tar.gz gentoo-2891a184491eb5b6f65b90b6618d65be791b7e24.tar.bz2 gentoo-2891a184491eb5b6f65b90b6618d65be791b7e24.zip |
dev-libs/libusb-compat: add 0.1.8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libusb-compat')
-rw-r--r-- | dev-libs/libusb-compat/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libusb-compat/libusb-compat-0.1.8.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/libusb-compat/Manifest b/dev-libs/libusb-compat/Manifest index 4f513e9b7559..d54d8fc90cfa 100644 --- a/dev-libs/libusb-compat/Manifest +++ b/dev-libs/libusb-compat/Manifest @@ -1,2 +1,3 @@ DIST libusb-compat-0.1.5.tar.bz2 276769 BLAKE2B 66fa89c507d0454a587fa84d2ee2c34428963fa1770b44038fa45063466611ae263a3c790a167e5049393ef4d87073d1b16135d63cd0666256c3430bf36dae49 SHA512 fe63bd1c65e67588a83ebfdd329025ecf75f33f877fb80dd83eb528df057efb591e010416027f9054294504562299166e8e2811a7681fa1967a03baae9b88857 DIST libusb-compat-0.1.7.tar.bz2 301821 BLAKE2B 9ee79024204b752147da0c49819523c072acd1237dc426aa19a2c2a3673ec2da6f39f62ec27b1b39b1cef2a7e9513ddc7a6149766c8af93cef933d81574dc07c SHA512 94ba2a767959a40a5fe41760d7c20968fb99456de3f5b7547414bd061ab5155d88ca382b6aa1cf4961e15f1bc4890134351902e719ce5aa15dd0202f72417d55 +DIST libusb-compat-0.1.8.tar.bz2 32845 BLAKE2B f590afd539ad20613647b923d69b9fe8ea60b3f5162766a1d840f35e8f56a949f3defa8b1c40ceb8932cf0bf45b3b5097b9ac04a339242a2b906d4ba320e4245 SHA512 817a16a2c7268e0d73add97c06ec3f6e4fc4b8697bd3129bb6f907f138c2a5dccb662096c4cd0385341053b216afd398b21dfef14676777b906972c9e3af4e3e diff --git a/dev-libs/libusb-compat/libusb-compat-0.1.8.ebuild b/dev-libs/libusb-compat/libusb-compat-0.1.8.ebuild new file mode 100644 index 000000000000..5df0ae72d5ac --- /dev/null +++ b/dev-libs/libusb-compat/libusb-compat-0.1.8.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools usr-ldscript multilib-minimal + +DESCRIPTION="Userspace access to USB devices (libusb-0.1 compat wrapper)" +HOMEPAGE="https://libusb.info" +SRC_URI="https://github.com/libusb/libusb-compat-0.1/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="debug examples" + +RDEPEND=" + >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] + !dev-libs/libusb:0 +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/libusb-config +) + +src_prepare() { + default + + eautoreconf +} + +multilib_src_configure() { + local myconf=( + $(use_enable debug debug-log) + ) + + ECONF_SOURCE="${S}" econf "${myconf[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + gen_usr_ldscript -a usb +} + +multilib_src_install_all() { + einstalldocs + + if use examples; then + docinto examples + dodoc examples/*.c + fi + + find "${ED}" -name '*.la' -delete || die +} |