summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-09-02 08:08:34 +0200
committerHans de Graaff <graaff@gentoo.org>2017-09-02 08:08:34 +0200
commit04606a277cca338084943cce08bcc0b887b8d5fa (patch)
treeeebfc4a4d57164e2054a3e17c574bc2ad1294e7f /dev-ruby/gettext-setup
parentmedia-plugins/gst-plugins-libav: remove old (diff)
downloadgentoo-04606a277cca338084943cce08bcc0b887b8d5fa.tar.gz
gentoo-04606a277cca338084943cce08bcc0b887b8d5fa.tar.bz2
gentoo-04606a277cca338084943cce08bcc0b887b8d5fa.zip
dev-ruby/gettext-setup: add 0.28
Package-Manager: Portage-2.3.6, Repoman-2.3.2
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.28.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/gettext-setup/Manifest b/dev-ruby/gettext-setup/Manifest
index 8de9b9fd164a..937c4b752fb8 100644
--- a/dev-ruby/gettext-setup/Manifest
+++ b/dev-ruby/gettext-setup/Manifest
@@ -1,2 +1,3 @@
DIST gettext-setup-0.10.tar.gz 7910 SHA256 a779a041675e7f473f14c60dd465678e8387afbe9ddb7378e4bfb23bae35632a SHA512 206b8494b144d9dd2e226ee053c7ddaf40c332d2675720bb9347269a0d6fcff097d7073c2053d91f220135bfae499108cca012a277bd39a003b9bd2e2d43854c WHIRLPOOL 9726cb748485b2030097cae3b854d96f6940737672abdc5c62bbcf58538846b76d9f3731dfcb03091c63fd73329302b143216c36a2000c565b8cfa2861ab70fb
DIST gettext-setup-0.26.tar.gz 14158 SHA256 0aa61c1fe41dfc45e465b8916e6ad95a880d0d956cf9ec3e19e279f9870b9286 SHA512 c421a06b11a09ab68a1c784b355bdf0a1aeb468f0af8b2dc8e14dabad091a3f5ffb56eee2f39885dcd271cbe504c4c97a220c560da6b7dd5552b537be6455c2e WHIRLPOOL 274ee61cce3de6ff385cdcbef6d09812cd5a661e70483a605ccc9aa2b87aafacefe8b233880c8aa385260cfc43819604fbff969cee4bdcdbca99e32c3ab702a8
+DIST gettext-setup-0.28.tar.gz 15594 SHA256 ef2fa58570fd2fd685f3ae7e4cb84b07c0333dfe23b3d148c094835393362738 SHA512 92526b21968a3357c5b86a953b83b28ce640be1eb3245122e89d701c3c3b9d72fb58c0c1f43a81f0fd0dd317dad69eb9f06abca818a394b9f14240d729949ab8 WHIRLPOOL 602d47bd3f07c5f75d0345e9231711aa1e28ca27506423cc94665bef4a4b4c645bc324c910815396513800d9d2f5f2a1de548b7ca855d3b452da6512d2091191
diff --git a/dev-ruby/gettext-setup/gettext-setup-0.28.ebuild b/dev-ruby/gettext-setup/gettext-setup-0.28.ebuild
new file mode 100644
index 000000000000..379d9854b692
--- /dev/null
+++ b/dev-ruby/gettext-setup/gettext-setup-0.28.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+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"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/fast_gettext-1.1.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:^:#:' 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
+}