diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-10-31 06:11:56 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-10-31 06:57:10 +0100 |
commit | 8ddeec216967311f14ef3cedc5920b64f6df2799 (patch) | |
tree | b0c75833f60bac83b2f0a0b001b57c60ecb4a30a /dev-ruby/duktape-rb | |
parent | dev-ruby/bcrypt-ruby: cleanup (diff) | |
download | gentoo-8ddeec216967311f14ef3cedc5920b64f6df2799.tar.gz gentoo-8ddeec216967311f14ef3cedc5920b64f6df2799.tar.bz2 gentoo-8ddeec216967311f14ef3cedc5920b64f6df2799.zip |
dev-ruby/duktape-rb: fix extension install
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/duktape-rb')
-rw-r--r-- | dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r3.ebuild b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r3.ebuild new file mode 100644 index 000000000000..e3a343028a31 --- /dev/null +++ b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r3.ebuild @@ -0,0 +1,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 +} |