diff options
Diffstat (limited to 'dev-ruby/phonelib/phonelib-0.9.0.ebuild')
-rw-r--r-- | dev-ruby/phonelib/phonelib-0.9.0.ebuild | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/dev-ruby/phonelib/phonelib-0.9.0.ebuild b/dev-ruby/phonelib/phonelib-0.9.0.ebuild deleted file mode 100644 index a313edae..00000000 --- a/dev-ruby/phonelib/phonelib-0.9.0.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# 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 -} |