From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-ruby/rb-gsl/Manifest | 3 +++ dev-ruby/rb-gsl/metadata.xml | 11 ++++++++ dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild | 47 +++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 dev-ruby/rb-gsl/Manifest create mode 100644 dev-ruby/rb-gsl/metadata.xml create mode 100644 dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild (limited to 'dev-ruby/rb-gsl') diff --git a/dev-ruby/rb-gsl/Manifest b/dev-ruby/rb-gsl/Manifest new file mode 100644 index 000000000000..825026d56386 --- /dev/null +++ b/dev-ruby/rb-gsl/Manifest @@ -0,0 +1,3 @@ +DIST gsl-2.1.0.2.gem 735232 BLAKE2B bb8aa488b5d3bf7c2f3facf34093c985c63bfe692933b21eb8273af38e6788691593bdcc6fd52b9e22635d1b8195f81d1302edab7c2915a19ce9574cab184d84 SHA512 c07adfb44980ca813e114db2b0917f6b2dcb7d3bbe0ccfd9561519b4e574991f3c72f3e7115218f473154690f9284bf89c968d3c6d52d29fa0a232a1160d2704 +EBUILD rb-gsl-2.1.0.2.ebuild 1167 BLAKE2B 7fe8d990dfdcf1f364844525c74d8609d297edade0f7bf9c34c9db361e014d2a027a4b3dacc07cd28dfc56819f7376a3def39f9e21ae422a99ed35ff4201f5e4 SHA512 b4381a610b52282f0eea10915660aa420c73c99a23f3db78fa929eaa1d05e5e70a1c9287135427e40a5748ecb3491baf871a6fdb2a56f538fd45e80c4e82cf4d +MISC metadata.xml 340 BLAKE2B 768b125254ab2e25701a50e2735aa8d25a128d27ef4dcec356206519f0f017d77b3ef8e75cd2a519d74ec1574404004ad09582a872493fcf9f740379eed4dc79 SHA512 1278dd12be4197ef7d217b0106af35cd983878c36362445d09b6a76a61e0d7d1d0a04a5c84c76eceda98a60055659c366698f7faabae7e5d1a4004a1eb7e93cf diff --git a/dev-ruby/rb-gsl/metadata.xml b/dev-ruby/rb-gsl/metadata.xml new file mode 100644 index 000000000000..32e472e5de41 --- /dev/null +++ b/dev-ruby/rb-gsl/metadata.xml @@ -0,0 +1,11 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + SciRuby/rb-gsl + + 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..0408c68266b6 --- /dev/null +++ b/dev-ruby/rb-gsl/rb-gsl-2.1.0.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +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 +} -- cgit v1.2.3