blob: a9b26614da2f3f0f80f432b9d99c0c693ffe1dd4 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby26 ruby27"
RUBY_FAKEGEM_GEMSPEC="duktape.gemspec"
RUBY_FAKEGEM_NAME="duktape"
RUBY_FAKEGEM_EXTENSIONS=(ext/duktape/extconf.rb)
inherit ruby-fakegem
MY_PN=${PN/-/\.}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Ruby bindings to the Duktape JavaScript interpeter"
HOMEPAGE="https://github.com/judofyr/duktape.rb"
SRC_URI="https://github.com/judofyr/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ppc ~riscv"
COMMON_DEPEND="dev-lang/duktape:="
DEPEND+="${COMMON_DEPEND}"
RDEPEND+="${COMMON_DEPEND}"
ruby_add_bdepend "
dev-ruby/pkg-config
dev-ruby/rake-compiler
dev-ruby/sdoc
"
PATCHES=(
"${FILESDIR}"/${PN}-2.3.0.0_duktape-2.5.0-tests.patch
"${FILESDIR}"/${PN}-2.3.0.0_use-system-duktape.patch
)
RUBY_S=${MY_P}
all_ruby_prepare() {
rm ext/duktape/duktape.{c,h} ext/duktape/duk_config.h || die "Failed to remove bundled duktape"
}
each_ruby_test() {
${RUBY} test/test_duktape.rb || die
}
|