summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2024-11-21 08:04:26 +0100
committerHans de Graaff <hans@degraaff.org>2024-11-21 08:04:26 +0100
commit7b6c50afe2db251e8310721c981e921a45469fee (patch)
treea51d8387f30d54473a3cd59e0c1639361a64dc79
parentdev-ruby/json-schema: add 5.0.1 (diff)
downloadgraaff-7b6c50afe2db251e8310721c981e921a45469fee.tar.gz
graaff-7b6c50afe2db251e8310721c981e921a45469fee.tar.bz2
graaff-7b6c50afe2db251e8310721c981e921a45469fee.zip
dev-ruby/phonelib: add 0.10.1
Signed-off-by: Hans de Graaff <hans@degraaff.org>
-rw-r--r--dev-ruby/phonelib/Manifest1
-rw-r--r--dev-ruby/phonelib/phonelib-0.10.1.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/phonelib/Manifest b/dev-ruby/phonelib/Manifest
index d0861e7e..279dfbdd 100644
--- a/dev-ruby/phonelib/Manifest
+++ b/dev-ruby/phonelib/Manifest
@@ -1,3 +1,4 @@
+DIST phonelib-0.10.1.tar.gz 1036666 BLAKE2B 7c68c59e826d58ebb82d8930a7a30a2a0c68ce915f8d374e72a128527a2ef3b010cd57d3b6256ee1d67fa171c72bd91ada5f8c98581e05222c896bbb2677a253 SHA512 5e5a7ecd30929dac413bb8180070abaa7a1aea612dcb41696e9741208cc9ed256608298447c220cd53e16a8be1f2e9b2b47c2b8102be92331d466a8b373e46af
DIST phonelib-0.8.8.tar.gz 1084405 BLAKE2B f9bdf82f7e9078927d0294b4af35e816bc372823cd62b880c9c542f0b2cefd088889deab75fc6fac0c0e73e2fa8c0e634940aa58611f7d903d3ec73dde9417a8 SHA512 6ccfd173123d4084ae753a01ec4bcf3ddaf1e0018e8228d1b4c8e52cfd0cd86570f23087ca82183112dcf00c6281493fd055150b50f7ee6992469673da89b103
DIST phonelib-0.8.9.tar.gz 1034391 BLAKE2B d51f1d5575d3600982ff1982c068b5566dec2c82b7ddfcd50836fa53d1a8442e6c4e73814367860cf26a9f672e6021e02520b52c115c045e424f2daed8ab7ab4 SHA512 805599a3f9c5eca14fac330287cce4dead36e8d6fc215279b6319a54caf21df1b400ddfea7daf255d05ea7c1efbf2d33fc885320b2a916f82b5fe83f99cb7d90
DIST phonelib-0.9.0.tar.gz 1034493 BLAKE2B dad62cc1f79e9770fadd48d6162ac20ef969fa3f738752d7a2aee3f2871fe19b23a9b104345b837483ac0d2531e6d8edbd8ef67e006616e91caae01aa8b1871a SHA512 4c203ca253b78e8f8416a6b62ed69e96635144febc8f2f45fd4d6ac2f612fc3d96668417398c6bdf2cbb197331d8f7df923ad4d4c778ae66e95015e807e00ac4
diff --git a/dev-ruby/phonelib/phonelib-0.10.1.ebuild b/dev-ruby/phonelib/phonelib-0.10.1.ebuild
new file mode 100644
index 00000000..7b81d137
--- /dev/null
+++ b/dev-ruby/phonelib/phonelib-0.10.1.ebuild
@@ -0,0 +1,41 @@
+# 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 "s:_relative ': './:" \
+ -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
+}