commit: 0df82ecc004fe78847092bddc7b6d98d68add5d5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 6 19:31:54 2015 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 6 19:32:47 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df82ecc
app-mobilephone/yaps: Fix global scope use call, #566526
app-mobilephone/yaps/yaps-0.96-r5.ebuild | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/app-mobilephone/yaps/yaps-0.96-r5.ebuild
b/app-mobilephone/yaps/yaps-0.96-r5.ebuild
index 6376405..0bf5625 100644
--- a/app-mobilephone/yaps/yaps-0.96-r5.ebuild
+++ b/app-mobilephone/yaps/yaps-0.96-r5.ebuild
@@ -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