summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2013-11-30 17:29:02 +0000
committerManuel Rüger <mrueg@gentoo.org>2013-11-30 17:29:02 +0000
commit620ce2dd143a72a10c9a24efc8217a971490d96d (patch)
treea72850c4d835d64700e8b36e96cb1a2882d6d4fd
parentUnmask multilib packages along with bumping emul-linux-x86-{base,sound}libs. (diff)
downloadgentoo-2-620ce2dd143a72a10c9a24efc8217a971490d96d.tar.gz
gentoo-2-620ce2dd143a72a10c9a24efc8217a971490d96d.tar.bz2
gentoo-2-620ce2dd143a72a10c9a24efc8217a971490d96d.zip
Initial ebuild.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
-rw-r--r--dev-ruby/rb-gsl/ChangeLog9
-rw-r--r--dev-ruby/rb-gsl/metadata.xml5
-rw-r--r--dev-ruby/rb-gsl/rb-gsl-1.15.3.ebuild47
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/rb-gsl/ChangeLog b/dev-ruby/rb-gsl/ChangeLog
new file mode 100644
index 000000000000..f0e9ee84f221
--- /dev/null
+++ b/dev-ruby/rb-gsl/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-ruby/rb-gsl
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rb-gsl/ChangeLog,v 1.1 2013/11/30 17:29:02 mrueg Exp $
+
+*rb-gsl-1.15.3 (30 Nov 2013)
+
+ 30 Nov 2013; Manuel Rüger <mrueg@gentoo.org> +metadata.xml,
+ +rb-gsl-1.15.3.ebuild:
+ Initial ebuild.
diff --git a/dev-ruby/rb-gsl/metadata.xml b/dev-ruby/rb-gsl/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/rb-gsl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/rb-gsl/rb-gsl-1.15.3.ebuild b/dev-ruby/rb-gsl/rb-gsl-1.15.3.ebuild
new file mode 100644
index 000000000000..de45cc3c30c2
--- /dev/null
+++ b/dev-ruby/rb-gsl/rb-gsl-1.15.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rb-gsl/rb-gsl-1.15.3.ebuild,v 1.1 2013/11/30 17:29:02 mrueg Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby interface to GNU Scientific Library"
+HOMEPAGE="http://rb-gsl.rubyforge.org/ https://github.com/david-macmahon/rb-gsl"
+SRC_URI="https://github.com/david-macmahon/${PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+DEPEND+=" sci-libs/gsl"
+RDEPEND+=" sci-libs/gsl"
+
+RUBY_S="${PN}-${P}"
+
+each_ruby_prepare() {
+ sed -e \
+ "/ruby -w -I/ s:#\truby -w *:${RUBY} -w -I ../../lib -I ../../ext -I . :" \
+ -e "/ruby -w \`basename/ s/^/# /" -i tests/run-test.sh || die
+ sed -i '/$CPPFLAGS =/a \$LDFLAGS = " -L#{narray_config} -l:narray.so "+$LDFLAGS' ext/extconf.rb || die
+ sed -i -e 's/qactual/actual/' tests/linalg/TDN.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} setup.rb config || die
+}
+
+each_ruby_compile() {
+ ${RUBY} setup.rb setup || die
+}
+
+each_ruby_install() {
+ ${RUBY} setup.rb install --prefix="${D}" || die
+}
+
+each_ruby_test() {
+ cd tests || die
+ ./run-test.sh || die
+}