app-mobilephone/yaps: Fix global scope use call, #566526
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 19:31:54 +0000 (20:31 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 19:32:47 +0000 (20:32 +0100)
app-mobilephone/yaps/yaps-0.96-r5.ebuild

index 637640591a3a3346c51e5fdf50324aebb732b7c8..0bf5625fee75d5c39ba82f008272c18db77e4a00 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -26,9 +26,10 @@ DEPEND="
        lua? ( virtual/pkgconfig )
 "
 
-if use capi; then
-       S="${WORKDIR}"/${P}.c4
-fi
+src_unpack() {
+       default
+       use capi && S="${WORKDIR}"/${P}.c4
+}
 
 src_prepare() {
        # apply patches