From 46eedbedafdb0040c37884982d4c775ce277fb7b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 20 Oct 2021 10:22:14 +0100 Subject: gentoo resync : 20.10.2021 --- dev-ruby/narray/Manifest | 1 + dev-ruby/narray/narray-0.6.1.2-r1.ebuild | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 dev-ruby/narray/narray-0.6.1.2-r1.ebuild (limited to 'dev-ruby/narray') diff --git a/dev-ruby/narray/Manifest b/dev-ruby/narray/Manifest index c5b4486f2acc..36562f0dd0fc 100644 --- a/dev-ruby/narray/Manifest +++ b/dev-ruby/narray/Manifest @@ -1,3 +1,4 @@ DIST narray-0.6.1.2.tar.gz 68621 BLAKE2B c4e48b81fb0d79cc49e32ed8204d9cac3f483eb44e1207f422f5b272bb8891836d81cd83c090f4d643677b1159801c13d15580504e6ca244a2a75d4b6dfb3204 SHA512 51e9bec0b711e79e268b73496ad742b80bb46a6e9ea6aab9a2535a700b6efc8f7ae2e854f5772d434e3d385d81275744dbc796ebec4d3de73f2ec0546bd2339a +EBUILD narray-0.6.1.2-r1.ebuild 1382 BLAKE2B 4ab04e3588beb88070f127e54c8bcb5c32bb32bfbebe83b518b3d99e4f961de429334dbe948cbfb87f9f831991e45b2cb7fb44d3eae0478c0d5cb6d62d5eb5f4 SHA512 f17e23f6e2ebd1de1bef373a02b23e30c714c077d51566f73f67e6183b97162c8444064db2fd95778e5f61fdc4a35faee403101dc2803e66bbcf3bf59c587ed1 EBUILD narray-0.6.1.2.ebuild 1278 BLAKE2B 589c8fc8f27e997a1e4dbb5d88087c71b5656b2288664377917142cd1686c1d2eb0f03acbc07431106cf2bcd08301ec16a302ec9d3cd77d734ab0c6652c78638 SHA512 5981c8a4b94c95eb7d3f14755713b52bb5f913598ff63a80fc3cee08e93f75c90188b69deec71309e4d55f44b11b1d1f40a06e78f4182a31cf5e2f8030b7afa9 MISC metadata.xml 340 BLAKE2B 6c255c48b2c01b92dea7b9f2ab2e6f2d119d0624650d1354fa2335db7ca2200e63bfc5f0dc383ebafe99ab3830d570a89b4fb04fa1a7fee913f25f7cfde3852e SHA512 4f57e3d54e985f412d93d434f6ea0ac1b72a136cb8b9b6476950e7e567542cb8eeebe1fc5b8fd2d9c2c9bb9351a1e744dc01c1b0bb8f32d1d8c9d21a3c134e83 diff --git a/dev-ruby/narray/narray-0.6.1.2-r1.ebuild b/dev-ruby/narray/narray-0.6.1.2-r1.ebuild new file mode 100644 index 000000000000..009d7058af8e --- /dev/null +++ b/dev-ruby/narray/narray-0.6.1.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="ChangeLog README.md README.ja.md SPEC.en.txt SPEC.ja.txt" + +RUBY_FAKEGEM_GEMSPEC="narray.gemspec" +RUBY_FAKEGEM_VERSION="${PV/_p/.}" + +inherit multilib ruby-fakegem + +DESCRIPTION="Numerical N-dimensional Array class" +HOMEPAGE="https://masa16.github.io/narray/" +SRC_URI="https://github.com/masa16/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" + +IUSE="" + +all_ruby_prepare() { + # the tests aren't really written to be a testsuite, so the + # failure cases will literally fail; ignore all of those and + # instead expect that the rest won't fail. + sed -i -e '/[fF]ollowing will fail/,$ s:^:#:' \ + -e '/next will fail/,$ s:^:#:' \ + test/*.rb || die "sed failed" + + sed -i -e 's:src/narray.h:narray.h:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_configure() { + ${RUBY} extconf.rb || die "extconf.rb failed" +} + +each_ruby_compile() { + emake V=1 CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" + cp -l ${PN}$(get_modname) ${PN}.h ${PN}_config.h lib/ || die "copy of ${PN}$(get_modname) failed" +} + +each_ruby_test() { + for unit in test/*; do + ${RUBY} -Ilib ${unit} || die "test ${unit} failed" + done +} -- cgit v1.2.3