diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/rb-gsl |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/rb-gsl')
-rw-r--r-- | dev-ruby/rb-gsl/Manifest | 8 | ||||
-rw-r--r-- | dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch | 26 | ||||
-rw-r--r-- | dev-ruby/rb-gsl/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild | 45 | ||||
-rw-r--r-- | dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild | 48 |
5 files changed, 138 insertions, 0 deletions
diff --git a/dev-ruby/rb-gsl/Manifest b/dev-ruby/rb-gsl/Manifest new file mode 100644 index 000000000000..9e00d65dc186 --- /dev/null +++ b/dev-ruby/rb-gsl/Manifest @@ -0,0 +1,8 @@ +AUX rb-gsl-2.1.0.1-narray-superclass.patch 609 SHA256 dccfd9c11ecd9e93962c4bc5f7e51124e0ea0ece5eeda0230c5bc7f95baac6b1 SHA512 2d98ca48f0db55126a49abd1dc42c5e5afdfeaa5a6029ee3f7478211f5bba03595626d485e109f6210be92a4da717ab8c0def2fa150b356e11a45c5f3ec24a2e WHIRLPOOL 54bcf339a7d4ca0922a29b44cdd6e75dbff48507cb96a9538e8b5e07b48a691aedddd1cf6aaa9839a4c2f6f9ce7fbcfaed585a70c0c7752b2ce04d61af5e878f +DIST gsl-1.16.0.6.gem 594944 SHA256 3fa354277d68a729e239a8c9eb3408f2978a444b7da3708cff120a9cb69cdcff SHA512 99610ef7e9b57c29f1972c4cb2853642157660b885a0a9761876c649badeb02dace7f0191453ce63d1a7f59bc3ee89fb61a73ae71522b5430f7916a60c4d1490 WHIRLPOOL e2b0c71e5262242586e02ffba632978057a0a467171974a0acab9e43e0f268741815b93a43a573dbffa56fe8448b95d909622207dba2f52ecb231d92abc648b2 +DIST gsl-2.1.0.1.gem 729600 SHA256 3701f85cc161c454e4876cc805200cf0973192ab52e808ba6230ab3d08fd64f1 SHA512 e07056b9989f5dd8ee06df02cf548607ae06af1e347eec7c5a50ad69bac51ab642b10d5b7e8bbd8d77666aba9cf6985145ac3b23d02489ed616bfa884dbf96f4 WHIRLPOOL 8afc8ba125b9e17d46495dcc4c8f58ea3cce77524ee40bce23be0016ccea5d502eaa81e05e28496f7e8764372f3df37812eaebde2cdcd91e82dfa8c70905ef5b +EBUILD rb-gsl-1.16.0.6.ebuild 1063 SHA256 e1f6058d25b48f8a0213f696155d0c72cf8b9a2c6121b8fe01fdb44210e58af8 SHA512 6c0d80df657a11fc71857a46431f51209a7b920f34bddac485fc5c80c7dcd3e46d0cedb70892c24be5e0f79429f13f30da470db9780228e70c4e9fbad1a087c1 WHIRLPOOL 932327e48e18a0e94459d85c446ad9427dfb5b07c9f9c1c6df23f3663ac084a114a17fe5b0a7fcc2d43b86908d4f70e8c3799d302c08f738f4c5a851c6b7fa1e +EBUILD rb-gsl-2.1.0.1.ebuild 1154 SHA256 9670975c36e9721f86618bb1abed3adeba39646ce5926039d51405c4e23f1b4e SHA512 693507d4cc76c50d13bc98035c7b44d69dca2201d14de81e592c0cd1423e4de13fc63d38e499e7ae66dc9d5c9869d06422f5ac530df1affbdfb5a31f2b869cb9 WHIRLPOOL d93b2c1e5fc915e516c064812655d486652683a5ccc64650f192f782b8173819566ca1826263ae9185aa32e89405fb579911495d525cf6ab58c9c88d0dac51a9 +MISC ChangeLog 3390 SHA256 b8e0b95c368e681f869bf0466e7eeb2b3bed515c5cfaeb122c00b89a6eaa2776 SHA512 8185f212ed20c25dd2467cab1f73946eb03a33abaf50d16d370cd0ad8877915e4704ca007bdcc5e88ba50db7b2253cb8aaa7bccedf31339f9e3aec8207b719f5 WHIRLPOOL 36ff58b2621ca280b37b0091c064e1ddfb9cef79750aa4334077cfcd30a14be23d7fd16386d4d4922708bad0b20b43a8d330cb5f335f26865fd1afabe07bb5f3 +MISC ChangeLog-2015 1936 SHA256 c230126ddec5d0733a8f01a8d9169b9e3b3a6fddfc09a37a432f65404221c492 SHA512 3c4ee7cd70168a8a3bd1eddbdddc962d41f6d87eeeb3e541aea8d0cc655b621116cb59ce42a6f4b8b1e75b4edf7819dd631196f321546647fcbc80bbc6902b07 WHIRLPOOL ac5c0a877952200de048cb53b994b30012f83130825dbce1b80b7e017e89d52521a0d50bf01197f56a7429d0818e1c8f3dcddc0d625863e8ac8903c9085b62d9 +MISC metadata.xml 340 SHA256 7923c198bb39bd0ce84a29936397456f4ea0a9c88d89f91c0d398c2a2ef4425f SHA512 1278dd12be4197ef7d217b0106af35cd983878c36362445d09b6a76a61e0d7d1d0a04a5c84c76eceda98a60055659c366698f7faabae7e5d1a4004a1eb7e93cf WHIRLPOOL d0eac03af0c129c63a7cc747777b54137b4e2ac9397ff62e46c2812528676bb148f6c6d991f1c69e9ce95dccfeab47f6495574181623bad09e3bfd2c73c3d6b8 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 new file mode 100644 index 000000000000..4af8042452f1 --- /dev/null +++ b/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch @@ -0,0 +1,26 @@ +From 9e0c9e6f0a509b39c68fbaf6657260c6b122bb1b Mon Sep 17 00:00:00 2001 +From: Sameer Deshmukh <sameer.deshmukh93@gmail.com> +Date: Thu, 12 May 2016 04:57:06 +0530 +Subject: [PATCH] fix narray superclass mismatch problem + +--- + lib/gsl.rb | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/gsl.rb b/lib/gsl.rb +index 3c67741..aba8f2d 100644 +--- a/lib/gsl.rb ++++ b/lib/gsl.rb +@@ -1,10 +1,10 @@ + begin +- require 'narray' ++ require 'narray' if ENV['NARRAY'] + rescue LoadError + end + + begin +- require 'nmatrix/nmatrix' ++ require 'nmatrix/nmatrix' if ENV['NMATRIX'] + rescue LoadError + end + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">SciRuby/rb-gsl</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild b/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild new file mode 100644 index 000000000000..58ba4fa9cdf4 --- /dev/null +++ b/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_NAME="gsl" +inherit ruby-fakegem multilib + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="ChangeLog README.md" + +RUBY_FAKEGEM_TASK_TEST="test:libs" +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-1.15 <sci-libs/gsl-2.1" +RDEPEND+=" >=sci-libs/gsl-1.15 <sci-libs/gsl-2.1" + +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("src", "lib")} -l:' ext/gsl_native/extconf.rb || die +} + +each_ruby_configure() { + ${RUBY} -Cext/gsl_native extconf.rb || die +} + +each_ruby_compile() { + emake -Cext/gsl_native V=1 + cp ext/gsl_native/*$(get_modname) lib/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die +} 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 new file mode 100644 index 000000000000..9a971a876899 --- /dev/null +++ b/dev-ruby/rb-gsl/rb-gsl-2.1.0.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +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_PATCHES=( "${FILESDIR}"/${P}-narray-superclass.patch ) + +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 +} + +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 +} |