summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-12-02 07:20:24 +0100
committerHans de Graaff <graaff@gentoo.org>2017-12-02 07:29:12 +0100
commit567fba45defc3fb342872e1f1fbacf63b57dfa90 (patch)
tree033fa3dab7a6fb773accaeff8ea9667d6800afff /dev-ruby/fast_gettext
parentapp-admin/puppet: cleanup (diff)
downloadgentoo-567fba45defc3fb342872e1f1fbacf63b57dfa90.tar.gz
gentoo-567fba45defc3fb342872e1f1fbacf63b57dfa90.tar.bz2
gentoo-567fba45defc3fb342872e1f1fbacf63b57dfa90.zip
dev-ruby/fast_gettext: drop test dependency on activerecord
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/fast_gettext')
-rw-r--r--dev-ruby/fast_gettext/Manifest6
-rw-r--r--dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild10
2 files changed, 12 insertions, 4 deletions
diff --git a/dev-ruby/fast_gettext/Manifest b/dev-ruby/fast_gettext/Manifest
index 490822aad7e6..3e9a8f6e1aa5 100644
--- a/dev-ruby/fast_gettext/Manifest
+++ b/dev-ruby/fast_gettext/Manifest
@@ -1,3 +1,3 @@
-DIST fast_gettext-1.4.1.tar.gz 88329 SHA256 19ea679c60c9289741ac1352d1ff920d888129330ed867a0cab381ce97996e9d SHA512 43edce74ab294c92dc63baa855ec0a408ad3fa2092f920d71265516b64bbf2a10863b43aade55b583e792b6ef4901641f24cdce12477b595ffa86f47642dc522 WHIRLPOOL 2e04842ee70cb61490b01731f6b285330b8f6d6fda243ddc5f2c3935430db73fd6cf397c209912a622f01775bc7140e93955daa18230b007fe877c5645c1b6d0
-DIST fast_gettext-1.5.0.tar.gz 88258 SHA256 c88c017b3f40f98d9e680008ea2c0ee55a90d9dbf016462d3a4309a51bb3da25 SHA512 dabb6933337715b967ebebff5efc40b05cc5b59a254edc7399c905be30d378e25ac0e930d5a6317269e12f6b55db180b8e4580c679382d8f3cec2ee782d45563 WHIRLPOOL 4492a53574d18136b59690bcb031698a9b59979781c0d01fa61511164f640d299bb95501031a851881685cdb4b36d6da11e571f8179764a5ea8fee5f6fa08778
-DIST fast_gettext-1.5.1.tar.gz 88259 SHA256 c3859267f3d57d850757ce7878a871380084e5d2599fabf1dced330f82c5e723 SHA512 44b6531d3a50982f2eee5f6154fd716411d85fcc19750781596253af1e841852f0178f2a735ba3d3d45a037c8204de18c6b1390d1e9e2bdd7b3f895eb740ccff WHIRLPOOL b3e0b88cf7b11ce339c3ff93e5eb27088d7b0a0f0d6b5905075b1c45dcf15ae354c6fe7c11510a2dab3009c2544d7a1244fe87e89bfc68d247b7631438e20c4f
+DIST fast_gettext-1.4.1.tar.gz 88329 BLAKE2B 2e8e75de28bd0e53a394367344544f3524213a0d0bce8d450e37f639f34499c2a80f400ea10c05b930ed9eec1c8d970a28e0c03780bc1076471d20909bb216e0 SHA512 43edce74ab294c92dc63baa855ec0a408ad3fa2092f920d71265516b64bbf2a10863b43aade55b583e792b6ef4901641f24cdce12477b595ffa86f47642dc522
+DIST fast_gettext-1.5.0.tar.gz 88258 BLAKE2B 710e013b7a1295b44f95827fc0e2dfdc805a4c0dfa98750b84a82440519292231ab7399d8af5b2c5408dab1fa7b1c54a524287d1805d2379c44f015094411002 SHA512 dabb6933337715b967ebebff5efc40b05cc5b59a254edc7399c905be30d378e25ac0e930d5a6317269e12f6b55db180b8e4580c679382d8f3cec2ee782d45563
+DIST fast_gettext-1.5.1.tar.gz 88259 BLAKE2B 75f9875e7a51d28a16d2acb690dfebe97bb0ac64a715b91348537b15c52643c2f08e5597cc135a95e66a0d4d87445ba40ba98b7c08f70a33cdae873c1e4d1e7f SHA512 44b6531d3a50982f2eee5f6154fd716411d85fcc19750781596253af1e841852f0178f2a735ba3d3d45a037c8204de18c6b1390d1e9e2bdd7b3f895eb740ccff
diff --git a/dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild b/dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild
index 3f27a46c65c6..391aeb7cecfa 100644
--- a/dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild
+++ b/dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild
@@ -21,7 +21,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc64"
IUSE=""
-ruby_add_bdepend "test? ( dev-ruby/activerecord[sqlite] dev-ruby/bundler )"
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
all_ruby_prepare() {
rm Gemfile.lock || die
@@ -34,6 +34,14 @@ all_ruby_prepare() {
-e '/\(wwtd\|bump\)/ s:^:#:' \
-i fast_gettext.gemspec || die
+ # Avoid a test dependency on activerecord since this is now in the
+ # dependency tree for app-admin/puppet and many arches don't have
+ # rails keyworded.
+ sed -i -e '/active_record/ s:^:#:' spec/spec_helper.rb || die
+ rm -f spec/fast_gettext/translation_repository/db_spec.rb || die
+ sed -i -e '/works with DB repository/,/^ end/ s:^:#:' spec/fast_gettext/storage_spec.rb || die
+ sed -i -e '/with i18n loaded/,/^ end/ s:^:#:' spec/fast_gettext/vendor/string_spec.rb || die
+
# Don't run a test that requires safe mode which we can't provide
# due to insecure directory settings for the portage dir. This spec
# also calls out to ruby which won't work with different ruby