forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |