diff options
author | Hans de Graaff <hans@degraaff.org> | 2024-10-28 07:36:37 +0100 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2024-10-28 07:36:37 +0100 |
commit | 2aa8537e4738949969bb76f7cf91327c64458529 (patch) | |
tree | 1371758c7adec9a14ab74830fb396f1a68f06d39 | |
parent | dev-ruby/appsignal: add 3.10.0 (diff) | |
download | graaff-2aa8537e4738949969bb76f7cf91327c64458529.tar.gz graaff-2aa8537e4738949969bb76f7cf91327c64458529.tar.bz2 graaff-2aa8537e4738949969bb76f7cf91327c64458529.zip |
dev-ruby/phonelib: add 0.9.3
Signed-off-by: Hans de Graaff <hans@degraaff.org>
-rw-r--r-- | dev-ruby/phonelib/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/phonelib/phonelib-0.9.3.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/phonelib/Manifest b/dev-ruby/phonelib/Manifest index 7d5f6e67..d0861e7e 100644 --- a/dev-ruby/phonelib/Manifest +++ b/dev-ruby/phonelib/Manifest @@ -3,3 +3,4 @@ DIST phonelib-0.8.9.tar.gz 1034391 BLAKE2B d51f1d5575d3600982ff1982c068b5566dec2 DIST phonelib-0.9.0.tar.gz 1034493 BLAKE2B dad62cc1f79e9770fadd48d6162ac20ef969fa3f738752d7a2aee3f2871fe19b23a9b104345b837483ac0d2531e6d8edbd8ef67e006616e91caae01aa8b1871a SHA512 4c203ca253b78e8f8416a6b62ed69e96635144febc8f2f45fd4d6ac2f612fc3d96668417398c6bdf2cbb197331d8f7df923ad4d4c778ae66e95015e807e00ac4 DIST phonelib-0.9.1.tar.gz 1034566 BLAKE2B 3be55bfe2952948b0f57fde00e32570444be5eb05777333f8d39b1e3ddeb68ec11057de86a699d47b3ce227ffa2dcf5d1d59cdf4505d1f6db68b4c25a04f2d0e SHA512 8c2db630f00f1a6217e846d3ef5769344d528c803005471ac042c52746c3e0384f4848912c4d6ee8cb875ed98b786995a4882b2a001950d79b030e308cf22e04 DIST phonelib-0.9.2.tar.gz 1035126 BLAKE2B fc6cbddab95cdf51f8b5bb3f845e6cb88894c2e6dd855dc4cd4f943c2c6b38c86bb81b87a206b07cbea0b41bbdfc27c9024ac31a9fc6fba910a02a242f311180 SHA512 f84fec6f805ebe674d3fcb64183dd5c48347d4ee7d18abd65b6a79083387d8d1270202d71c15a49d2fba9ca5c329bdece6cf7993b18762600efc42b4a15041b1 +DIST phonelib-0.9.3.tar.gz 1035249 BLAKE2B 8fbbb401506ece405389ddbdceea0fb0eca3ee7cf0793d8c50f71148f3db5b029889fa205a792332f3bf407e39fd1449a67b08c63f8019baa5773390351d3283 SHA512 1907d81738d4293447558d70777ad75da2d15d6c6e34f6eafac8e12f29380d35df5b44b074fd80706d9ddf2f826c97d87cbb62ef83c87cc7d9a5f8cdd367ca34 diff --git a/dev-ruby/phonelib/phonelib-0.9.3.ebuild b/dev-ruby/phonelib/phonelib-0.9.3.ebuild new file mode 100644 index 00000000..a313edae --- /dev/null +++ b/dev-ruby/phonelib/phonelib-0.9.3.ebuild @@ -0,0 +1,44 @@ +# 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_EXTRAINSTALL="data" +RUBY_FAKEGEM_GEMSPEC="phonelib.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Use Google libphonenumber data for validation and number formatting" +HOMEPAGE="https://github.com/daddyz/phonelib" +SRC_URI="https://github.com/daddyz/phonelib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_bdepend "test? ( + >=dev-ruby/nokogiri-1.15 +)" + +all_ruby_prepare() { + rm -f Gemfile.lock || die + + # Use modern gem version that work with recent ruby versions. Drop + # development-only dependencies. + sed -e '/rspec/ s/= 2.14.1/~> 3.0/' \ + -e '/rack-cache/ s/= 1.2/~> 1.2/' \ + -e '/json/ s/= 2.3.1/~> 2.3/' \ + -e '/\(benchmark\|codeclimate\|pry\|simplecov\)/ s:^:#:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/simplecov/I s:^:#:' -i spec/phonelib_spec.rb || die + + # Avoid the dummy rails application. It does not seem to work and + # requires dependencies that have not been configured. + rm -rf spec/dummy/spec || die +} |