From: Hans de Graaff Date: Sun, 14 Feb 2016 18:57:05 +0000 (+0100) Subject: www-apps/nanoc: fix bug 574726 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a14b567355b9323335b6609fb8cb28626cdd9560;p=gentoo.git www-apps/nanoc: fix bug 574726 Fix building with FEATURES=-test, thanks to Toralf Förster for reporting. Package-Manager: portage-2.2.26 --- diff --git a/www-apps/nanoc/nanoc-4.1.4.ebuild b/www-apps/nanoc/nanoc-4.1.4.ebuild index 96459626f4ff..7d1b8b472eb2 100644 --- a/www-apps/nanoc/nanoc-4.1.4.ebuild +++ b/www-apps/nanoc/nanoc-4.1.4.ebuild @@ -45,10 +45,13 @@ doc? ( all_ruby_prepare() { use doc || use test || (rm tasks/doc.rake || die) - use test || (rm tasks/test.rake || die) - # Avoid dependency on coveralls. - sed -i -e '/coverall/I s:^:#:' tasks/test.rake || die + if use test ; then + # Avoid dependency on coveralls. + sed -i -e '/coverall/I s:^:#:' tasks/test.rake || die + else + rm -f tasks/test.rake || die + fi # Avoid non-optional tests for w3c_validators which we don't have # packaged and which require network access.