diff options
Diffstat (limited to 'app-emulation/wine/wine-1.5.2.ebuild')
-rw-r--r-- | app-emulation/wine/wine-1.5.2.ebuild | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/app-emulation/wine/wine-1.5.2.ebuild b/app-emulation/wine/wine-1.5.2.ebuild index c327299dc3a8..ff84925c4c6f 100644 --- a/app-emulation/wine/wine-1.5.2.ebuild +++ b/app-emulation/wine/wine-1.5.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.2.ebuild,v 1.14 2013/09/01 14:38:32 tetromino Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.2.ebuild,v 1.15 2013/10/13 21:10:09 tetromino Exp $ EAPI="5" @@ -107,17 +107,32 @@ DEPEND="${RDEPEND} virtual/yacc sys-devel/flex" -src_unpack() { - if use win64 ; then - [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ - && die "you need gcc-4.4+ to build 64bit wine" +wine_build_environment_check() { + [[ ${MERGE_TYPE} = "binary" ]] && return 0 + + if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then + eerror "You need gcc-4.4+ to build 64-bit wine" + eerror + return 1 fi - if use win32 && use opencl; then - [[ x$(eselect opencl show) = "xintel" ]] && - die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 + if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then + eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." + eerror "See https://bugs.gentoo.org/487864 for more details." + eerror + return 1 fi +} +pkg_pretend() { + wine_build_environment_check || die +} + +pkg_setup() { + wine_build_environment_check || die +} + +src_unpack() { if [[ ${PV} == "9999" ]] ; then git-2_src_unpack else |