summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-12-15 08:03:16 +0100
committerHans de Graaff <graaff@gentoo.org>2017-12-15 08:04:11 +0100
commit6cf7bc7440e2aaadabc0b365e69228c8120df8bf (patch)
treeb6a31d9595ebf6b6f93cb4e9a1252e391844e7db /dev-ruby/rb-gsl
parentdev-ruby/rb-gsl: fix compilation (diff)
downloadgentoo-6cf7bc7440e2aaadabc0b365e69228c8120df8bf.tar.gz
gentoo-6cf7bc7440e2aaadabc0b365e69228c8120df8bf.tar.bz2
gentoo-6cf7bc7440e2aaadabc0b365e69228c8120df8bf.zip
dev-ruby/rb-gsl: add 2.1.0.2
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/rb-gsl')
-rw-r--r--dev-ruby/rb-gsl/Manifest1
-rw-r--r--dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rb-gsl/Manifest b/dev-ruby/rb-gsl/Manifest
index ccf617af4294..7c62f1368047 100644
--- a/dev-ruby/rb-gsl/Manifest
+++ b/dev-ruby/rb-gsl/Manifest
@@ -1,2 +1,3 @@
DIST gsl-1.16.0.6.gem 594944 BLAKE2B 2e14c4721ed22de6ec6c289e849c390c824739dc9722b19b0c6a75d04abab125f9d62c4f76d4f36e3d92959c3d89de8aa063ab9e4c75b1a727112e98c3a1fd53 SHA512 99610ef7e9b57c29f1972c4cb2853642157660b885a0a9761876c649badeb02dace7f0191453ce63d1a7f59bc3ee89fb61a73ae71522b5430f7916a60c4d1490
DIST gsl-2.1.0.1.gem 729600 BLAKE2B 6b1046ea226f18de687fbe7dcc517df7e35bcd30f49c6b7cc1abb366645735110e30bd6ab2c31c89a497a3c1c94a1b62648300dd98f6b4a7c59c0cb300a0fd17 SHA512 e07056b9989f5dd8ee06df02cf548607ae06af1e347eec7c5a50ad69bac51ab642b10d5b7e8bbd8d77666aba9cf6985145ac3b23d02489ed616bfa884dbf96f4
+DIST gsl-2.1.0.2.gem 735232 BLAKE2B bb8aa488b5d3bf7c2f3facf34093c985c63bfe692933b21eb8273af38e6788691593bdcc6fd52b9e22635d1b8195f81d1302edab7c2915a19ce9574cab184d84 SHA512 c07adfb44980ca813e114db2b0917f6b2dcb7d3bbe0ccfd9561519b4e574991f3c72f3e7115218f473154690f9284bf89c968d3c6d52d29fa0a232a1160d2704
diff --git a/dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild b/dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild
new file mode 100644
index 000000000000..cf1a14286ed6
--- /dev/null
+++ b/dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_NAME="gsl"
+inherit ruby-fakegem multilib
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README.md"
+
+DESCRIPTION="Ruby interface to GNU Scientific Library"
+HOMEPAGE="https://github.com/SciRuby/rb-gsl"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+DEPEND+=" >=sci-libs/gsl-2.3[deprecated]"
+RDEPEND+=" >=sci-libs/gsl-2.3[deprecated]"
+
+RUBY_S="${PN}-${P}"
+
+ruby_add_bdepend "dev-ruby/narray"
+ruby_add_rdepend "dev-ruby/narray"
+
+all_ruby_prepare() {
+ sed -i -e '/LOCAL_LIBS/ s: -l: -L#{path.gsub("ext", "lib")} -l:' ext/gsl_native/extconf.rb || die
+ # nmatrix only tests
+ rm -r test/gsl/nmatrix_tests || die
+}
+
+each_ruby_configure() {
+ NARRAY=1 ${RUBY} -Cext/gsl_native extconf.rb || die
+ sed -i -e 's:-Wl,--no-undefined::' ext/gsl_native/Makefile || die
+}
+
+each_ruby_compile() {
+ NARRAY=1 emake -Cext/gsl_native V=1
+ cp ext/gsl_native/*$(get_modname) lib/ || die
+}
+
+each_ruby_test() {
+ NARRAY=1 ${RUBY} -Ilib:test:. -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
+}