Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/narray: narray-0.6.0.8-r2.ebuild ChangeLog
Date: Sat, 03 May 2014 23:31:28
Message-Id: 20140503233125.5C8D22004C@flycatcher.gentoo.org
1 mrueg 14/05/03 23:31:25
2
3 Modified: ChangeLog
4 Added: narray-0.6.0.8-r2.ebuild
5 Log:
6 Add ruby21 target.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.64 dev-ruby/narray/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/narray/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/narray/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/narray/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/narray/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 5 Apr 2014 14:26:57 -0000 1.63
24 +++ ChangeLog 3 May 2014 23:31:25 -0000 1.64
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/narray
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/ChangeLog,v 1.63 2014/04/05 14:26:57 mrueg Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/ChangeLog,v 1.64 2014/05/03 23:31:25 mrueg Exp $
30 +
31 +*narray-0.6.0.8-r2 (03 May 2014)
32 +
33 + 03 May 2014; Manuel Rüger <mrueg@g.o> +narray-0.6.0.8-r2.ebuild:
34 + Add ruby21 target.
35
36 05 Apr 2014; Manuel Rüger <mrueg@g.o> narray-0.6.0.1-r2.ebuild,
37 narray-0.6.0.8-r1.ebuild:
38
39
40
41 1.1 dev-ruby/narray/narray-0.6.0.8-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/narray/narray-0.6.0.8-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/narray/narray-0.6.0.8-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: narray-0.6.0.8-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/narray-0.6.0.8-r2.ebuild,v 1.1 2014/05/03 23:31:25 mrueg Exp $
51
52 EAPI=5
53
54 # jruby → native extension
55 USE_RUBY="ruby19 ruby20 ruby21"
56
57 RUBY_FAKEGEM_TASK_TEST=""
58 RUBY_FAKEGEM_TASK_DOC=""
59
60 RUBY_FAKEGEM_EXTRADOC="ChangeLog README.en README.ja SPEC.en SPEC.ja"
61
62 RUBY_FAKEGEM_VERSION="${PV/_p/.}"
63
64 inherit multilib ruby-fakegem
65
66 DESCRIPTION="Numerical N-dimensional Array class"
67 HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html"
68 SRC_URI="https://github.com/masa16/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
69
70 LICENSE="Ruby"
71 SLOT="0"
72 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86"
73
74 IUSE=""
75
76 RUBY_PATCHES=( "${FILESDIR}"/${P}-fix-tests.patch )
77
78 all_ruby_prepare() {
79 # the tests aren't really written to be a testsuite, so the
80 # failure cases will literally fail; ignore all of those ad
81 # instead expect that the rest won't fail.
82 sed -i -e '/[fF]ollowing will fail/,$ s:^:#:' \
83 -e '/next will fail/,$ s:^:#:' \
84 test/*.rb || die "sed failed"
85 }
86
87 each_ruby_configure() {
88 ${RUBY} extconf.rb || die "extconf.rb failed"
89 }
90
91 each_ruby_compile() {
92 emake CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
93 cp -l ${PN}$(get_modname) ${PN}.h ${PN}_config.h lib/ || die "copy of ${PN}$(get_modname) failed"
94 }
95
96 each_ruby_test() {
97 for unit in test/*; do
98 # Skip over the FFTW test because it needs a package we don't
99 # have in tree.
100 [[ ${unit} == test/testfftw.rb ]] && continue
101
102 ${RUBY} -Ilib ${unit} || die "test ${unit} failed"
103 done
104 }