From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-ruby/narray/Manifest | 1 + dev-ruby/narray/metadata.xml | 12 +++++++++ dev-ruby/narray/narray-0.6.1.2.ebuild | 49 +++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 dev-ruby/narray/Manifest create mode 100644 dev-ruby/narray/metadata.xml create mode 100644 dev-ruby/narray/narray-0.6.1.2.ebuild (limited to 'dev-ruby/narray') diff --git a/dev-ruby/narray/Manifest b/dev-ruby/narray/Manifest new file mode 100644 index 000000000000..2cd737d4b671 --- /dev/null +++ b/dev-ruby/narray/Manifest @@ -0,0 +1 @@ +DIST narray-0.6.1.2.tar.gz 68621 BLAKE2B c4e48b81fb0d79cc49e32ed8204d9cac3f483eb44e1207f422f5b272bb8891836d81cd83c090f4d643677b1159801c13d15580504e6ca244a2a75d4b6dfb3204 SHA512 51e9bec0b711e79e268b73496ad742b80bb46a6e9ea6aab9a2535a700b6efc8f7ae2e854f5772d434e3d385d81275744dbc796ebec4d3de73f2ec0546bd2339a diff --git a/dev-ruby/narray/metadata.xml b/dev-ruby/narray/metadata.xml new file mode 100644 index 000000000000..0c24230f49dc --- /dev/null +++ b/dev-ruby/narray/metadata.xml @@ -0,0 +1,12 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + masa16/narray + + gentoo-staging + diff --git a/dev-ruby/narray/narray-0.6.1.2.ebuild b/dev-ruby/narray/narray-0.6.1.2.ebuild new file mode 100644 index 000000000000..7ad3e23d174a --- /dev/null +++ b/dev-ruby/narray/narray-0.6.1.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby24 ruby25 ruby26 ruby27" + +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_VERSION="${PV/_p/.}" + +inherit multilib ruby-fakegem + +DESCRIPTION="Numerical N-dimensional Array class" +HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html" +SRC_URI="https://github.com/masa16/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="amd64 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" +} + +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.3.1