[QA] net-misc/icaclient: Fix global scope use calls, #566544
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 20:45:55 +0000 (21:45 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 21:55:14 +0000 (22:55 +0100)
net-misc/icaclient/icaclient-13.2.0.322243.ebuild
net-misc/icaclient/icaclient-13.2.1.328635.ebuild

index 2727de733eeb16704196818cd4f61d1656ebe4d2..1d48d2a0700aea37ec8acbcddc3960106c0be5da 100644 (file)
@@ -54,19 +54,23 @@ RDEPEND="dev-libs/atk
        x11-terms/xterm"
 DEPEND=""
 
-if use amd64 ; then
-       ICAARCH=linuxx64
-elif use x86 ; then
-       ICAARCH=linuxx86
-fi
-S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
-
 pkg_nofetch() {
        elog "Download the client file ${A} from
        http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-13-2.html"
        elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
 }
 
+src_unpack() {
+       default
+
+       if use amd64 ; then
+               ICAARCH=linuxx64
+       elif use x86 ; then
+               ICAARCH=linuxx86
+       fi
+       S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
+}
+
 src_install() {
        dodir "${ICAROOT}"
 
index 8175699fd0dec2ba587d8945e6cf72578bba161b..ed5a5aea95acbf2104bf4828390752710dc7c17a 100644 (file)
@@ -54,19 +54,23 @@ RDEPEND="dev-libs/atk
        x11-terms/xterm"
 DEPEND=""
 
-if use amd64 ; then
-       ICAARCH=linuxx64
-elif use x86 ; then
-       ICAARCH=linuxx86
-fi
-S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
-
 pkg_nofetch() {
        elog "Download the client file ${A} from
        http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-1321.html"
        elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
 }
 
+src_unpack() {
+       default
+
+       if use amd64 ; then
+               ICAARCH=linuxx64
+       elif use x86 ; then
+               ICAARCH=linuxx86
+       fi
+       S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
+}
+
 src_install() {
        dodir "${ICAROOT}"