From a14b567355b9323335b6609fb8cb28626cdd9560 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 14 Feb 2016 19:57:05 +0100 Subject: [PATCH] www-apps/nanoc: fix bug 574726 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 96459626f4ff0..7d1b8b472eb23 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.