diff options
Diffstat (limited to 'dev-ruby/time')
-rw-r--r-- | dev-ruby/time/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/time/time-0.4.1.ebuild | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/time/Manifest b/dev-ruby/time/Manifest index 43468b87dd2f..1ed3416443d1 100644 --- a/dev-ruby/time/Manifest +++ b/dev-ruby/time/Manifest @@ -1,3 +1,5 @@ DIST time-0.4.0.tar.gz 16721 BLAKE2B d1f86380c7c79b05f9174bb103c5c69d3abdd9c65b60c65ea4de0d93715a5dc7b2f4cdb8cce9a2d75512c00485b687bbc79bba45389ea12a78ca3776512e45dc SHA512 c95c1167a305fbdf6d138143afc2b822972614b26d87c323d62e663994beb80d12e26e17dc33fe515b65076c50aa05c1d80bc13b6bc83b481d967c796b7c84be +DIST time-0.4.1.tar.gz 17233 BLAKE2B b6a7fc2c92f879e19a210ef5db7fa680e699b374df7b180602fd7717e7bf287be51f38a2d9a2680c41994c6e1f82602f3d024d4eaa2eaa1515fb0f85a69e05f7 SHA512 daf7bd8fdafb2a04e94f925e4f32c1077ce1c94a17fe4bdc411aaa945d3ec43d575fba6166c18c1ce4ccbd032708974f02a561961b04efd039621749d239bd57 EBUILD time-0.4.0.ebuild 1061 BLAKE2B 3a0b4c2684644eb5a925b092b899d1869805b7c3d6dc82d5ee9653bc968a7675f6dfb4cb76ff24aba7fcb5f1acdad3e53cd999cf9bbef19a5803a4520da9c5aa SHA512 a05c2dbbe1984da23a7edc636c0702d6bb8d76795ab93011291c88b049a21eea5f8a950d9098d050018bc75917e4ba4a39f332de97bb02b3e252d9d8d3a97198 +EBUILD time-0.4.1.ebuild 1068 BLAKE2B 8d0297a65ed507f2bedfb1065de9faac7e8fdf9893edc64fafd9855c0aea79cb253ff0a2b4dfba9677e719893cde4934950f5a36e6ff4c1d784f05a4e604a305 SHA512 8b14ecae5cd96bddfcf98cb4d224c335ad9d8bb04561c5615d080281278c30a2ea21905ed80cfc748c7931e186bf2255c6fd81f8166805d10e0a3248aaf3c175 MISC metadata.xml 336 BLAKE2B 319e2c60fbca7c2a86ddd03dc6b837e5f596e12fa5b9dbf002a955c23e8eeeb26bb91a4526a6a67604b6eded037f99f8e95334899fea2d1b3d1715457eb7dc6c SHA512 8ab5bc044b940fea3297ab6cb12a4fd3204602558812dc059d59e8a7f72ebe137ae637127270c40e8fdec3a8c00c9778d109f499b4828ac4d03f38ed7b0fa292 diff --git a/dev-ruby/time/time-0.4.1.ebuild b/dev-ruby/time/time-0.4.1.ebuild new file mode 100644 index 000000000000..e98b8bb0a911 --- /dev/null +++ b/dev-ruby/time/time-0.4.1.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_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="time.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Extends the Time class with methods for parsing and conversion" +HOMEPAGE="https://github.com/ruby/time" +SRC_URI="https://github.com/ruby/time/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 ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_rdepend "dev-ruby/date" + +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 +} |