summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-11-02 08:16:49 +0100
committerHans de Graaff <graaff@gentoo.org>2024-11-02 08:27:39 +0100
commitd045941494345c003c21dc7676c6398a4fd1e34d (patch)
tree4147e80918cb3570e47bc75248b4d2ca5ad49da3 /dev-ruby/date
parentdev-perl/Business-ISBN: Stabilize 3.9.0 hppa, #936781 (diff)
downloadgentoo-d045941494345c003c21dc7676c6398a4fd1e34d.tar.gz
gentoo-d045941494345c003c21dc7676c6398a4fd1e34d.tar.bz2
gentoo-d045941494345c003c21dc7676c6398a4fd1e34d.zip
dev-ruby/date: add 3.4.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/date')
-rw-r--r--dev-ruby/date/Manifest1
-rw-r--r--dev-ruby/date/date-3.4.0.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/date/Manifest b/dev-ruby/date/Manifest
index ef51e4ec73cc..ee2c1006d2d1 100644
--- a/dev-ruby/date/Manifest
+++ b/dev-ruby/date/Manifest
@@ -1 +1,2 @@
DIST date-3.3.4.tar.gz 99252 BLAKE2B a8fe8f4a716bb4247f00b94f2c9564a34df8fdd43d2345cfc529541bbfbf0549df1e0aac0d120de6b4cc6e6ea8e6fc38ee87cc36b16ddafb2c4589b8e96c04bd SHA512 d8b71c56316224ef7d5f0c7515adc9540eea784daa49f3c130dbbe1fcd2a90abc85b153bbca66809666c817597733f03f5acc06e883878ecc5ede3eab398c348
+DIST date-3.4.0.tar.gz 100560 BLAKE2B 2699273e532be72728794aa24ed18c087b8f58f4867ce7eb0508809e148b0cefecf9190760b51ca7c04f67eb6fedb8540fd81a8940cc1b9481ef9ee85aeba2ac SHA512 3aa924fe4426774e7d969f180bd222d9f976d1bf5a459073a28ca1b476f5cb218728bad6e567fbf973c72f4f6de42cf8988e96e9470fcc7b67eaa54d880f8d9e
diff --git a/dev-ruby/date/date-3.4.0.ebuild b/dev-ruby/date/date-3.4.0.ebuild
new file mode 100644
index 000000000000..fad91e193e87
--- /dev/null
+++ b/dev-ruby/date/date-3.4.0.ebuild
@@ -0,0 +1,35 @@
+# 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/date/extconf.rb)
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="date.gemspec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A subclass of Object includes Comparable module for handling dates"
+HOMEPAGE="https://github.com/ruby/date"
+SRC_URI="https://github.com/ruby/date/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="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 's/__dir__/"."/' \
+ -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
+ -e 's/git ls-files -z/find * -print0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}