diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-18 12:47:06 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-18 12:47:06 +0000 |
commit | 1fe6353cbc1a0410970860f8c7b909835d0612bc (patch) | |
tree | f05ecb93424ab6ff7584282918c2a479607512fc /dev-ruby/narray | |
parent | x86 stable wrt bug #320247 (diff) | |
download | gentoo-2-1fe6353cbc1a0410970860f8c7b909835d0612bc.tar.gz gentoo-2-1fe6353cbc1a0410970860f8c7b909835d0612bc.tar.bz2 gentoo-2-1fe6353cbc1a0410970860f8c7b909835d0612bc.zip |
Version bump, using the latest non-gem sources, but using fakegem to make this appear as the latest gem available; now properly depend on Ruby (bug #320341), support Ruby 1.9, run at least a partial testsuite, install only the needed files. Also remove older unneeded versions.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/narray')
-rw-r--r-- | dev-ruby/narray/ChangeLog | 13 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.5.7_p2.ebuild | 32 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.5.9.ebuild | 24 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.5.9_p7.ebuild | 64 |
4 files changed, 75 insertions, 58 deletions
diff --git a/dev-ruby/narray/ChangeLog b/dev-ruby/narray/ChangeLog index b11aef4aefa0..bb17d15029ca 100644 --- a/dev-ruby/narray/ChangeLog +++ b/dev-ruby/narray/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-ruby/narray -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/ChangeLog,v 1.39 2009/12/20 13:43:04 graaff Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/ChangeLog,v 1.40 2010/05/18 12:47:06 flameeyes Exp $ + +*narray-0.5.9_p7 (18 May 2010) + + 18 May 2010; Diego E. Pettenò <flameeyes@gentoo.org> + -narray-0.5.7_p2.ebuild, -narray-0.5.9.ebuild, +narray-0.5.9_p7.ebuild: + Version bump, using the latest non-gem sources, but using fakegem to make + this appear as the latest gem available; now properly depend on Ruby (bug + #320341), support Ruby 1.9, run at least a partial testsuite, install only + the needed files. Also remove older unneeded versions. 20 Dec 2009; Hans de Graaff <graaff@gentoo.org> narray-0.5.7_p2.ebuild, narray-0.5.9.ebuild, narray-0.5.9_p6.ebuild: diff --git a/dev-ruby/narray/narray-0.5.7_p2.ebuild b/dev-ruby/narray/narray-0.5.7_p2.ebuild deleted file mode 100644 index 8774e80734ff..000000000000 --- a/dev-ruby/narray/narray-0.5.7_p2.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/narray-0.5.7_p2.ebuild,v 1.14 2009/12/20 13:43:04 graaff Exp $ - -inherit ruby - -MY_P=${P/_/} - -DESCRIPTION="Numerical N-dimensional Array class" -HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html" -SRC_URI="http://www.ir.isas.ac.jp/~masa/ruby/dist/${MY_P}.tar.gz" - -LICENSE="Ruby" -SLOT="0" -KEYWORDS="alpha hppa ia64 mips ppc sparc x86" - -IUSE="" -USE_RUBY="ruby18" - -S="${WORKDIR}/${MY_P}" - -src_compile() { - ruby extconf.rb || die - emake || die -} - -src_install() { - local ARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG["archdir"]'` - make DESTDIR="${D}" hdrdir=${ARCHDIR} install || die - - dodoc ChangeLog README.* SPEC.* -} diff --git a/dev-ruby/narray/narray-0.5.9.ebuild b/dev-ruby/narray/narray-0.5.9.ebuild deleted file mode 100644 index ab942ae63dfb..000000000000 --- a/dev-ruby/narray/narray-0.5.9.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/narray-0.5.9.ebuild,v 1.12 2009/12/20 13:43:04 graaff Exp $ - -DESCRIPTION="Numerical N-dimensional Array class" -HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html" -SRC_URI="http://rubyforge.org/frs/download.php/12235/${P}.tar.gz" - -LICENSE="Ruby" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" - -USE_RUBY="ruby18" -IUSE="" - -src_compile() { - ruby extconf.rb || die - emake || die -} - -src_install() { - make exec_prefix=/usr DESTDIR="${D}" install || die - dodoc ChangeLog README.* SPEC.* -} diff --git a/dev-ruby/narray/narray-0.5.9_p7.ebuild b/dev-ruby/narray/narray-0.5.9_p7.ebuild new file mode 100644 index 000000000000..9cc280a3be03 --- /dev/null +++ b/dev-ruby/narray/narray-0.5.9_p7.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/narray-0.5.9_p7.ebuild,v 1.1 2010/05/18 12:47:06 flameeyes Exp $ + +EAPI=2 + +# jruby → native extension +USE_RUBY="ruby18 ruby19" + +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 ruby-fakegem + +DESCRIPTION="Numerical N-dimensional Array class" +HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html" +SRC_URI="mirror://rubyforge/${PN}/${P/_/}.tar.gz" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +IUSE="" + +S="${WORKDIR}/${P/_/}" + +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:^:#:' \ + "${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}" || die "emake failed" + cp -l ${PN}.so lib || die "copy of ${PN}.so 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 +} + +each_ruby_install() { + each_fakegem_install +} + +all_ruby_install() { + all_fakegem_install +} |