diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-ruby/narray | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-ruby/narray')
-rw-r--r-- | dev-ruby/narray/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch | 69 | ||||
-rw-r--r-- | dev-ruby/narray/metadata.xml | 9 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.6.0.8-r1.ebuild | 57 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.6.0.8-r2.ebuild | 57 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.6.0.9.ebuild | 55 | ||||
-rw-r--r-- | dev-ruby/narray/narray-0.6.1.1.ebuild | 51 |
7 files changed, 301 insertions, 0 deletions
diff --git a/dev-ruby/narray/Manifest b/dev-ruby/narray/Manifest new file mode 100644 index 000000000000..ed234aea69b7 --- /dev/null +++ b/dev-ruby/narray/Manifest @@ -0,0 +1,3 @@ +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 diff --git a/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch b/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch new file mode 100644 index 000000000000..1e3b6ed6ae88 --- /dev/null +++ b/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch @@ -0,0 +1,69 @@ +From c56dc59527f0681dae7175b2fcab1fe534444f52 Mon Sep 17 00:00:00 2001 +From: Masahiro TANAKA <masa16.tanaka@gmail.com> +Date: Thu, 9 May 2013 16:47:50 +0900 +Subject: [PATCH] fix tests for change in Complex class + +--- + test/testcomplex.rb | 4 ++-- + test/testmath.rb | 8 ++++---- + test/testpow.rb | 4 ++-- + 3 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/test/testcomplex.rb b/test/testcomplex.rb +index 7be2e18..8a6346d 100644 +--- a/test/testcomplex.rb ++++ b/test/testcomplex.rb +@@ -10,8 +10,8 @@ def testop(a,b) + print "a**b = "; p a**b + end + +-a = NArray.complex(4,1).indgen!.sbt!(-1) + 0.25.im +-b = NArray.complex(1,3).indgen!.add!(-0.5).mul!(0.5.im) ++a = NArray.complex(4,1).indgen!.sbt!(-1) + Complex(0,0.25) ++b = NArray.complex(1,3).indgen!.add!(-0.5).mul!(Complex(0,0.5)) + testop(a,b) + + # compare a/b with real-number operation +diff --git a/test/testmath.rb b/test/testmath.rb +index 0bf70d3..0aaf089 100644 +--- a/test/testmath.rb ++++ b/test/testmath.rb +@@ -4,10 +4,10 @@ + def pr x + x.each{|i| + if i.kind_of?(Complex) +- printf("%.3f%+.3fi ",i.real,i.image) ++ printf("%.3f%+.3fi ",i.real,i.imag) + else + printf("%.3f ",i) +- end ++ end + } + print "\n" + end +@@ -44,5 +44,5 @@ def testmath(x) + testmath NArray.sfloat(6).indgen.div!(2) + testmath NArray.float(6).indgen.div!(2) + +-testmath NArray.scomplex(6).indgen.div!(2)-2 - 1.im +-testmath NArray.complex(6).indgen!/5-0.5# - 0.3.im ++testmath NArray.scomplex(6).indgen.div!(2)-2 - Complex(0,1) ++testmath NArray.complex(6).indgen!/5-0.5# - Complex(0,0.3) +diff --git a/test/testpow.rb b/test/testpow.rb +index 17f81d1..e7360e8 100644 +--- a/test/testpow.rb ++++ b/test/testpow.rb +@@ -7,8 +7,8 @@ def test a + p a**[[-3],[0],[7]] + puts 'a**[[-3.0],[0],[7.0]] = ' + p a**[[-3.0],[0],[7.0]] +- puts 'a**(1+0.im) = ' +- p a**(1+0.im) ++ puts 'a**Complex(1,0) = ' ++ p a**Complex(1,0) + puts 'a**1.0 = ' + p a**1.0 + puts +-- +1.8.1.6 + diff --git a/dev-ruby/narray/metadata.xml b/dev-ruby/narray/metadata.xml new file mode 100644 index 000000000000..d8ddaada3468 --- /dev/null +++ b/dev-ruby/narray/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ruby</herd> + <upstream> + <remote-id type="rubyforge">narray</remote-id> + <remote-id type="github">masa16/narray</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/narray/narray-0.6.0.8-r1.ebuild b/dev-ruby/narray/narray-0.6.0.8-r1.ebuild new file mode 100644 index 000000000000..27532e003dd6 --- /dev/null +++ b/dev-ruby/narray/narray-0.6.0.8-r1.ebuild @@ -0,0 +1,57 @@ +# 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" + +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 +} diff --git a/dev-ruby/narray/narray-0.6.0.8-r2.ebuild b/dev-ruby/narray/narray-0.6.0.8-r2.ebuild new file mode 100644 index 000000000000..6d2e9060acf1 --- /dev/null +++ b/dev-ruby/narray/narray-0.6.0.8-r2.ebuild @@ -0,0 +1,57 @@ +# 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 +} diff --git a/dev-ruby/narray/narray-0.6.0.9.ebuild b/dev-ruby/narray/narray-0.6.0.9.ebuild new file mode 100644 index 000000000000..d0267a82f5fb --- /dev/null +++ b/dev-ruby/narray/narray-0.6.0.9.ebuild @@ -0,0 +1,55 @@ +# 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 +} diff --git a/dev-ruby/narray/narray-0.6.1.1.ebuild b/dev-ruby/narray/narray-0.6.1.1.ebuild new file mode 100644 index 000000000000..d69b8bfc5fb5 --- /dev/null +++ b/dev-ruby/narray/narray-0.6.1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# jruby → native extension +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +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 +} |