commit:     b5aece8e7c84de10a3713e4588f1a20a1b62ad4a
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 28 08:27:46 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Apr 28 08:29:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5aece8e

net-nntp/suck: tidy 4.3.4 ebuild

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-nntp/suck/suck-4.3.4.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/net-nntp/suck/suck-4.3.4.ebuild b/net-nntp/suck/suck-4.3.4.ebuild
index 6e3a5533c5c..ecb5006bebe 100644
--- a/net-nntp/suck/suck-4.3.4.ebuild
+++ b/net-nntp/suck/suck-4.3.4.ebuild
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+
 inherit autotools
 
 DESCRIPTION="Grab news from a remote NNTP server and feed them to another"
@@ -37,8 +38,13 @@ src_prepare() {
 }
 
 src_configure() {
-       use ssl || sed -i -e 's/^SSL_/#SSL_/' Makefile.in || die "ssl sed 
failed"
-       use perl || sed -i -e 's/^PERL_/#PERL_/' Makefile.in || die "perl sed 
failed"
+       if use ssl; then
+               sed -i -e 's/^SSL_/#SSL_/' Makefile.in || die "ssl sed failed"
+       fi
+
+       if use perl; then
+               sed -i -e 's/^PERL_/#PERL_/' Makefile.in || die "perl sed 
failed"
+       fi
 
        econf --without-inn-lib --without-inn-include
 }

Reply via email to