blob: c31e21734f2a957fa46d7c10b9ac564584a412ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_RUBY="ruby24 ruby25 ruby26"
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
}
|