commit:     dd9a77d4bd4929d83b16c7d7ef8a364e254d2378
Author:     NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 17:48:13 2016 +0000
Commit:     NP Hardass <np-hardass <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 17:48:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd9a77d4

app-emulation/wine: Fix two QA issues, #588604

Package-Manager: portage-2.2.28

 app-emulation/wine/wine-1.8-r2.ebuild    | 17 ++++++++++-------
 app-emulation/wine/wine-1.8.1-r2.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.8.2-r1.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.8.2.ebuild     |  2 +-
 app-emulation/wine/wine-1.8.3.ebuild     | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.10-r1.ebuild | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.11-r1.ebuild | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.12.ebuild    | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.13.ebuild    | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.4-r2.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.5-r2.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.6-r2.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.7-r2.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.8-r1.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-1.9.9-r1.ebuild  | 17 ++++++++++-------
 app-emulation/wine/wine-9999.ebuild      | 17 ++++++++++-------
 16 files changed, 151 insertions(+), 106 deletions(-)

diff --git a/app-emulation/wine/wine-1.8-r2.ebuild 
b/app-emulation/wine/wine-1.8-r2.ebuild
index 4675885..60871af 100644
--- a/app-emulation/wine/wine-1.8-r2.ebuild
+++ b/app-emulation/wine/wine-1.8-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.40"
-MV="4.5.6"
+VANILLA_GV="2.40"
+VANILLA_MV="4.5.6"
 STAGING_GV="2.40"
 STAGING_MV="4.5.6"
 STAGING_P="wine-staging-${PV}"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -261,7 +261,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -341,7 +344,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.8.1-r2.ebuild 
b/app-emulation/wine/wine-1.8.1-r2.ebuild
index fb71732..79bcfa0 100644
--- a/app-emulation/wine/wine-1.8.1-r2.ebuild
+++ b/app-emulation/wine/wine-1.8.1-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.40"
-MV="4.5.6"
+VANILLA_GV="2.40"
+VANILLA_MV="4.5.6"
 STAGING_GV="2.40"
 STAGING_MV="4.5.6"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -35,10 +35,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -262,7 +262,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -347,7 +350,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.8.2-r1.ebuild 
b/app-emulation/wine/wine-1.8.2-r1.ebuild
index 6d7436a..772d165 100644
--- a/app-emulation/wine/wine-1.8.2-r1.ebuild
+++ b/app-emulation/wine/wine-1.8.2-r1.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.40"
-MV="4.5.6"
+VANILLA_GV="2.40"
+VANILLA_MV="4.5.6"
 STAGING_GV="2.40"
 STAGING_MV="4.5.6"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -35,10 +35,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -262,7 +262,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -347,7 +350,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.8.2.ebuild 
b/app-emulation/wine/wine-1.8.2.ebuild
index 0da62bb..d9b6371 100644
--- a/app-emulation/wine/wine-1.8.2.ebuild
+++ b/app-emulation/wine/wine-1.8.2.ebuild
@@ -314,7 +314,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.8.3.ebuild 
b/app-emulation/wine/wine-1.8.3.ebuild
index 6d39710..1feebae 100644
--- a/app-emulation/wine/wine-1.8.3.ebuild
+++ b/app-emulation/wine/wine-1.8.3.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.40"
-MV="4.5.6"
+VANILLA_GV="2.40"
+VANILLA_MV="4.5.6"
 STAGING_GV="2.40"
 STAGING_MV="4.5.6"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -35,10 +35,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -262,7 +262,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -346,7 +349,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.10-r1.ebuild 
b/app-emulation/wine/wine-1.9.10-r1.ebuild
index 97400a5..33c7d8f 100644
--- a/app-emulation/wine/wine-1.9.10-r1.ebuild
+++ b/app-emulation/wine/wine-1.9.10-r1.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.2"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.2"
 STAGING_GV="2.47-beta1"
 STAGING_MV="4.6.2"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -360,7 +363,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.11-r1.ebuild 
b/app-emulation/wine/wine-1.9.11-r1.ebuild
index 97400a5..33c7d8f 100644
--- a/app-emulation/wine/wine-1.9.11-r1.ebuild
+++ b/app-emulation/wine/wine-1.9.11-r1.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.2"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.2"
 STAGING_GV="2.47-beta1"
 STAGING_MV="4.6.2"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -360,7 +363,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.12.ebuild 
b/app-emulation/wine/wine-1.9.12.ebuild
index 1c8e112..d5f0bad 100644
--- a/app-emulation/wine/wine-1.9.12.ebuild
+++ b/app-emulation/wine/wine-1.9.12.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.3"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.3"
 STAGING_GV="2.47-beta1"
 STAGING_MV="4.6.3"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -360,7 +363,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.13.ebuild 
