diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-06-18 09:27:24 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-06-18 10:40:47 +0200 |
commit | 1269bab5e80ace5847edccd1f55aa40e3be5a590 (patch) | |
tree | fb3b6e39f63dc20664231bf1825e6686d2acbaa4 /dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild | |
parent | dev-ruby/puppet_forge: add 3.2.0 (diff) | |
download | gentoo-1269bab5e80ace5847edccd1f55aa40e3be5a590.tar.gz gentoo-1269bab5e80ace5847edccd1f55aa40e3be5a590.tar.bz2 gentoo-1269bab5e80ace5847edccd1f55aa40e3be5a590.zip |
dev-ruby/blinkstick: update EAPI 6 -> 8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild')
-rw-r--r-- | dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild b/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild new file mode 100644 index 000000000000..784b2808fab9 --- /dev/null +++ b/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_VERSION="1.0.1.1" + +COMMIT="89e3f621132c2571d5f7c636b3962ff1b0a64564" + +inherit ruby-fakegem + +DESCRIPTION="ruby interface for blinkstick via libusb" +HOMEPAGE="https://github.com/arvydas/blinkstick-ruby" +SRC_URI="https://github.com/arvydas/blinkstick-ruby/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-ruby-${COMMIT}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +ruby_add_rdepend " + >=dev-ruby/color-1.4.2 + >=dev-ruby/libusb-0.4.0 +" + +all_ruby_install() { + if use examples; then + insinto /usr/share/${PN} + doins example-*.rb + fi + all_fakegem_install +} + +each_ruby_install() { + mkdir -p lib/${PN} + mv ${PN}.rb lib + cat <<EOF >> lib/${PN}/version.rb +class BlinkStick + VERSION = "1.0.1.1" +end + +EOF + each_fakegem_install +} |