commit:     a14b567355b9323335b6609fb8cb28626cdd9560
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 18:57:05 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 18:57:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14b5673

www-apps/nanoc: fix bug 574726

Fix building with FEATURES=-test, thanks to Toralf Förster
for reporting.

Package-Manager: portage-2.2.26

 www-apps/nanoc/nanoc-4.1.4.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/www-apps/nanoc/nanoc-4.1.4.ebuild 
b/www-apps/nanoc/nanoc-4.1.4.ebuild
index 9645962..7d1b8b4 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.

Reply via email to