diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-05 07:29:27 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-05 07:31:48 +0100 |
commit | 95748b7333cc1ea952f07acbf85888b855d8ed3c (patch) | |
tree | 3f3b77b638520d4f23651d7d508fb9b5c2d103b7 /dev-ruby/date | |
parent | profiles/package.mask: last-rite sys-boot/mbr-gpt (diff) | |
download | gentoo-95748b7333cc1ea952f07acbf85888b855d8ed3c.tar.gz gentoo-95748b7333cc1ea952f07acbf85888b855d8ed3c.tar.bz2 gentoo-95748b7333cc1ea952f07acbf85888b855d8ed3c.zip |
dev-ruby/date: add 3.3.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/date')
-rw-r--r-- | dev-ruby/date/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/date/date-3.3.0.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/date/Manifest b/dev-ruby/date/Manifest index 8baef840e9d3..40ce350914d3 100644 --- a/dev-ruby/date/Manifest +++ b/dev-ruby/date/Manifest @@ -1 +1,2 @@ DIST date-3.2.2.tar.gz 108973 BLAKE2B aedb4d5d43b1d7ac277bc6fd36651f36828be7a04f4eb75c45ea02bc56b3a403af9e8a26b23a9839c904ae455e6a02476fe83115d8c816f06168db6e0a788347 SHA512 5a640b550c9ea0c1fa24aa5d114ae9108fd568c8c38b20434168a92c886d66487065e0c6aedc7e55cbe59cc3338fd262ca601267ed0b55377c382fe0502e9604 +DIST date-3.3.0.tar.gz 108249 BLAKE2B 7d85337c1b39b09d15a73a47b5e09788a700a0e044fc74a4138be490d7212174e3cc03c40c7b4814bc69523399826832c48c07a38e0cfb6f28554f584cf81fe0 SHA512 1e20c5a29b0aabc3354b6c39e0dcc4cbeafc6b74afddd5b4446b7a7b608832f072c86b98267893267d0372ba7ab0bfd71862369cd8d35b162cba8bdd81563a57 diff --git a/dev-ruby/date/date-3.3.0.ebuild b/dev-ruby/date/date-3.3.0.ebuild new file mode 100644 index 000000000000..303b2f58e831 --- /dev/null +++ b/dev-ruby/date/date-3.3.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +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 +} |