dev-ruby/blinkstick: initial commit
authorRick Farina <zerochaos@gentoo.org>
Thu, 18 Apr 2019 20:39:36 +0000 (16:39 -0400)
committerRick Farina <zerochaos@gentoo.org>
Thu, 18 Apr 2019 20:40:03 +0000 (16:40 -0400)
Package-Manager: Portage-2.3.63, Repoman-2.3.12
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
dev-ruby/blinkstick/Manifest [new file with mode: 0644]
dev-ruby/blinkstick/blinkstick-1.0.1_p20150901.ebuild [new file with mode: 0644]
dev-ruby/blinkstick/metadata.xml [new file with mode: 0644]

diff --git a/dev-ruby/blinkstick/Manifest b/dev-ruby/blinkstick/Manifest
new file mode 100644 (file)
index 0000000..1baf456
--- /dev/null
@@ -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 (file)
index 0000000..7a072b1
--- /dev/null
@@ -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 (file)
index 0000000..61b648b
--- /dev/null
@@ -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>