diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-07-20 07:41:42 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-07-20 07:42:05 +0200 |
commit | 1f5ec2cc764c019326d2ab4c613f70aac1de5d49 (patch) | |
tree | f05b29328175a6074fead2850f7ca83ae57e408f /dev-ruby/tzinfo | |
parent | dev-python/gpep517: Bump to v8 (diff) | |
download | gentoo-1f5ec2cc764c019326d2ab4c613f70aac1de5d49.tar.gz gentoo-1f5ec2cc764c019326d2ab4c613f70aac1de5d49.tar.bz2 gentoo-1f5ec2cc764c019326d2ab4c613f70aac1de5d49.zip |
dev-ruby/tzinfo: add 2.0.5
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/tzinfo')
-rw-r--r-- | dev-ruby/tzinfo/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/tzinfo/tzinfo-2.0.5.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/tzinfo/Manifest b/dev-ruby/tzinfo/Manifest index 26c73b24c489..d926e6ccff34 100644 --- a/dev-ruby/tzinfo/Manifest +++ b/dev-ruby/tzinfo/Manifest @@ -1,2 +1,3 @@ DIST tzinfo-1.2.9.gem 166912 BLAKE2B 6d54a5118fbdb3556d0cdc9079462cf26afa9deddd1dc21ef670240e2aa47a66d0b4fc9c9c7ed74bd14bde96dc95f6b716aef5d32ca521221618a76c8c05cda1 SHA512 ddf28ad213f681a4e551cbd803873b279acef03fae894a3e6475030d4da5a59732b31af5d5944e8c62d15b7ec922816fede24f180fb20c55c1bd3d379c879cfe DIST tzinfo-2.0.4.tar.gz 224673 BLAKE2B 0c7ef231767b6fc00cf95b3e1c2037894b14dfe832eaedb3f4b7c60a884ab6f7121243af5b62acf47d02da28395e7390f968421a3a3a2d731deb079e9fc51bfa SHA512 5b2ec73f737009ba21dac7dbb9504235fdef14dc45a6450e1218ba9e53dd29735ab4fa6c2854271916cc5c0244e09ae7ab19467408b72b9b82ca238e14d3fa4f +DIST tzinfo-2.0.5.tar.gz 226225 BLAKE2B 44e6d65dadc4828e4b8803c0badf381e18afe7412e090c4d91147b144f300a8c0e3189bc8e8325625678a57ea6a1179a1ed277f5fb54230ce77c46ba6b0100c7 SHA512 a3c59b1f390b186356b9219b0fb18bb762d2123936553738e1068ba46bf0206c5a0394b1d46b5c7b891aa55b8afa839858837511f53e3ef0eb0e85fe3f23b57a diff --git a/dev-ruby/tzinfo/tzinfo-2.0.5.ebuild b/dev-ruby/tzinfo/tzinfo-2.0.5.ebuild new file mode 100644 index 000000000000..9bc2bd4cef2c --- /dev/null +++ b/dev-ruby/tzinfo/tzinfo-2.0.5.ebuild @@ -0,0 +1,48 @@ +# 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_TASK_TEST="test_zoneinfo" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" + +RUBY_FAKEGEM_GEMSPEC="tzinfo.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Daylight-savings aware timezone library" +HOMEPAGE="https://tzinfo.github.io/" +SRC_URI="https://github.com/tzinfo/tzinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="sys-libs/timezone-data" +DEPEND="test? ( sys-libs/timezone-data )" + +ruby_add_rdepend "dev-ruby/concurrent-ruby:1" +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitest:5 )" + +all_ruby_prepare() { + # Set the secure permissions that tests expect. + chmod 0755 "${HOME}" || die "Failed to fix permissions on home" + + # Skip safe tests since we cannot guarantee the correct permissions + # on directories for it to pass. + sed -e '/safe_test/askip "does not pass in gentoo test environment"' -i test/test_utils.rb || die + + # Loosen test dependencies + sed -e '/rake/ s/12.2.1/12.2/' \ + -e '/simplecov/d' \ + -i Gemfile || die + sed -e '/TEST_COVERAGE/d' -i Rakefile || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rake test || die +} |