commit:     83963b2c80da3ef23e6925a773e8606e8b1bddc3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  2 06:14:42 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Sep  2 06:18:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83963b2c

dev-ruby/bigdecimal: new package, add 3.1.4

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/bigdecimal/Manifest                |  1 +
 dev-ruby/bigdecimal/bigdecimal-3.1.4.ebuild | 31 +++++++++++++++++++++++++++++
 dev-ruby/bigdecimal/metadata.xml            | 11 ++++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-ruby/bigdecimal/Manifest b/dev-ruby/bigdecimal/Manifest
new file mode 100644
index 000000000000..8445b6e055ca
--- /dev/null
+++ b/dev-ruby/bigdecimal/Manifest
@@ -0,0 +1 @@
+DIST bigdecimal-3.1.4.tar.gz 115069 BLAKE2B 
7c7df4ceac6caa44414cf2fe4e16ee21b8d4a868097e5a6d3e7bdae8521b572b6facae5023fac28dafe9a659a93f0cb56ef2762f84b85959358ee9a33be687b1
 SHA512 
5e89906d4df0890d61ddca9cc88549acac6c94fc7267975a0ad8684855283c60a2f5fbd48051569c33fa513b6c25485d474446066911577f8cad00c26b57cd43

diff --git a/dev-ruby/bigdecimal/bigdecimal-3.1.4.ebuild 
b/dev-ruby/bigdecimal/bigdecimal-3.1.4.ebuild
new file mode 100644
index 000000000000..4370cfc03906
--- /dev/null
+++ b/dev-ruby/bigdecimal/bigdecimal-3.1.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTENSIONS=(ext/bigdecimal/extconf.rb)
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
+RUBY_FAKEGEM_GEMSPEC="bigdecimal.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Arbitrary-precision decimal floating-point number library for 
Ruby"
+HOMEPAGE="https://github.com/ruby/bigdecimal";
+SRC_URI="https://github.com/ruby/bigdecimal/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( Ruby-BSD BSD-2 )"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+SLOT="0"
+IUSE="test"
+
+all_ruby_prepare() {
+       sed -e '/^source_version/,/^end/ s:^:#:' \
+               -e "/s.version/ s/= source_version/= '${PV}'/" \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+       ${RUBY} -Ilib:test:. -rtest/lib/helper -e 
"Dir['test/**/test_*.rb'].each { require _1 }" || die
+}

diff --git a/dev-ruby/bigdecimal/metadata.xml b/dev-ruby/bigdecimal/metadata.xml
new file mode 100644
index 000000000000..2df3a2ecd5cf
--- /dev/null
+++ b/dev-ruby/bigdecimal/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">ruby/bigdecimal</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to