Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 511184 | Differences between
and this patch

Collapse All | Expand All

(-)wine-1.7.19-r1.ebuild (-51 / +45 lines)
Lines 8-14 AUTOTOOLS_AUTORECONF=1 Link Here
8
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
8
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
9
PLOCALE_BACKUP="en"
9
PLOCALE_BACKUP="en"
10
10
11
inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
11
inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
12
12
13
if [[ ${PV} == "9999" ]] ; then
13
if [[ ${PV} == "9999" ]] ; then
14
	EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
14
	EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
Lines 340-372 src_prepare() { Link Here
340
	l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
340
	l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
341
}
341
}
342
342
343
do_configure() {
344
	local myeconfargs=( "${myeconfargs[@]}" )
345
346
	if use amd64; then
347
		if [[ ${ABI} == amd64 ]]; then
348
			myeconfargs+=( --enable-win64 )
349
		else
350
			use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394"
351
			# We currently don't have 32-bit libnetapi on amd64; #494394
352
			myeconfargs+=(
353
				--without-netapi
354
				--disable-win64
355
			)
356
		fi
357
358
		# Note: using --with-wine64 results in problems with multilib.eclass
359
		# CC/LD hackery. We're using separate tools instead.
360
	fi
361
362
	autotools-utils_src_configure
363
}
364
365
src_configure() {
343
src_configure() {
366
	export LDCONFIG=/bin/true
344
	export LDCONFIG=/bin/true
367
	use custom-cflags || strip-flags
345
	use custom-cflags || strip-flags
368
346
369
	local myeconfargs=( # common
347
	multilib-minimal_src_configure
348
}
349
350
multilib_src_configure() {
351
	local myconf=(
370
		--sysconfdir=/etc/wine
352
		--sysconfdir=/etc/wine
371
		$(use_with alsa)
353
		$(use_with alsa)
372
		$(use_with capi)
354
		$(use_with capi)
Lines 383-389 src_configure() { Link Here
383
		$(use_with jpeg)
365
		$(use_with jpeg)
384
		$(use_with ldap)
366
		$(use_with ldap)
385
		$(use_with mp3 mpg123)
367
		$(use_with mp3 mpg123)
386
		$(use_with netapi)
368
		# We currently do not have 32-bit libnetapi on amd64; #494394
369
		$(multilib_native_use_with netapi)
387
		$(use_with nls gettext)
370
		$(use_with nls gettext)
388
		$(use_with openal)
371
		$(use_with openal)
389
		$(use_with opencl)
372
		$(use_with opencl)
Lines 403-448 src_configure() { Link Here
403
		$(use_with xml xslt)
386
		$(use_with xml xslt)
404
	)
387
	)
405
388
406
	use pulseaudio && myeconfargs+=( --with-pulse )
389
	use pulseaudio && myconf+=( --with-pulse )
407
	use pipelight && myeconfargs+=( --with-xattr )
390
	use pipelight && myconf+=( --with-xattr )
408
391
409
	if use amd64 && use abi_x86_32; then
392
	local PKG_CONFIG AR RANLIB
410
		# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
393
	# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
411
		# set AR and RANLIB to make QA scripts happy; #483342
394
	# set AR and RANLIB to make QA scripts happy; #483342
412
		tc-export PKG_CONFIG AR RANLIB
395
	tc-export PKG_CONFIG AR RANLIB
396
397
	if use amd64; then
398
		if [[ ${ABI} == amd64 ]]; then
399
			myconf+=( --enable-win64 )
400
		else
401
			use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394"
402
			myconf+=(
403
				--disable-win64
404
			)
405
		fi
406
407
		# Note: using --with-wine64 results in problems with multilib.eclass
408
		# CC/LD hackery. We're using separate tools instead.
413
	fi
409
	fi
414
410
415
	multilib_parallel_foreach_abi do_configure
411
	ECONF_SOURCE=${S} \
412
	econf "${myconf[@]}"
413
	emake depend
416
}
414
}
417
415
418
src_compile() {
416
multilib_src_test() {
419
	autotools-multilib_src_compile depend
417
	# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
420
	autotools-multilib_src_compile all
418
	if [[ ${ABI} == x86 ]]; then
421
}
419
		if [[ $(id -u) == 0 ]]; then
420
			ewarn "Skipping tests since they cannot be run under the root user."
421
			ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
422
			return
423
		fi
422
424
423
src_test() {
425
		WINEPREFIX="${T}/.wine-${ABI}" \
424
	if [[ $(id -u) == 0 ]]; then
426
		Xemake test
425
		ewarn "Skipping tests since they cannot be run under the root user."
426
		ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
427
		return
428
	fi
427
	fi
429
430
	# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
431
	multilib_toolchain_setup x86
432
	local BUILD_DIR="${S}-${ABI}"
433
	cd "${BUILD_DIR}" || die
434
	WINEPREFIX="${T}/.wine-${ABI}" Xemake test
435
}
428
}
436
429
437
src_install() {
430
multilib_src_install_all() {
438
	local DOCS=( ANNOUNCE AUTHORS README )
431
	local DOCS=( ANNOUNCE AUTHORS README )
439
	local l
432
	local l
440
	add_locale_docs() {
433
	add_locale_docs() {
441
		local locale_doc="documentation/README.$1"
434
		local locale_doc="documentation/README.$1"
442
		[[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} )
435
		[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
443
	}
436
	}
444
	l10n_for_each_locale_do add_locale_docs
437
	l10n_for_each_locale_do add_locale_docs
445
	autotools-multilib_src_install
438
439
	einstalldocs
440
	prune_libtool_files --all
446
441
447
	emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
442
	emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
448
	if use gecko ; then
443
	if use gecko ; then
Lines 470-476 src_install() { Link Here
470
	for l in de fr pl; do
465
	for l in de fr pl; do
471
		use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
466
		use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
472
	done
467
	done
473
474
}
468
}
475
469
476
pkg_preinst() {
470
pkg_preinst() {

Return to bug 511184