summaryrefslogtreecommitdiff
path: root/dev-ruby/date
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/date')
-rw-r--r--dev-ruby/date/Manifest2
-rw-r--r--dev-ruby/date/date-3.4.0.ebuild35
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/date/Manifest b/dev-ruby/date/Manifest
index d2b682d03eeb..6a407e97bbe9 100644
--- a/dev-ruby/date/Manifest
+++ b/dev-ruby/date/Manifest
@@ -1,3 +1,5 @@
DIST date-3.3.4.tar.gz 99252 BLAKE2B a8fe8f4a716bb4247f00b94f2c9564a34df8fdd43d2345cfc529541bbfbf0549df1e0aac0d120de6b4cc6e6ea8e6fc38ee87cc36b16ddafb2c4589b8e96c04bd SHA512 d8b71c56316224ef7d5f0c7515adc9540eea784daa49f3c130dbbe1fcd2a90abc85b153bbca66809666c817597733f03f5acc06e883878ecc5ede3eab398c348
+DIST date-3.4.0.tar.gz 100560 BLAKE2B 2699273e532be72728794aa24ed18c087b8f58f4867ce7eb0508809e148b0cefecf9190760b51ca7c04f67eb6fedb8540fd81a8940cc1b9481ef9ee85aeba2ac SHA512 3aa924fe4426774e7d969f180bd222d9f976d1bf5a459073a28ca1b476f5cb218728bad6e567fbf973c72f4f6de42cf8988e96e9470fcc7b67eaa54d880f8d9e
EBUILD date-3.3.4.ebuild 1095 BLAKE2B a518d350f1bd7adfcb8ec655ef31db56cdcf82e766df39be5c2ce2fea84820d13aeb734c8063ded5e44b28115d26ccff50c0f600dec13a4a63752602d8a8b485 SHA512 d3da21fffd07d99a6592237a8c0f971069a4882eab30339509e2a466573507b59975990b0fb82430e9cc135a4ef77ea259b8d66a1a8b0a2d319563faf7edb85f
+EBUILD date-3.4.0.ebuild 1102 BLAKE2B ce30e19f90034b03a824469e11cf010fdd16550dcab4f6307bcaa369d2f96a4e635173dd991e3e8d0f511d226131299e505471bbd3b867ec8fd88d00eb4e0d48 SHA512 7a9f2e1607f3ae8b12f0efd52b739ec5688da8c7f1930cc291c2f89f86d735470456ba36363a8cf15d7c549b2716ed5b88dade2fce374db33defd3c867f72b1a
MISC metadata.xml 336 BLAKE2B ebecdf17ef8daa50c1327043a3c8744971b20f9e58758716a4d39968312ed3426e3902d2be1fc6d1ccc6ff84460fa1c2bd98d5cdf0ccd417167603209c14b66d SHA512 5abad9d2498b1ca553c2500c9ea24b04b3c8f617ee799a45efe48814a8cb926380fdd6c5b963ac6b3f43f8c92ab445e59458a80b569ac5a433b7c89c3d9171dd
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
+}