summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2019-04-18 16:39:36 -0400
committerRick Farina <zerochaos@gentoo.org>2019-04-18 16:40:03 -0400
commit0a7e9d47ca67405985b1c4d0a2ee240d6b577d38 (patch)
tree26ca34e9200e614545d82f79c15ea2563c795e85 /dev-ruby/blinkstick
parentdev-ruby/libusb: dep for blinkstick (diff)
downloadgentoo-0a7e9d47ca67405985b1c4d0a2ee240d6b577d38.tar.gz
gentoo-0a7e9d47ca67405985b1c4d0a2ee240d6b577d38.tar.bz2
gentoo-0a7e9d47ca67405985b1c4d0a2ee240d6b577d38.zip
dev-ruby/blinkstick: initial commit
Package-Manager: Portage-2.3.63, Repoman-2.3.12 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'dev-ruby/blinkstick')
-rw-r--r--dev-ruby/blinkstick/Manifest1
-rw-r--r--dev-ruby/blinkstick/blinkstick-1.0.1_p20150901.ebuild47
-rw-r--r--dev-ruby/blinkstick/metadata.xml11
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/blinkstick/Manifest b/dev-ruby/blinkstick/Manifest
new file mode 100644
index 000000000000..1baf45617c96
--- /dev/null
+++ b/dev-ruby/blinkstick/Manifest
@@ -0,0 +1 @@
+DIST blinkstick-1.0.1_p20150901.tar.gz 4216 BLAKE2B 970aea7dce0f5cd476a88302d02bfeef56e6614fea44c7948be7997c322bfa4859f3caf664d86e91693cdeaa0827c1144f5a6437ec3f285628d866b28d55a456 SHA512 6a1958226d3629fec0f3f4a6b29c822206a6f9d60e0b78502cd51f855b9f3f071b84a0e960b0e1a7eb4ef0847743f84bb21830dc973b1af24c21a30123f2f19e
diff --git a/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901.ebuild b/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901.ebuild
new file mode 100644
index 000000000000..7a072b1d004d
--- /dev/null
+++ b/dev-ruby/blinkstick/blinkstick-1.0.1_p20150901.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby24 ruby25 ruby26"
+RUBY_FAKEGEM_VERSION="1.0.1.1"
+
+inherit ruby-fakegem
+
+DESCRIPTION="ruby interface for blinkstick via libusb"
+HOMEPAGE="https://github.com/arvydas/blinkstick-ruby"
+COMMIT="89e3f621132c2571d5f7c636b3962ff1b0a64564"
+SRC_URI="https://github.com/arvydas/blinkstick-ruby/archive/89e3f621132c2571d5f7c636b3962ff1b0a64564.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+PDEPEND="dev-ruby/color
+ virtual/libusb"
+
+all_ruby_install() {
+ cd ${PN}-ruby-${COMMIT} || die
+ if use examples; then
+ insinto /usr/share/${PN}
+ doins example-*.rb
+ fi
+ all_fakegem_install
+}
+
+each_ruby_install() {
+ cd ${PN}-ruby-${COMMIT} || die
+ 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
+}
diff --git a/dev-ruby/blinkstick/metadata.xml b/dev-ruby/blinkstick/metadata.xml
new file mode 100644
index 000000000000..61b648b06390
--- /dev/null
+++ b/dev-ruby/blinkstick/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">arvydas/blinkstick-ruby</remote-id>
+ </upstream>
+</pkgmetadata>