summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-05-08 06:58:55 +0200
committerHans de Graaff <graaff@gentoo.org>2024-05-08 07:06:27 +0200
commitabd2f0a2922f3d69f684ab58cde3b1133414cca5 (patch)
tree14282ff3b3860df6896a2a4974277389273d75de /dev-ruby/bigdecimal
parentapp-portage/mgorny-dev-scripts: Bump to 51 (diff)
downloadgentoo-abd2f0a2922f3d69f684ab58cde3b1133414cca5.tar.gz
gentoo-abd2f0a2922f3d69f684ab58cde3b1133414cca5.tar.bz2
gentoo-abd2f0a2922f3d69f684ab58cde3b1133414cca5.zip
dev-ruby/bigdecimal: add 3.1.8
Add missing test dependency. Closes: https://bugs.gentoo.org/923345 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/bigdecimal')
-rw-r--r--dev-ruby/bigdecimal/Manifest1
-rw-r--r--dev-ruby/bigdecimal/bigdecimal-3.1.8.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/bigdecimal/Manifest b/dev-ruby/bigdecimal/Manifest
index 9d68fe041217..9980a6507a98 100644
--- a/dev-ruby/bigdecimal/Manifest
+++ b/dev-ruby/bigdecimal/Manifest
@@ -2,3 +2,4 @@ DIST bigdecimal-3.1.4.tar.gz 115069 BLAKE2B 7c7df4ceac6caa44414cf2fe4e16ee21b8d4
DIST bigdecimal-3.1.5.tar.gz 105064 BLAKE2B 472f364f34ab37478e7d6570bb7cd9a35a82f973ef09806fc9229793392a5daa2f66b2303a75ca43b098c7413c9a358ffe07bd592d499d671bac5136690b2b11 SHA512 fd6c463412dbe626e98cffaf977967eb5bbaa15670131132e16050470184443b0d773ede9df1a8196f7f2c0362060f7d79727a970ad5bd6b4031d5875867b8c5
DIST bigdecimal-3.1.6.tar.gz 104969 BLAKE2B 50c90c9d7fbce71d9a4ac1c32d6340ce07101e87cea4597c1365bdd84d24811cea2c65b7c7afb9a9d66125527ade7cc1c090aae77541d86b91d4d6990bb3cd59 SHA512 e44278f9d193575f27fd63a9a9687529295a65413ff98f07c1278328304acc4a5f9d3e1367f5bccab515f2b209465d0147661fe7f822bea901466d9dd33324c0
DIST bigdecimal-3.1.7.tar.gz 104984 BLAKE2B 0c0a97d120edce1946bd134f810ccb7f068465d678f3396b39a6e0e540dcefe03c5b8d2cee90f5c96481513065f4645bfbfcc10116bac6b80f7e22344a34024e SHA512 567dcbd010d4879c74286f440082ea9e9b9873c53ab208db4e96a21c5d8c786c6e622a29698e9e9202803b6bf2fcef1d15ff24b784184738664c4be847d2d749
+DIST bigdecimal-3.1.8.tar.gz 105551 BLAKE2B 5bd35c9a719e99dd94f4386c3d7202553add779bf2724e44476cc64488715353e242150308671a4ed1c1ac2a1087035db7cb3a7234191dc4c41c606fe813040a SHA512 4f3c07d4111261c74f74d757040f979e2d486c3df06f470e8f2c801d9fa8e9b6c2a0e0bbf353f8c2006685c4530bcb1d5c9a9f7c208e5fd549a5283939bdd519
diff --git a/dev-ruby/bigdecimal/bigdecimal-3.1.8.ebuild b/dev-ruby/bigdecimal/bigdecimal-3.1.8.ebuild
new file mode 100644
index 000000000000..a5fa26d80da7
--- /dev/null
+++ b/dev-ruby/bigdecimal/bigdecimal-3.1.8.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+all_ruby_prepare() {
+ sed -e '/^source_version/,/^end/ s:^:#:' \
+ -e "/s.version/ s/= source_version/= '${PV}'/" \
+ -e "/s.name/ s/= name/= 'bigdecimal'/" \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -rtest/lib/helper -e "Dir['test/**/test_*.rb'].each { require _1 }" || die
+}