summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-02-14 19:57:05 +0100
committerHans de Graaff <graaff@gentoo.org>2016-02-14 19:57:26 +0100
commita14b567355b9323335b6609fb8cb28626cdd9560 (patch)
tree8d026b53eaf9a3d63662abf19565f9c3419a0b1c
parentdev-python/flask-security: Bump (diff)
downloadgentoo-a14b567355b9323335b6609fb8cb28626cdd9560.tar.gz
gentoo-a14b567355b9323335b6609fb8cb28626cdd9560.tar.bz2
gentoo-a14b567355b9323335b6609fb8cb28626cdd9560.zip
www-apps/nanoc: fix bug 574726
Fix building with FEATURES=-test, thanks to Toralf Förster for reporting. Package-Manager: portage-2.2.26
-rw-r--r--www-apps/nanoc/nanoc-4.1.4.ebuild9
1 files 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 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.