mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
dev-ruby/narray: cleanup
Package-Manager: portage-2.2.26
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST narray-0.6.0.8.tar.gz 68519 SHA256 0e7ec5d8554ad273ef74b3513d297e60769373fd8b258cfb2afcdd7b8320d642 SHA512 a2f194c0baea7c561d1ef70554e6d568876dd7192506c1e5432bcaccabae03a3e842e73d9cbccd110ac8924d86d18c559109244e302a4ad8aaa3acf304dd4618 WHIRLPOOL 8f722ac74f66759521bf467db3d5266538ab99b959ccbaa1c53d3ef26dab365996d34b37e65c49c739b1b0fecaeb72b0974bd7db897b3132caf3a29600ff8573
|
||||
DIST narray-0.6.0.9.tar.gz 68431 SHA256 54456689c3ed81a156a7d0a613369d271805761306653ca9fae6f68b9e1b442a SHA512 0da5a76582bc6226f6d8d087aaf6593fd6338d0d1f124f7707ebc7c2d296b098c553115ba0380af7b3b0b1afef9c1e7c4424cabe32604a22bc6616296deeb108 WHIRLPOOL b09c0b46616320909cdac4784cb5040e8086b5f6644755d529361754de63008d1dfeac7691d0ac0a8304603c7655886b131fd8eb7644d7c1305d777a46d7bd98
|
||||
DIST narray-0.6.1.1.tar.gz 68536 SHA256 7c2f415666c834d982cba97de3bbda9160e76358c62f8f754cd0d11e90e95ed6 SHA512 1c9983d29c774cb61b7f8ec53290d427c123b648d88407ff4a2e2aef1a289267050d4846adfc00c075629cb228ed5b3d4f9f5ded4cded0b84ec1a5532cbb49ff WHIRLPOOL cdfdc8050daafb10629228bac4bc146a2d8b3461d3c365207ee1112e5f226da82183450f28b98fce98719ae10fbfd31c76ec6567d40e0cf63efe89f018c5db8a
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# jruby → native extension
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="ChangeLog README.en README.ja SPEC.en SPEC.ja"
|
||||
|
||||
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=""
|
||||
|
||||
RUBY_PATCHES=( "${FILESDIR}"/${P}-fix-tests.patch )
|
||||
|
||||
all_ruby_prepare() {
|
||||
# the tests aren't really written to be a testsuite, so the
|
||||
# failure cases will literally fail; ignore all of those ad
|
||||
# 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 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
|
||||
# Skip over the FFTW test because it needs a package we don't
|
||||
# have in tree.
|
||||
[[ ${unit} == test/testfftw.rb ]] && continue
|
||||
|
||||
${RUBY} -Ilib ${unit} || die "test ${unit} failed"
|
||||
done
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# jruby → native extension
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
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
|
||||
# Skip over the FFTW test because it needs a package we don't
|
||||
# have in tree.
|
||||
[[ ${unit} == test/testfftw.rb ]] && continue
|
||||
|
||||
${RUBY} -Ilib ${unit} || die "test ${unit} failed"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user