From b6cfc0c19effe2d9f7b8ab303cd00636f16da253 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 19 Apr 2024 12:05:02 +0100 Subject: gentoo auto-resync : 19:04:2024 - 12:05:02 --- dev-ruby/libusb/Manifest | 2 ++ dev-ruby/libusb/libusb-0.7.0.ebuild | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-ruby/libusb/libusb-0.7.0.ebuild (limited to 'dev-ruby/libusb') diff --git a/dev-ruby/libusb/Manifest b/dev-ruby/libusb/Manifest index 47589afbb9b7..dae3f6c356a8 100644 --- a/dev-ruby/libusb/Manifest +++ b/dev-ruby/libusb/Manifest @@ -1,3 +1,5 @@ DIST libusb-0.6.4.gem 762368 BLAKE2B daca8049b82cb56fb8cac350f6953ce292c74370bf468497773b34b6017eef9c0252daf2a0213e660db99120a53193ea67943bb1d851ae1ee723ea84dbe289e0 SHA512 433425f9cc2600615a3e4baec962ff0901e9c0eae7a77c410d099f22742995b23bf9c143797b393843b3de26b8336263cd5b3d3d1cdcd8f91266d90201a6a6de +DIST libusb-0.7.0.gem 819712 BLAKE2B a8d85731b3cff2a5ddf9391a01c54250f11b9933e7ea429031cf8879e22ee79c8c3c8669735b73b7e32ca56c77245588511df1d486a17da67215af2d052082aa SHA512 cd17e40b34bf5015e43435f8f510ce63bc2434c77680dcc8079f123ec4bb12b22b92ae59a7c8646747e5be7f6d14bf3f3a1302549e686ab3735966987311481a EBUILD libusb-0.6.4-r2.ebuild 1157 BLAKE2B ccd8cdcb419ced98158018cbd3453864d7318913972e31569564e165c6110e62015ee9450251177cbfd9a830ed07d14cd01b938e2de62fd5b7bfca383da6df06 SHA512 553b345209c04139166f46bd913a745bb421ab0371e421f5d66965a94707dbdb203d890b67eba1701bc6d6c4babc7c7c05b009a45b84d057250aefe7c07c3042 +EBUILD libusb-0.7.0.ebuild 1181 BLAKE2B 7074612be7cfe4e184ceba47eae937cff7fbb71d7d6afd572101910d2476db5ce81c81b4fa29e0cc425aa075920d0cc40ba2e60bf1d0b484cf4f29dc0d85a87d SHA512 9e2780286d02ad1196b57116a0f33f6594951149f0550ddb5c3758caeccbe60bc09140e36f01633d7588687f48f6114a6f019479bf54e26a94e1f9ef4a05a5bd MISC metadata.xml 457 BLAKE2B 827f35d53e5ed4199425337f4fb27bde916a3cbbfce487d48b5642e21c7e591d4d0f81d3a0c127db401c0db629c8a60f6cd64804d6c63bc49dc40bd5b3b68366 SHA512 fd7d504abb3508d924831eecf94ad2418f1fc2bb9a7208883c6075fa4c0980d76a24a6f07641d8df295b8729f729d16f6ae47810c9454046c4bd550af1364ad9 diff --git a/dev-ruby/libusb/libusb-0.7.0.ebuild b/dev-ruby/libusb/libusb-0.7.0.ebuild new file mode 100644 index 000000000000..d86ffb6892be --- /dev/null +++ b/dev-ruby/libusb/libusb-0.7.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="History.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="binding that gives Ruby programmers access to arbitrary USB devices" +HOMEPAGE="https://github.com/larskanis/libusb" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND+=">=dev-libs/libusb-1.0.27:1" +RDEPEND+="${DEPEND}" + +ruby_add_rdepend "dev-ruby/ffi:0" +ruby_add_bdepend "test? ( dev-ruby/eventmachine )" + +all_ruby_prepare() { + sed -e '/mini_portile2/d' \ + -e 's/git ls-files --/find/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid tests that try to open devices or depend on specific hardware + rm -f test/test_libusb_{bos,bulk_stream_transfer,descriptors}.rb || die +} + +each_ruby_test() { + ${RUBY} -I.:lib -e "Dir['test/test_*.rb'].each{|f| require f}" || die +} + +each_ruby_install() { + each_fakegem_install + + # This gem includes an extension that does not actually do anything + # when using the system libusb, but newer rubygems versions still + # require the marker to be present. + ruby_fakegem_extensions_installed +} -- cgit v1.2.3