/[gentoo-x86]/app-emulation/wine/wine-1.5.7.ebuild
Gentoo

Diff of /app-emulation/wine/wine-1.5.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 Revision 1.12
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/Attic/wine-1.5.7.ebuild,v 1.11 2013/09/01 14:38:32 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/Attic/wine-1.5.7.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
4 4
5EAPI="5" 5EAPI="5"
6 6
7inherit autotools eutils flag-o-matic multilib pax-utils 7inherit autotools eutils flag-o-matic multilib pax-utils
8 8
111 prelink? ( sys-devel/prelink ) 111 prelink? ( sys-devel/prelink )
112 virtual/pkgconfig 112 virtual/pkgconfig
113 virtual/yacc 113 virtual/yacc
114 sys-devel/flex" 114 sys-devel/flex"
115 115
116wine_build_environment_check() {
117 [[ ${MERGE_TYPE} = "binary" ]] && return 0
118
119 if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
120 eerror "You need gcc-4.4+ to build 64-bit wine"
121 eerror
122 return 1
123 fi
124
125 if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
126 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
127 eerror "See https://bugs.gentoo.org/487864 for more details."
128 eerror
129 return 1
130 fi
131}
132
133pkg_pretend() {
134 wine_build_environment_check || die
135}
136
137pkg_setup() {
138 wine_build_environment_check || die
139}
140
116src_unpack() { 141src_unpack() {
117 if use win64 ; then
118 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
119 && die "you need gcc-4.4+ to build 64bit wine"
120 fi
121
122 if use win32 && use opencl; then
123 [[ x$(eselect opencl show) = "xintel" ]] &&
124 die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
125 fi
126
127 if [[ ${PV} == "9999" ]] ; then 142 if [[ ${PV} == "9999" ]] ; then
128 git-2_src_unpack 143 git-2_src_unpack
129 else 144 else
130 unpack ${MY_P}.tar.bz2 145 unpack ${MY_P}.tar.bz2
131 fi 146 fi

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20