summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-01-11 07:55:23 +0100
committerHans de Graaff <graaff@gentoo.org>2020-01-11 07:55:23 +0100
commitc0d1e5e006780fc07a6bc0c005f812afbce8a5be (patch)
treef1acd6432bcaad9e78a29250c6d098de86784242 /dev-ruby/gettext-setup
parentdev-ruby/faker: add 2.10.0 (diff)
downloadgentoo-c0d1e5e006780fc07a6bc0c005f812afbce8a5be.tar.gz
gentoo-c0d1e5e006780fc07a6bc0c005f812afbce8a5be.tar.bz2
gentoo-c0d1e5e006780fc07a6bc0c005f812afbce8a5be.zip
dev-ruby/gettext-setup: add 0.34
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/gettext-setup')
-rw-r--r--dev-ruby/gettext-setup/Manifest1
-rw-r--r--dev-ruby/gettext-setup/gettext-setup-0.34.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/gettext-setup/Manifest b/dev-ruby/gettext-setup/Manifest
index 97d627441563..4818cee71f5f 100644
--- a/dev-ruby/gettext-setup/Manifest
+++ b/dev-ruby/gettext-setup/Manifest
@@ -1,2 +1,3 @@
DIST gettext-setup-0.30.tar.gz 15952 BLAKE2B d224e0fee34b0735fdf22abe2efe81b45c6494fc48ca509daf076cda9d3b83dc6dcd3e44c20ae9776d98b7d6128e5b9a93fa49ba1f2daa4b00929714e8d7365c SHA512 6ee398a131098f46dcc2951d166081a90872330b6ba5637292eb326b1bd6f40f46350f6be7b2b9ebee0c62442609700e06d25befcbcbf6510f3d96e656855124
DIST gettext-setup-0.31.tar.gz 16043 BLAKE2B 762d40295644acaaae27045a8a03ddb6a9e0f44093754492da3af4ce9a65fe4f58b9eb53a5d837dd1e553a7301dde29cbe27d4f6a6e7c7fc737ca9516b6eb3c4 SHA512 ac408d37a4feb03043368db6dd1e0fe3cc1f08c5d0c161ae8e9b80d0ac514e7d5891fdbdbcafa7bc72c960d38b6965b73c56d5d4e9a3fe1da0502667c33142ef
+DIST gettext-setup-0.34.tar.gz 16010 BLAKE2B 3da3810bba89205a0a2856760b7fbe7a415207ccc45a3cd2e8aad658131dc751b1ad44178beaee2d0c67164a5e3e7b1ee0aba1c4e1b099f77643d72aec753de3 SHA512 479e2a79768923796960b45f1e3b3963939a4166c636ad4c3af60840a5c8449fa7fff81271b4c938e5a441146b25fcdd9fd8bb60e1df7ef31bb39efc56577572
diff --git a/dev-ruby/gettext-setup/gettext-setup-0.34.ebuild b/dev-ruby/gettext-setup/gettext-setup-0.34.ebuild
new file mode 100644
index 000000000000..c791987c2ee4
--- /dev/null
+++ b/dev-ruby/gettext-setup/gettext-setup-0.34.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A gem to ease i18n"
+HOMEPAGE="https://github.com/puppetlabs/gettext-setup-gem"
+SRC_URI="https://github.com/puppetlabs/gettext-setup-gem/archive/${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="${PN}-gem-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/fast_gettext-1.1.0:0
+ >=dev-ruby/ruby-gettext-3.0.2
+ dev-ruby/locale
+"
+
+all_ruby_prepare() {
+ sed -i -e 's/1.1.0/1.1/' \
+ -e "s/spec.version.*$/spec.version = '${PV}'/" ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e '/simplecov/,/^end/ s:^:#: ; 1irequire "date"' spec/spec_helper.rb || die
+
+ # Avoid spec with specific locale requirements
+ sed -i -e '/can clear the locale/,/^ end/ s:^:#:' spec/lib/gettext-setup/gettext_setup_spec.rb || die
+}