blob: f601a244a50339b6337237225a6fb95bf0116738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
COMMIT=dd0894061f58479884e6cfa2d00382542dc77d5a
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_GEMSPEC="global_phone.gemspec"
inherit ruby-fakegem
DESCRIPTION="Parses, validates, and formats local and international phone numbers"
HOMEPAGE="https://github.com/sstephenson/global_phone"
SRC_URI="https://github.com/sstephenson/global_phone/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
RUBY_S="${PN}-${COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
all_ruby_prepare() {
# Remove globale_phone_dbgen parts
rm -f lib/global_phone/database_generator.rb || die
sed -i -e 's/__FILE__/"global_phone.gemspec"/' ${RUBY_FAKEGEM_GEMSPEC} || die
}
|