summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-10-26 06:11:42 +0200
committerHans de Graaff <graaff@gentoo.org>2021-10-26 06:11:42 +0200
commit2665ef304ff3be33197be349fbec7c527dd611df (patch)
treec8a9d1cf3f3a6dc6d21c3a6139f09fae8b1a4e4a /dev-ruby/matrix
parentdev-ruby/text-hyphen: add ruby30 (diff)
downloadgentoo-2665ef304ff3be33197be349fbec7c527dd611df.tar.gz
gentoo-2665ef304ff3be33197be349fbec7c527dd611df.tar.bz2
gentoo-2665ef304ff3be33197be349fbec7c527dd611df.zip
dev-ruby/matrix: import of 0.4.2
Extracted from dev-lang/ruby, keywords set accordingly. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/matrix')
-rw-r--r--dev-ruby/matrix/Manifest1
-rw-r--r--dev-ruby/matrix/matrix-0.4.2.ebuild27
-rw-r--r--dev-ruby/matrix/metadata.xml8
3 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/matrix/Manifest b/dev-ruby/matrix/Manifest
new file mode 100644
index 000000000000..9ce047fbe16f
--- /dev/null
+++ b/dev-ruby/matrix/Manifest
@@ -0,0 +1 @@
+DIST matrix-0.4.2.tar.gz 42649 BLAKE2B 03b7f3482d6d5a48c626fee824039c182a35242a2c25875e7cada4d781d1939ed780b5cbf8c45645d07c81e4f5d5c5559a1ec236a5152e095a60228e4ed3c59e SHA512 b47d1d662acdca703afd323fe9293726e051b0ef87162ff45c26c62fad2f3158f71d943f36f7c6706702885e2fdea8483b37ee45f25295225e86dec5f88590a4
diff --git a/dev-ruby/matrix/matrix-0.4.2.ebuild b/dev-ruby/matrix/matrix-0.4.2.ebuild
new file mode 100644
index 000000000000..38bbfcb2f54d
--- /dev/null
+++ b/dev-ruby/matrix/matrix-0.4.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An implementation of Matrix and Vector classes"
+HOMEPAGE="https://github.com/ruby/matrix"
+SRC_URI="https://github.com/ruby/matrix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="$(ver_cut 1)"
+
+all_ruby_prepare() {
+ sed -i -e 's:require_relative ":require "./:' -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e '/bundler/I s:^:#:' Rakefile || die
+}
diff --git a/dev-ruby/matrix/metadata.xml b/dev-ruby/matrix/metadata.xml
new file mode 100644
index 000000000000..7a38fd1850ff
--- /dev/null
+++ b/dev-ruby/matrix/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+</pkgmetadata>