b/app-emulation/wine/wine-1.9.13.ebuild
index 5da73b4..c637572 100644
--- a/app-emulation/wine/wine-1.9.13.ebuild
+++ b/app-emulation/wine/wine-1.9.13.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.47"
-MV="4.6.3"
+VANILLA_GV="2.47"
+VANILLA_MV="4.6.3"
 STAGING_GV="2.47"
 STAGING_MV="4.6.3"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -359,7 +362,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.4-r2.ebuild 
b/app-emulation/wine/wine-1.9.4-r2.ebuild
index e72fc49..0f6ce35 100644
--- a/app-emulation/wine/wine-1.9.4-r2.ebuild
+++ b/app-emulation/wine/wine-1.9.4-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.5.6"
+VANILLA_GV="2.44"
+VANILLA_MV="4.5.6"
 STAGING_GV="2.44"
 STAGING_MV="4.5.6"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -260,7 +260,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -343,7 +346,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.5-r2.ebuild 
b/app-emulation/wine/wine-1.9.5-r2.ebuild
index a2e4f3e..717ef85 100644
--- a/app-emulation/wine/wine-1.9.5-r2.ebuild
+++ b/app-emulation/wine/wine-1.9.5-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.0"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.0"
 STAGING_GV="2.44"
 STAGING_MV="4.6.0"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -259,7 +259,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -345,7 +348,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.6-r2.ebuild 
b/app-emulation/wine/wine-1.9.6-r2.ebuild
index 47058cb..c52e247 100644
--- a/app-emulation/wine/wine-1.9.6-r2.ebuild
+++ b/app-emulation/wine/wine-1.9.6-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.0"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.0"
 STAGING_GV="2.44"
 STAGING_MV="4.6.0"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -259,7 +259,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -342,7 +345,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.7-r2.ebuild 
b/app-emulation/wine/wine-1.9.7-r2.ebuild
index 47058cb..c52e247 100644
--- a/app-emulation/wine/wine-1.9.7-r2.ebuild
+++ b/app-emulation/wine/wine-1.9.7-r2.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.0"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.0"
 STAGING_GV="2.44"
 STAGING_MV="4.6.0"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -259,7 +259,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -342,7 +345,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.8-r1.ebuild 
b/app-emulation/wine/wine-1.9.8-r1.ebuild
index c886ca7..2db9e5b 100644
--- a/app-emulation/wine/wine-1.9.8-r1.ebuild
+++ b/app-emulation/wine/wine-1.9.8-r1.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.2"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.2"
 STAGING_GV="2.44"
 STAGING_MV="4.6.2"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -34,10 +34,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -259,7 +259,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -342,7 +345,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-1.9.9-r1.ebuild 
b/app-emulation/wine/wine-1.9.9-r1.ebuild
index 34d2b89..ef7d72c 100644
--- a/app-emulation/wine/wine-1.9.9-r1.ebuild
+++ b/app-emulation/wine/wine-1.9.9-r1.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.44"
-MV="4.6.2"
+VANILLA_GV="2.44"
+VANILLA_MV="4.6.2"
 STAGING_GV="2.44"
 STAGING_MV="4.6.2"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -360,7 +363,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

diff --git a/app-emulation/wine/wine-9999.ebuild 
b/app-emulation/wine/wine-9999.ebuild
index 5da73b4..c637572 100644
--- a/app-emulation/wine/wine-9999.ebuild
+++ b/app-emulation/wine/wine-9999.ebuild
@@ -21,8 +21,8 @@ else
        KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
 fi
 
-GV="2.47"
-MV="4.6.3"
+VANILLA_GV="2.47"
+VANILLA_MV="4.6.3"
 STAGING_GV="2.47"
 STAGING_MV="4.6.3"
 [[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
@@ -36,10 +36,10 @@ HOMEPAGE="http://www.winehq.org/";
 SRC_URI="${SRC_URI}
        !staging? (
                gecko? (
-                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
-                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
+                       abi_x86_32? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi
 )
+                       abi_x86_64? ( 
https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi
 )
                )
-               mono? ( 
https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
+               mono? ( 
https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi )
        )
        staging? (
                gecko? (
@@ -264,7 +264,10 @@ pkg_pretend() {
 
 pkg_setup() {
        wine_build_environment_check || die
-       if use staging; then
+       if ! use staging; then
+               GV=${VANILLA_GV}
+               MV=${VANILLA_MV}
+       else
                GV=${STAGING_GV}
                MV=${STAGING_MV}
        fi
@@ -359,7 +362,7 @@ src_prepare() {
        # hi-res default icon, #472990, 
http://bugs.winehq.org/show_bug.cgi?id=24652
        cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico 
dlls/user32/resources/ || die
 
-       l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
+       l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect 
LINGUAS
 }
 
 src_configure() {

Reply via email to