Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rb-gsl/files/, dev-ruby/rb-gsl/
Date: Fri, 23 Dec 2016 21:29:25
Message-Id: 1482528539.cc1a4c1e750bd9fed55c16abf08b85ca8a3d6313.mrueg@gentoo
1 commit: cc1a4c1e750bd9fed55c16abf08b85ca8a3d6313
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 23 16:25:05 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 23 21:28:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc1a4c1e
7
8 dev-ruby/rb-gsl: Version bump to 2.1.0.1
9
10 Package-Manager: portage-2.3.3
11
12 dev-ruby/rb-gsl/Manifest | 1 +
13 .../files/rb-gsl-2.1.0.1-narray-superclass.patch | 26 ++++++++++++
14 dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild | 49 ++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/dev-ruby/rb-gsl/Manifest b/dev-ruby/rb-gsl/Manifest
18 index fbeac69..1f7beaf 100644
19 --- a/dev-ruby/rb-gsl/Manifest
20 +++ b/dev-ruby/rb-gsl/Manifest
21 @@ -1 +1,2 @@
22 DIST gsl-1.16.0.6.gem 594944 SHA256 3fa354277d68a729e239a8c9eb3408f2978a444b7da3708cff120a9cb69cdcff SHA512 99610ef7e9b57c29f1972c4cb2853642157660b885a0a9761876c649badeb02dace7f0191453ce63d1a7f59bc3ee89fb61a73ae71522b5430f7916a60c4d1490 WHIRLPOOL e2b0c71e5262242586e02ffba632978057a0a467171974a0acab9e43e0f268741815b93a43a573dbffa56fe8448b95d909622207dba2f52ecb231d92abc648b2
23 +DIST gsl-2.1.0.1.gem 729600 SHA256 3701f85cc161c454e4876cc805200cf0973192ab52e808ba6230ab3d08fd64f1 SHA512 e07056b9989f5dd8ee06df02cf548607ae06af1e347eec7c5a50ad69bac51ab642b10d5b7e8bbd8d77666aba9cf6985145ac3b23d02489ed616bfa884dbf96f4 WHIRLPOOL 8afc8ba125b9e17d46495dcc4c8f58ea3cce77524ee40bce23be0016ccea5d502eaa81e05e28496f7e8764372f3df37812eaebde2cdcd91e82dfa8c70905ef5b
24
25 diff --git a/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch b/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch
26 new file mode 100644
27 index 00000000..4af8042
28 --- /dev/null
29 +++ b/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch
30 @@ -0,0 +1,26 @@
31 +From 9e0c9e6f0a509b39c68fbaf6657260c6b122bb1b Mon Sep 17 00:00:00 2001
32 +From: Sameer Deshmukh <sameer.deshmukh93@×××××.com>
33 +Date: Thu, 12 May 2016 04:57:06 +0530
34 +Subject: [PATCH] fix narray superclass mismatch problem
35 +
36 +---
37 + lib/gsl.rb | 4 ++--
38 + 1 file changed, 2 insertions(+), 2 deletions(-)
39 +
40 +diff --git a/lib/gsl.rb b/lib/gsl.rb
41 +index 3c67741..aba8f2d 100644
42 +--- a/lib/gsl.rb
43 ++++ b/lib/gsl.rb
44 +@@ -1,10 +1,10 @@
45 + begin
46 +- require 'narray'
47 ++ require 'narray' if ENV['NARRAY']
48 + rescue LoadError
49 + end
50 +
51 + begin
52 +- require 'nmatrix/nmatrix'
53 ++ require 'nmatrix/nmatrix' if ENV['NMATRIX']
54 + rescue LoadError
55 + end
56 +
57
58 diff --git a/dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild b/dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild
59 new file mode 100644
60 index 00000000..52f93c3
61 --- /dev/null
62 +++ b/dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild
63 @@ -0,0 +1,49 @@
64 +# Copyright 1999-2016 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +# $Id$
67 +
68 +EAPI=5
69 +USE_RUBY="ruby21 ruby22 ruby23"
70 +
71 +RUBY_FAKEGEM_NAME="gsl"
72 +inherit ruby-fakegem multilib
73 +
74 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
75 +RUBY_FAKEGEM_EXTRADOC="ChangeLog README.md"
76 +
77 +DESCRIPTION="Ruby interface to GNU Scientific Library"
78 +HOMEPAGE="https://github.com/SciRuby/rb-gsl"
79 +
80 +LICENSE="GPL-2"
81 +SLOT="0"
82 +KEYWORDS="~amd64"
83 +IUSE="doc"
84 +
85 +DEPEND+=" >=sci-libs/gsl-2.3[deprecated]"
86 +RDEPEND+=" >=sci-libs/gsl-2.3[deprecated]"
87 +
88 +RUBY_S="${PN}-${P}"
89 +
90 +RUBY_PATCHES=( "${FILESDIR}"/${P}-narray-superclass.patch )
91 +
92 +ruby_add_bdepend "dev-ruby/narray"
93 +ruby_add_rdepend "dev-ruby/narray"
94 +
95 +all_ruby_prepare() {
96 + sed -i -e '/LOCAL_LIBS/ s: -l: -L#{path.gsub("ext", "lib")} -l:' ext/gsl_native/extconf.rb || die
97 + # nmatrix only tests
98 + rm -r test/gsl/nmatrix_tests || die
99 +}
100 +
101 +each_ruby_configure() {
102 + NARRAY=1 ${RUBY} -Cext/gsl_native extconf.rb || die
103 +}
104 +
105 +each_ruby_compile() {
106 + NARRAY=1 emake -Cext/gsl_native V=1
107 + cp ext/gsl_native/*$(get_modname) lib/ || die
108 +}
109 +
110 +each_ruby_test() {
111 + NARRAY=1 ${RUBY} -Ilib:test:. -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
112 +}