diff options
author | Erik Moen <eroen-overlay@occam.eroen.eu> | 2019-09-19 16:05:08 +0200 |
---|---|---|
committer | Erik Moen <eroen-overlay@occam.eroen.eu> | 2019-09-19 16:05:08 +0200 |
commit | 168c481db277e12e30ba6dea71a774337512ce32 (patch) | |
tree | b991bad5173a687c8b93109bf2535f0cd7a19828 | |
parent | stremio-9999 - new ebuild (diff) | |
download | eroen-master.tar.gz eroen-master.tar.bz2 eroen-master.zip |
Signed-off-by: Erik Moen <eroen-overlay@occam.eroen.eu>
62 files changed, 0 insertions, 12902 deletions
diff --git a/app-emulation/wine-compholio/Manifest b/app-emulation/wine-compholio/Manifest deleted file mode 100644 index 9cfa8f2..0000000 --- a/app-emulation/wine-compholio/Manifest +++ /dev/null @@ -1,8 +0,0 @@ -DIST wine-1.7.26.tar.bz2 21708411 SHA256 e20c7c26a3bd887afac655a274335923ae7ccf4053383e4edbb0c290aadb5de8 SHA512 4203959776f0977999fa9e1751515207fb4292b3c35b755ed7c68d53f179aabfba997fea5c3fdf9abe2c7fe21aeba364173f60c0666e7603c75d470a855b1ca7 WHIRLPOOL eb8aeb70aca2598b03a6d374b0a8d00e18862469259f25b4441b3bf65d234a53ec04cbe183bb70f1232e9663714fc3517c9882b2e4ef9b359bf9a468472dfa57 -DIST wine-1.7.27.tar.bz2 21710372 SHA256 99d2050c5bd04591a3e5f84d2ad6c021deb4d8b97874050cd3946d5c984d32b2 SHA512 60ffa0897f1bcffdbbc86ca6d7a43c2f5cf19d2850d77d7246114d5e847d738987f7e363f5a25bcde7de4301e5533263243bb1c75eea208ca6431d32286e3479 WHIRLPOOL 8a83f7b1e43697c37650724fe66a3176af7d5a5364adb5c923d9207ddb19e5559c777d15fcb9a0521d20bd29d5754cf0cb5c0c68307bc74b1c98c7daf86693c8 -DIST wine-compholio-1.7.26.tar.gz 8358571 SHA256 e1b9bba860467fa0914d804e07f99ce0491f3f21cc6e1c061674a7667093d751 SHA512 27356891a97e577cfa4ec945304523e91851e9384d19ba480cd2f951fc419f615adf4a680caba0d7898cca2875f47621210a30199f227e68083babfae89ace82 WHIRLPOOL 4dac17167378ac8f4eedb50ea7d6521bfa80e0578d07b7bbdf11b10fbd620308681992b3369dc9920e5e6445be2415b606485dbf44103393443e04fda40c714e -DIST wine-compholio-1.7.27.tar.gz 8362747 SHA256 b234e6010aaf5df3d6fe73c8d55aab977ac04b1749ca0f03346724d64f9202d1 SHA512 207b4e7a5fd21d91a5ced2e621039e6640fe3214f179d97fbd0125cc7afbadd417081959f9c8b7b01020cd377aa3bdc98b541e5dff24bfa3bf47e0492a33b3e9 WHIRLPOOL 04bd19f4bc3a62ad9c43f95dda86f6d42e7aa2053f59ec5dd98eb5b66e989709d853eccbe8757b6be6fa62838ee3839a22faf1f44b4d099c92485411c42b2ba1 -DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00 -DIST wine-mono-4.5.2.msi 52502528 SHA256 d9124edb41ba4418af10eba519dafb25ab4338c567d25ce0eb4ce1e1b4d7eaad SHA512 73c907f63b73836d5afd0753197358aaea43a74a47800f929ef0627112298256f1fa46d1b9ff297b117468d953cdeab21fb5962db13c5debbcb71004462df609 WHIRLPOOL 18d3544c6753c5a01917bfc1b694f31ce45213108527f13317ec0bb8b2d2339ce41800534967e067cd15cd186ef9e186a5d3252275e443dfa1a6ae3641d4d17c -DIST wine_gecko-2.24-x86.msi 22373888 SHA256 6e38acae87ea66e2c1e8f2f0afe88f89eed3e6e0b431cd3da38dea814b71202c SHA512 f158d28ca09bc900a2680892e7ac10770e06050a9251e1ec3a953fee0bf9b1c326e166f92fb88a4648297b6587c91a5ef5af35f267bb2ba5f679da4c8fdb6898 WHIRLPOOL bbe7a2572d89dc5e0347ba11b2014bac79fc4427d7551655313a46b147a79c1607b7f46596877c459ddaa0e202337fb3d217429ddd6a4df49ee33b373a788487 -DIST wine_gecko-2.24-x86_64.msi 23608320 SHA256 47557da68bcb2aedaebb93af73275aac96ba23e896bd98f25f2acbfd216d9cc8 SHA512 45ce0dcf42c3e2fe2198092812242e3467b19db4a4946e0b1a2d6327fd48aa936fb85cc1930bace6eaba0c61bff3a6536767ba0a91a0f085f307d1bddd171f0c WHIRLPOOL b6ba7c784d3a79d7afc11f0e12f0372b52b9f194eedfd083abed36a461e7301d2dd936be3be12619364f6ac5aae9cfbfb7fc47141bff92b62826f209365210ec diff --git a/app-emulation/wine-compholio/files b/app-emulation/wine-compholio/files deleted file mode 120000 index 67f3b06..0000000 --- a/app-emulation/wine-compholio/files +++ /dev/null @@ -1 +0,0 @@ -../wine/files/
\ No newline at end of file diff --git a/app-emulation/wine-compholio/metadata.xml b/app-emulation/wine-compholio/metadata.xml deleted file mode 100644 index 23ab2f2..0000000 --- a/app-emulation/wine-compholio/metadata.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<longdescription> -Wine is an Open Source implementation of the Windows API on top of X and Unix. - -Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris. -</longdescription> -<use> - <flag name='capi'>Enable ISDN support via CAPI</flag> - <flag name='custom-cflags'>Bypass strip-flags; use at your own peril</flag> - <flag name='dos'>Pull in <pkg>games-emulation/dosbox</pkg> to run DOS applications</flag> - <flag name='gecko'>Add support for the Gecko engine when using iexplore</flag> - <flag name='mono'>Add support for .NET using Wine's Mono add-on</flag> - <flag name='multislot'>Allow concurrent installation of multiple versions</flag> - <flag name='netapi'>Use libnetapi from <pkg>net-fs/samba</pkg> to support Windows networks in netapi32.dll</flag> - <flag name='opencl'>Enable OpenCL support</flag> - <flag name='osmesa'>Add support for OpenGL in bitmaps using libOSMesa</flag> - <flag name='perl'>Install helpers written in perl (winedump/winemaker)</flag> - <flag name='pipelight'>Apply unofficial Compholio patches for Pipelight/Silverlight support; - use at your own peril</flag> - <flag name='prelink'>Run prelink on DLLs during build -- do not disable if you do not know what this means as it can break things at runtime</flag> - <flag name='realtime'>Pull in <pkg>sys-auth/rtkit</pkg> for low-latency pulseaudio support</flag> - <flag name='run-exes'>Use Wine to open and run .EXE and .MSI files</flag> - <flag name='samba'>Add support for NTLM auth. see - http://wiki.winehq.org/NtlmAuthSetupGuide and - http://wiki.winehq.org/NtlmSigningAndSealing</flag> - <flag name='swtor'>Enable patch to run SWTOR</flag> - <flag name='teso'>Enable patch to run The Elder Scrolls Online</flag> - <flag name='udisks'>Support dynamic storage devices using <pkg>sys-fs/udisks</pkg></flag> -</use> -</pkgmetadata> diff --git a/app-emulation/wine-compholio/wine-compholio-1.7.26.ebuild b/app-emulation/wine-compholio/wine-compholio-1.7.26.ebuild deleted file mode 100644 index 16fff43..0000000 --- a/app-emulation/wine-compholio/wine-compholio-1.7.26.ebuild +++ /dev/null @@ -1,546 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_PN=wine - MY_P="${MY_PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${MY_PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Special build of wine with patches to make more applications work out of the box" -HOMEPAGE="http://www.compholio.com/wine-compholio/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${MY_PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${MY_PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${MY_PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( http://github.com/compholio/wine-compholio/archive/v${PV}.tar.gz -> wine-compholio-${PV}.tar.gz ) - pulseaudio? ( http://github.com/compholio/wine-compholio/archive/v${PV}.tar.gz -> wine-compholio-${PV}.tar.gz ) - http://dev.gentoo.org/~tetromino/distfiles/${MY_PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=compholio-${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pipelight pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} - !${CATEGORY}/wine ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - if use pulseaudio || use pipelight; then - unpack wine-compholio-${PV}.tar.gz - ### Ensure correct order of order-sensitive patchsets - # ntdll-Junction_Points.ok: ntdll-Fix_Free.ok - # ntdll-DOS_Attributes.ok: ntdll-Fix_Free.ok - # server-Stored_ACLs.ok: ntdll-DOS_Attributes.ok - # server-Inherited_ACLs.ok: server-Stored_ACLs.ok - # server-ACL_Compat.ok: server-Inherited_ACLs.ok - mv "${WORKDIR}"/wine-compholio-${PV}/patches/ntdll-{,D000-}Fix_Free || die - mv "${WORKDIR}"/wine-compholio-${PV}/patches/server-{,A000-}Stored_ACLs || die - mv "${WORKDIR}"/wine-compholio-${PV}/patches/server-{,A001-}Inherited_ACLs || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${MY_PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${MY_PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${MY_PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${MY_PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - - local COMPHOLIO_PATCHES=() - # bug #421365 - use pulseaudio && COMPHOLIO_PATCHES+=( - "${WORKDIR}"/wine-compholio-${PV}/patches/winepulse-PulseAudio_Support/*.patch - ) - if use pipelight; then - COMPHOLIO_PATCHES+=( - $(find "${WORKDIR}"/wine-compholio-${PV}/patches/ -type f -name '*.patch' \ - | sed \ - -e '/fonts-Missing_Fonts/d' \ - -e '/winepulse-PulseAudio_Support/d' - ) - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${WORKDIR}"/wine-compholio-${PV}/patches/fonts-Missing_Fonts/*.patch; do - "${WORKDIR}"/wine-compholio-${PV}/debian/tools/gitapply.sh < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - PATCHES+=($(for f in "${COMPHOLIO_PATCHES[@]}"; do echo "${f}"; done | sort)) - for f in "${PATCHES[@]}"; do - # echo '+ { "Miscellaneous", "Sebastian Lackner", "kernel32: Silence repeated CompareStringEx FIXME." },'; \ - echo '+ { "Gentoo", "'${PF}'", "'${f}'" },' - done \ - | "${WORKDIR}"/wine-compholio-${PV}/debian/tools/patchlist.sh \ - > "${T}"/patchlist.patch - PATCHES+=("${T}"/patchlist.patch) - - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ewarn "This package optionally applies the unofficial Compholio patchset" - ewarn "for Pipelight and PulseAudio support, which is unsupported by Wine" - ewarn "developers. Please don't report bugs to Wine bugzilla unless you" - ewarn "can reproduce them with app-emulation/wine." - - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine-compholio/wine-compholio-1.7.27.ebuild b/app-emulation/wine-compholio/wine-compholio-1.7.27.ebuild deleted file mode 120000 index 49765d3..0000000 --- a/app-emulation/wine-compholio/wine-compholio-1.7.27.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-compholio-1.7.26.ebuild
\ No newline at end of file diff --git a/app-emulation/wine-gentoo/Manifest b/app-emulation/wine-gentoo/Manifest deleted file mode 100644 index 8af0bf2..0000000 --- a/app-emulation/wine-gentoo/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00 diff --git a/app-emulation/wine-gentoo/metadata.xml b/app-emulation/wine-gentoo/metadata.xml deleted file mode 100644 index 097975e..0000000 --- a/app-emulation/wine-gentoo/metadata.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -</pkgmetadata> diff --git a/app-emulation/wine-gentoo/wine-gentoo-2013.06.24.ebuild b/app-emulation/wine-gentoo/wine-gentoo-2013.06.24.ebuild deleted file mode 100644 index 75fb9d4..0000000 --- a/app-emulation/wine-gentoo/wine-gentoo-2013.06.24.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit gnome2-utils - -DESCRIPTION="Menu items and icons for wine" -HOMEPAGE="http://dev.gentoo.org/~tetromino/distfiles/wine" -SRC_URI="http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64" # ~x86 ~x86-fbsd -IUSE="" - -RDEPEND="!app-emulation/wine[-multislot(-)]" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -src_install() { - emake install DESTDIR="${D}" EPREFIX="${EPREFIX}" -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine-staging/Manifest b/app-emulation/wine-staging/Manifest deleted file mode 100644 index 382871a..0000000 --- a/app-emulation/wine-staging/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -DIST wine-1.7.33.tar.bz2 21908969 SHA256 e3519d6fa2c0bb91e58da38f14f02607cf366a0154ff1effe528966106d49275 SHA512 a9bb47383b88e9c60edef7883c3ce25f5ad0895b67cdb4393c1c3f9b9ab7245e8d8318df193722a7b8c87ff57cd554df53a24c988566d1dce808b939ed731451 WHIRLPOOL 3747cc9df638e7cba5aaff8cb6bfa26e5588ba87e5bdc9d5e3202f30973bc2c06b0d65027f113066dce82d851c1591ce86421ce6e7d90944f5206d341f7ed51d -DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00 -DIST wine-mono-4.5.4.msi 53706752 SHA256 20bced7fee01f25279edf07670c5033d25c2c9834a839e7a20410ce1c611d6f2 SHA512 307fab2ac50c4eaa5c3fb8446ceb2df0d95c0a9d7c1e6289ef1ec5cc660fa8fcb26025c9723ce2bc01afcaf7e9c4dd9939d1beba877f4f95f6f80d92d8187221 WHIRLPOOL ccd1fed03158dd309d2a1f88558e5ad0e2e43de5ba61ab82702132bd0cdf75db75dcc1a61b5cb2775fdf0ad51464f34d2b3629538b1737cbedb410b859ef092a -DIST wine-staging-1.7.33.tar.gz 8759402 SHA256 30b7ecee549514ecd186689ae8eac15ed37507755025c8272d31e8fd4808b3f2 SHA512 b3b939c8d5af419a9305a16de93486f75197d28bc39be4ca0abdea3e194745bfb401ecf6e092f93c59f68255aa7f051ee847ad3c8521ce87ecbf91abccc900f6 WHIRLPOOL 657bc4d642e1c799c6e0b39ef627c8f6852ab8d511e86f96c54065d87fb144d25a97b1a2572e87a029084d568fda7bbdab7c2ba5255dc07f02691f46e9796960 -DIST wine_gecko-2.34-x86.msi 28269568 SHA256 956c26bf302b1864f4d7cb6caee4fc83d4c1281157731761af6395b876e29ca7 SHA512 abc5a4ef496ee407579cd2f284cbcb03306a08cbf3cc4952f3339286aefb36737d2d641d8e72b10a02a4d71478964e676812452c12ff7cb6aaeaf5210408c358 WHIRLPOOL ef72209b4c63fc81f787644046c5fd168b8a5a4e7e5c8652eb7a78ce3b433d888512bdd5aab6ea07248c9c148175006666cd7a800bcfb2b3a73de3f50d1fab76 -DIST wine_gecko-2.34-x86_64.msi 29802496 SHA256 0f2c1b24c4cd1b3fa3fb3fe31dcd9ee162446b1f3370c0a18c8cb03a0c1a1070 SHA512 6bc69e1c8612533b3f37c16782833bca0e3aaa8ae872fe9f347ee081575c55c03866d6c71a5fb767bf4c3b012ae72f7d9c384d6d25c2584bf349126521e8f463 WHIRLPOOL a03df2c16088cf573c9273a59ba6998455917a49e0bf84028136d0ecff65a91f20edbecec55455b742682dcee5f5e618b8f2e8c15c71625642cd8b67a7774bd0 diff --git a/app-emulation/wine-staging/files b/app-emulation/wine-staging/files deleted file mode 120000 index 67f3b06..0000000 --- a/app-emulation/wine-staging/files +++ /dev/null @@ -1 +0,0 @@ -../wine/files/
\ No newline at end of file diff --git a/app-emulation/wine-staging/metadata.xml b/app-emulation/wine-staging/metadata.xml deleted file mode 100644 index 288d2bb..0000000 --- a/app-emulation/wine-staging/metadata.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<longdescription> -Wine is an Open Source implementation of the Windows API on top of X and Unix. - -Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris. -</longdescription> -<use> - <flag name='capi'>Enable ISDN support via CAPI</flag> - <flag name='custom-cflags'>Bypass strip-flags; use at your own peril</flag> - <flag name='dos'>Pull in <pkg>games-emulation/dosbox</pkg> to run DOS applications</flag> - <flag name='gecko'>Add support for the Gecko engine when using iexplore</flag> - <flag name='mono'>Add support for .NET using Wine's Mono add-on</flag> - <flag name='multislot'>Allow concurrent installation of multiple versions</flag> - <flag name='netapi'>Use libnetapi from <pkg>net-fs/samba</pkg> to support Windows networks in netapi32.dll</flag> - <flag name='opencl'>Enable OpenCL support</flag> - <flag name='osmesa'>Add support for OpenGL in bitmaps using libOSMesa</flag> - <flag name='pcap'>Support packet capture software (e.g. wireshark)</flag> - <flag name='perl'>Install helpers written in perl (winedump/winemaker)</flag> - <flag name='pipelight'>Apply unofficial Wine-Staging patches for Pipelight/Silverlight support; - use at your own peril</flag> - <flag name='prelink'>Run prelink on DLLs during build -- do not disable if you do not know what this means as it can break things at runtime</flag> - <flag name='realtime'>Pull in <pkg>sys-auth/rtkit</pkg> for low-latency pulseaudio support</flag> - <flag name='run-exes'>Use Wine to open and run .EXE and .MSI files</flag> - <flag name='samba'>Add support for NTLM auth. see - http://wiki.winehq.org/NtlmAuthSetupGuide and - http://wiki.winehq.org/NtlmSigningAndSealing</flag> - <flag name='staging'>Apply unofficial Wine-Staging patches for advanced feature support that hasn't made it into upstream Wine yet; - use at your own peril</flag> - <flag name='txc_dxtn'>Apply unofficial Wine-Staging patches for DXTn encoding/decoding support</flag> -</use> -</pkgmetadata> diff --git a/app-emulation/wine-staging/wine-staging-1.7.33-r1.ebuild b/app-emulation/wine-staging/wine-staging-1.7.33-r1.ebuild deleted file mode 100644 index 27ab156..0000000 --- a/app-emulation/wine-staging/wine-staging-1.7.33-r1.ebuild +++ /dev/null @@ -1,563 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -MY_PN=${PN%%-*} -MY_PN_VARIANT=${PN#${MY_PN}} - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - EGIT_BRANCH="master" - inherit git-r3 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${MY_PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${MY_PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.34" -MV="4.5.4" -STAGING_P="wine-staging-${PV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Wine package with wine-staging patchset applied" -HOMEPAGE="http://www.winehq.org/ - pulseaudio? ( http://www.wine-staging.com/ ) - staging? ( http://www.wine-staging.com/ )" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${MY_PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${MY_PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${MY_PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${MY_PN}/${WINE_GENTOO}.tar.bz2" - -if [[ ${PV} == "9999" ]] ; then - use staging || use pulseaudio && MY_GIT_SRC_URI="git://github.com/wine-compholio/wine-staging.git" -else - SRC_URI="${SRC_URI} - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz ) - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )" -fi - -LICENSE="LGPL-2.1" -SLOT="${PV}" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype txc_dxtn +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - pipelight? ( staging ) - txc_dxtn? ( staging ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - staging? ( sys-apps/attr ) - txc_dxtn? ( media-libs/libtxc_dxtn ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - staging? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - txc_dxtn? ( >=media-libs/libtxc_dxtn-1.0.1-r1[abi_x86_32(-)] ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( - >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo - ) - !multislot? ( - !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} - !app-emulation/wine - !app-emulation/wine-compholio - ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine${MY_PN_VARIANT}-${PV} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-r3_src_unpack - if use staging || use pulseaudio; then - EGIT_REPO_URI=${MY_GIT_SRC_URI} - unset ${PN}_LIVE_REPO; - EGIT_CHECKOUT_DIR=${WORKDIR}/${STAGING_P} git-r3_src_unpack || \ - eerror "Failed to clone Wine-Staging repository." - fi - else - unpack ${MY_P}.tar.bz2 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz" - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${MY_PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${MY_PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508 - ) - local STAGING_MAKE_ARGS="-W fonts-Missing_Fonts.ok" - - use pipelight || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W Pipelight.ok" - use txc_dxtn || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W wined3d-CSMT_Helper.ok -W wined3d-CSMT_Main.ok -W d3dx9_36-DXTn.ok -W wined3d-DXTn.ok" - use pulseaudio || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W winepulse-PulseAudio_Support.ok" - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "${FILESDIR}/${MY_PN}-1.7.28-gstreamer-v4.patch" ) - fi - if use staging; then - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported" - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla" - ewarn "unless you can reproduce them with USE=-staging" - - # epatch doesn't support binary patches and we ship our own pulse patches - emake -C "${WORKDIR}/${STAGING_P}/patches" \ - $(echo ${STAGING_MAKE_ARGS}) \ - series - - PATCHES+=( $(sed -e "s:^:${WORKDIR}/${STAGING_P}/patches/:" \ - "${WORKDIR}/${STAGING_P}/patches/series") ) - - # epatch doesn't support binary patches - ebegin "Applying Wine-Staging font patches" - for f in "${WORKDIR}/${STAGING_P}/patches/fonts-Missing_Fonts"/*.patch; do - "../${STAGING_P}/debian/tools/gitapply.sh" < "${f}" \ - || die "Failed to apply ${f}" - done - eend - elif use pulseaudio; then - PATCHES+=( "../${STAGING_P}/patches/winepulse-PulseAudio_Support"/*.patch ) - fi - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine${MY_PN_VARIANT}-${PV} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use staging && myconf+=( --with-xattr ) - use txc_dxtn && myconf+=( $(use_with txc_dxtn) ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}${MY_PN_VARIANT}-${PV} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest deleted file mode 100644 index 2e48ada..0000000 --- a/app-emulation/wine/Manifest +++ /dev/null @@ -1,46 +0,0 @@ -DIST wine-1.5.19.tar.bz2 21013509 SHA256 51ad795ae62d8392ac6fbc3ad595ac57d44bcc779b716573a9d73ca122961023 SHA512 aefc05cb0ce6b41a7a70861fd85c5f5d30501f61923620837f3a8124b039e1eedaea75d261116b26770b64a21b27a4ee13133a07a36157bebd2cbeddd110de27 WHIRLPOOL 3ca550f2b0fb9d6b096f025e9f94b88648386c04d3a82350802fcd05d6b0604d6fe6aa4f6e68876abe523e60a8906438148613d4bdd8e7badd3a251d3c0e60e5 -DIST wine-1.5.20.tar.bz2 21012282 SHA256 75e3073a62a933af5beaa8e8591298325edb57f255ca5b0de55a0f29a4ba2430 SHA512 25de10f4e3f94d79391e61bdadf00af0e6f191b064f61948911d0de4b1c71ab3a727510b7ec4a52882aed0c59e75bb0cd3fb46a0a4da3dc3707045a3af517754 WHIRLPOOL f85ed944dce117761b6509f090161e9d071027571c87675c03f0f78fb29679bf4d4fb382038c5512588e346f8a242ae4a66fa32992a3bacd48af63417158efe2 -DIST wine-1.5.21.tar.bz2 21088257 SHA256 ac77c1dd1a31ccc67f0391b4965959096aeb98745f52c4d91b7bd280e3c8b350 SHA512 3d9847da09f5227d0118f0fc1468134e69ee66dfec3cfee5e069050a4e2b848647d2247264d7f2e9e35f434676be97f4104be170fd02915bb3061b4057c11bb9 WHIRLPOOL 67b5b0693cea4998e48d1e4163b1cd8506401252c268854d559c7a323af082cc635ec10752440e0945b7988b85537af92f204ef645e9e4916e01fc476d19eb85 -DIST wine-1.5.22.tar.bz2 21238224 SHA256 db08a40a5e6fce050b5cca7782d396ed3a9b1dfb23b9915dad93efb886fc6739 SHA512 19e337729542991d0b984c69657c4a3437cd17abe78e9ff21ccd7c1d96097598d790e9ea5d95def355ca4af58cfcbc1e61e15c9845a01e664303182878e456a0 WHIRLPOOL 77a5289705f7579b1d0bf6824031bdd7fa8a86913e438bfbf6bf938f9e7e1807b100b6caa46be9fe37cd0eae4547a5404f9f1dbb6f49e6e4c50b92b6e1445c09 -DIST wine-1.5.28.tar.bz2 22151210 SHA256 0bf84b97213b07b7339543abcdfccc9da22bebcc4d20ce9ca22fdc1502136046 SHA512 6951430cfd71b4d6e14ffa928ac77c4788ee8436fc012ed6787cc89fdb0c054e06a42b75b4ea42f94cdd9e267cc4daddec11e724f4bf8c42282b72cb9e56be56 WHIRLPOOL 95c98db867a263ae615a17f3f3e3ff6d23595dfdb56551a90c8e782d8c1fbd433ae09eea1e639574c1235bda334683dc9e7b04c982529b0519347312e0848c55 -DIST wine-1.7.13.tar.bz2 21385204 SHA256 a72fdee6e1898007b38f3b30584f86d996567ad8d2f1cc0fe3a877be0493b9df SHA512 ba01933770c0fbaf056fe252b77eb7f2c160f5455450cace638bc288683fb8f6d97421927ec935795eda9aae500bfeb19e6ca8d632822c345f8bfb34b3d27d15 WHIRLPOOL e500fb6cebee9d87aa0c9ed788df37e2f744c0cb1453a6dc20e447dabd9e1becabb00f93ea9272856aa35015703e98b7512c2e233f98e67143abc80b1ae7f182 -DIST wine-1.7.14.tar.bz2 21444526 SHA256 2df1937e28936ba33e70a42fddcee01097ca0fbdd4dbf2c2f05d8a2ff5263e09 SHA512 0bd3d74b375c14b3f3601a4e590e4dd1808ff60f6d3d87241596ea8649c910968a2e95bd5031d5065253b6b938ce9002bad159c95457578f2cd9c34e06bac8e6 WHIRLPOOL 31b94611bf5d3c9123829fc9375b8c9306b6e044ed07c08ee0f4d5db47f88c38570f98514e45a0bc326d9352abb385375b9587e84fc23a70152f6696793eb622 -DIST wine-1.7.15.tar.bz2 21463370 SHA256 519137adc562d32035fcf7b110d6e65fdd7721af0b176567a2187397c63f1380 SHA512 7ac95fa4c873570ff04c2ab4adca40d3898cb0f0d5bea081208bb8d16787470f75a9f6f20a1f7123eebbf2acd977391ae35b107c59e25fa48ef3b0bcdcb559b6 WHIRLPOOL d114d2022e91c663e33181213260eecf63d10d515167c27e4fca75bd47f3036a02943c5d5f5ee103202732b9b7c2ae2964724bd88892aeec2c15e634132f5aef -DIST wine-1.7.16.tar.bz2 21478085 SHA256 071ed89d9c76219aa73df6472b99f9f0b35e4977235e2b8e388c11416a2d1c6a SHA512 7baa99280f78eb8881dba470c3a17ab093f9cfb0950eb4dea1a89849ee0794ddda373049fda2fde5551963b231e4548345892e759cf4690ab047c49147fa504e WHIRLPOOL b6ef7a096837d406b0f9a67f6719dae85c12e2f0d00dc9fdcefacd9db5485fccacdfa788e68abf0a279c20daee246ab7d25aeb14f1e96c5bb3187f38550157c1 -DIST wine-1.7.17.tar.bz2 21531865 SHA256 bb6fbd7fd70f9aafba557995d9ce537ded56e750e0a89a062e3318d584a8abef SHA512 32ff77d201200cb8a159395fe5d410b118bf4db16a89a9708128dbb7c25e45457c80d76e2821edf06db99525e5a93b6b1a7ee7166d7972f7ceb7fc47aaf8784b WHIRLPOOL 55f6fe3fced59c6344b2656a22eeba478be4a138ec26c28306316cb0dfdaed0c41f71584dbda683070a1a03a45a010fdd2989a8cb95a81294fa2d8b13c55cbaf -DIST wine-1.7.18.tar.bz2 21595718 SHA256 dab6d12e620e2097a6838a3f6928f3b2ca3aab0b70521b53107ee1998303d378 SHA512 059f60318508f158cceef029c111c2b11bdf334def95aa96361163358ad7632f87fe0d1d9a05060a5b76ddcb367d8490fd31a1b512ecf7cd01f7be82a8ff8677 WHIRLPOOL 8b2dfdb85a7271a447fc827f4afb697bebc3fa3f52463b0debb1631e3c156fe46b00839d94b7e27be1407009608f54f07acb211c68fb6448f7ad30ccbdacf55d -DIST wine-1.7.19.tar.bz2 21633142 SHA256 c5ea9b00c9029ecf47a25881b284d8ea02079dfbabc22aa789d6d07e38b32ff2 SHA512 3bf6399027752150469046c3ea51ff0c7e56bca7ed8db7def16c16c41f31c118c5217bb67882b7de88eb710f2af4a89e2858b82071523d5f9cd00ec66dd0348c WHIRLPOOL b125e2ec48801349bc73483527213daee20674a2e93f30f41e6fe138884ec7a4dbe0698b15ed69ed1062f0a045e11526fab8f23ed701147c85ebc1db0afb7f2d -DIST wine-1.7.21.tar.bz2 21635330 SHA256 a14723104135c21414c61e146144a2c527430057255f8c35a3a7d354e68b9401 SHA512 73db3256d04c681ea7a4524767f9f93c24a4cc96aa901c6fdfd700c7e8968cdb127a110df56f10423cac90aadc783ceafcd0dc571e36ea096c1de03c619164d8 WHIRLPOOL 32bcf10f8665dab43339e79240b534f3fa29087787acd752553b4b717f6c26f8e98d36185f61e928e2c5ef9a3663b9eac7ec42cd9898800ba12efab74c78634c -DIST wine-1.7.26.tar.bz2 21708411 SHA256 e20c7c26a3bd887afac655a274335923ae7ccf4053383e4edbb0c290aadb5de8 SHA512 4203959776f0977999fa9e1751515207fb4292b3c35b755ed7c68d53f179aabfba997fea5c3fdf9abe2c7fe21aeba364173f60c0666e7603c75d470a855b1ca7 WHIRLPOOL eb8aeb70aca2598b03a6d374b0a8d00e18862469259f25b4441b3bf65d234a53ec04cbe183bb70f1232e9663714fc3517c9882b2e4ef9b359bf9a468472dfa57 -DIST wine-1.7.27.tar.bz2 21710372 SHA256 99d2050c5bd04591a3e5f84d2ad6c021deb4d8b97874050cd3946d5c984d32b2 SHA512 60ffa0897f1bcffdbbc86ca6d7a43c2f5cf19d2850d77d7246114d5e847d738987f7e363f5a25bcde7de4301e5533263243bb1c75eea208ca6431d32286e3479 WHIRLPOOL 8a83f7b1e43697c37650724fe66a3176af7d5a5364adb5c923d9207ddb19e5559c777d15fcb9a0521d20bd29d5754cf0cb5c0c68307bc74b1c98c7daf86693c8 -DIST wine-1.7.28.tar.bz2 21811422 SHA256 67c3f157b9e720971d1f7dc582e9f0b16879ef660b5ba284a77f8bdfc6fc2313 SHA512 dffbfeb53d9503ec882941c9d01c4b795c6da6046a2eab5d1ccb4db68a07952cfdbb14600869981b050f45247548d459bd054a390af6baecb232dc0c075ec7ab WHIRLPOOL a55e2acc86435f7254220f05871487e7272318a79dbea00fbfe36faebb5ca70281561ece1c8b79db2e59aea070d2f2d7146d94490925f65c641c52d45c82cf2a -DIST wine-1.7.29.tar.bz2 21823063 SHA256 ae48190d35533197811eeabed989ed9fd3201c44af917107f35ec0bf75b8de62 SHA512 ced6ced1bfdf1b847242399bf54a4a63d0f8a16f3dc1a11c6f2af1baf12d2daa679a5377fe284724b8487cb0573383694c68e363ff2b98230f79c873c4dbbba9 WHIRLPOOL 3db7234f4ba12ea483c0bb8336dcb8becf7bd73298b63700aa7fec61a4723b5bbb7b03b32bd0c8ab1c66b45f6e60bf4dbd30e0da325cf75dc698ca6b69df2993 -DIST wine-1.7.33.tar.bz2 21908969 SHA256 e3519d6fa2c0bb91e58da38f14f02607cf366a0154ff1effe528966106d49275 SHA512 a9bb47383b88e9c60edef7883c3ce25f5ad0895b67cdb4393c1c3f9b9ab7245e8d8318df193722a7b8c87ff57cd554df53a24c988566d1dce808b939ed731451 WHIRLPOOL 3747cc9df638e7cba5aaff8cb6bfa26e5588ba87e5bdc9d5e3202f30973bc2c06b0d65027f113066dce82d851c1591ce86421ce6e7d90944f5206d341f7ed51d -DIST wine-1.7.34.tar.bz2 21956792 SHA256 4d5a3b25450fb232aa9d0d0dd859b7d50b8ffb6180f24aefb6eb4e400d32330b SHA512 55d8c42ecd146fb92c1d91737e9c6e51d6cc36682964bfc8ef73a4495edf884d84fddca173d297b7553823abbddaf4dbc115a5474419be0611f2723beab00b6c WHIRLPOOL 8842bc71632b04a736e51eb3a016395a5a72b1798d43d1a3343956854d4fa1d9b973498abca0a28717ae5c2fd947970066820d5606dfdedb67e3235ded3de2ce -DIST wine-1.7.8.tar.bz2 21463503 SHA256 30e17f5f863a09416f3d229666566b318dbb40f683d4ca6630012c60bb511804 SHA512 1fdaddb7909f818050854bf351d20f445cf6a5906b1bcc789c96ee8d5058c90815a91bbbc6444f3e4527748764f03ab5297585c174b433093a3354a827402fea WHIRLPOOL 3b5b18384ff04b80b936160c2c6e03676d69663c023f484981305c9272d0601b74cda5c5f7d56008b3900d702b1a4fe1929f16b1fba304a6480b076ffede663a -DIST wine-compholio-1.7.26.tar.gz 8358571 SHA256 e1b9bba860467fa0914d804e07f99ce0491f3f21cc6e1c061674a7667093d751 SHA512 27356891a97e577cfa4ec945304523e91851e9384d19ba480cd2f951fc419f615adf4a680caba0d7898cca2875f47621210a30199f227e68083babfae89ace82 WHIRLPOOL 4dac17167378ac8f4eedb50ea7d6521bfa80e0578d07b7bbdf11b10fbd620308681992b3369dc9920e5e6445be2415b606485dbf44103393443e04fda40c714e -DIST wine-compholio-1.7.28.tar.gz 8388708 SHA256 40eabfddd2bf76a3a9498348a7655f6265ab18141be7b21ad4e7be69058eac0e SHA512 ef3fd881a07f648330bcf7576c1deff40c1f6ed3b06bb97f05a65500d7da75e8f820dc3f39dd18cd4d7b1938ca11cf00daf45bc1cf493855059c235ba434932c WHIRLPOOL 2131a7f7c759d31012d32949023e7d2f13c2094eba718a36d4617c3fe80264eae2569cbaff712da77bcc4543605df1a566ddab65cf6116c68bb0203c6a714391 -DIST wine-compholio-daily-1.7.18-1.tar.gz 874844 SHA256 3b42267d2e8b06895cbd16b1941d933efa6d1c01f0a396a12dedbbfb3be4a41f SHA512 d33aed231c64e713967770e2b118fde03b14b6e32cea42037c4940ea9bdacfec2299e9253fe4cb67d557e77d695d5e3ad8363b2c7c8ab788e5e8914bb2102a06 WHIRLPOOL 5997677575dfd9823e6e14f0d4e668ccbf6b75a555e33692c1b986629f438271821c3d68de684202e9cf67d044643577cb63f46645e17386017afb6a68c0add1 -DIST wine-compholio-daily-1.7.21.tar.gz 883814 SHA256 d107eba41706adf039befe5a584e45225e7ebc502a11257227c378581ec22b96 SHA512 770ed2d46f5975de4a728314c3c38834c20f8c49bc5fa7eee36c870b9708404c157f6e1ac4b9ec9e5799ed3b14f825c0653d30a17d332f6b805c6255da0ddf28 WHIRLPOOL 898db4f1a3606e5645a7a1132e0b83264fa5d7c00f94a14fce067702ec3accb397db93fa0c0449df7962800c44e00825fa1cac55b76b5abe42670ad412d67e21 -DIST wine-gentoo-2012.11.24.tar.bz2 57481 SHA256 164248d7ff8cf06053576a3ecc1f6fe88a52763b04058ae53a9a4d5cfb6e7e22 SHA512 2a626ccbd408204dc6d1710ebb524a7961f4f417abc4cf1b65b4954a7b3033592febc8e9886ab47b000fc97dd3fe016a5833079f6bff84cd1d5aeb57a5167e07 WHIRLPOOL c638d0b0d8632d99f34cc4a294c4ddc7b69812af2ef536b3586fcfb41aab88a545d4c85c5a41020911dcb244eb7ed512cc6a957c6efd7ed06bd840f38e91f61d -DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00 -DIST wine-mono-0.0.8.msi 46967296 SHA256 3dfc23bbc29015e4e538dab8b83cb825d3248a0e5cf3b3318503ee7331115402 SHA512 d3009f2301b0a006136e880025a736f24612faa7a954956896124ec7282d35b678f02658e8be12b1c02ee217e594a2c728a9258c36ccb346b186a4781951adbd WHIRLPOOL 1d4b2e88ebab1f603326a238cc908982c7e135a33340087e8645572838d2b6034764e9fe787bb890792dea4c0531d26f9a6a811a7c200edb99ab82f975179389 -DIST wine-mono-4.5.2.msi 52502528 SHA256 d9124edb41ba4418af10eba519dafb25ab4338c567d25ce0eb4ce1e1b4d7eaad SHA512 73c907f63b73836d5afd0753197358aaea43a74a47800f929ef0627112298256f1fa46d1b9ff297b117468d953cdeab21fb5962db13c5debbcb71004462df609 WHIRLPOOL 18d3544c6753c5a01917bfc1b694f31ce45213108527f13317ec0bb8b2d2339ce41800534967e067cd15cd186ef9e186a5d3252275e443dfa1a6ae3641d4d17c -DIST wine-mono-4.5.4.msi 53706752 SHA256 20bced7fee01f25279edf07670c5033d25c2c9834a839e7a20410ce1c611d6f2 SHA512 307fab2ac50c4eaa5c3fb8446ceb2df0d95c0a9d7c1e6289ef1ec5cc660fa8fcb26025c9723ce2bc01afcaf7e9c4dd9939d1beba877f4f95f6f80d92d8187221 WHIRLPOOL ccd1fed03158dd309d2a1f88558e5ad0e2e43de5ba61ab82702132bd0cdf75db75dcc1a61b5cb2775fdf0ad51464f34d2b3629538b1737cbedb410b859ef092a -DIST wine-staging-1.7.29.tar.gz 8423703 SHA256 27fab2e3a16f1af4580328ec399bd383915cd8827855f7e77d69d8ddddee2ade SHA512 a923c8b46c50f013f2b5f87dc554a9cfeb77b60a8ee7822775f38922a2ef90b30967e2489c77a8f5cecc1771a5b19e81e43e17ca74ff904485e7ea13c115d1d2 WHIRLPOOL 32a0f1c7c7ce71354e2aae5c870caaf2b210f5bc2cfc4ac2ab0a1e14bc2ee913fad5c487cd3cca9cc5fe58482b7b3110bf59c8576b690c68ff5e31fb567b2d59 -DIST wine_gecko-1.8-x86.msi 17774592 SHA256 28f3b7e497e1f884a64b2d982b61dda3167efac4c843de198654a1c9144ff9dc SHA512 81cfa990dde3f19e263ecf2957892201a88fd3c683d448d915348f7d8469e03d21c1c724b982f7a65b931857498822d8f6f6cc724205948b462013c0df6064dd WHIRLPOOL 98824a561892a3e0111d7a3becb9a8f4ac7e9dc02c4b612c7c074b2e77ea2f56d85c0666c9cb22f95f6a79b2f43c74f27b533837ffb0ae19e514f5709c2a24ea -DIST wine_gecko-1.8-x86_64.msi 18238976 SHA256 53a600a4767225469fd68431263baac0672ceaec29eb2c7747b4363fd2856db2 SHA512 336527adbc6342fe149d706a05e23a51eb25e54e8ce88e67aa98717a1486bc85d36989315b6a2a428ddc10844bbc9130e76625741d997230a541756b429db1e9 WHIRLPOOL 0f40c5d5177335c6736983d37ee677b4ea183260df07d516bca17ff8327d6024693dec3707db934632bf253cf94614127e60c4e7399de764a3a6c5d59e37c54d -DIST wine_gecko-1.9-x86.msi 19060224 SHA256 2f1df59287a4f21ec0f1322ae10520c8e6a95de10f8ef7339ab217e4b46ce782 SHA512 6bbcbd79f4eb95bcc9ad1902b3b86059f18127c7fbff0f87f7875de2bcdd543441b9dad12d641926e22ba610df2801d82b3c63ef2b62323b5f4bc4f8bd85b124 WHIRLPOOL 5431d42abdefd48cefb5f6ead9324ba7d2a40a305393120beb544f83571974006f4208180c38ea800cc96157523cca16daec5b7b51ea8b5aead9379a4f6ec53a -DIST wine_gecko-1.9-x86_64.msi 19622400 SHA256 0e5f87e5026f1f131fd595f11ae7ed5b5ba9978d917b96821d2ca34d3f91b1ea SHA512 426fe66d0b02ddb7e542db1ef5480867b9bbdd63e927ecba9f237991a2dc4fca119d24bd87dc2c372b90fe899a9f41306e90b3fadea6c69ec1f180f1af02576f WHIRLPOOL 8f7c38089fb89f48db2aa087a55953346a08988e0a0d3c0d215c968127f82f4de10b161fe7015e9114119d5f6f65b7b61bee1ce96720f7d7b7e6d3c1722eae2f -DIST wine_gecko-2.24-x86.msi 22373888 SHA256 6e38acae87ea66e2c1e8f2f0afe88f89eed3e6e0b431cd3da38dea814b71202c SHA512 f158d28ca09bc900a2680892e7ac10770e06050a9251e1ec3a953fee0bf9b1c326e166f92fb88a4648297b6587c91a5ef5af35f267bb2ba5f679da4c8fdb6898 WHIRLPOOL bbe7a2572d89dc5e0347ba11b2014bac79fc4427d7551655313a46b147a79c1607b7f46596877c459ddaa0e202337fb3d217429ddd6a4df49ee33b373a788487 -DIST wine_gecko-2.24-x86_64.msi 23608320 SHA256 47557da68bcb2aedaebb93af73275aac96ba23e896bd98f25f2acbfd216d9cc8 SHA512 45ce0dcf42c3e2fe2198092812242e3467b19db4a4946e0b1a2d6327fd48aa936fb85cc1930bace6eaba0c61bff3a6536767ba0a91a0f085f307d1bddd171f0c WHIRLPOOL b6ba7c784d3a79d7afc11f0e12f0372b52b9f194eedfd083abed36a461e7301d2dd936be3be12619364f6ac5aae9cfbfb7fc47141bff92b62826f209365210ec -DIST wine_gecko-2.34-x86.msi 28269568 SHA256 956c26bf302b1864f4d7cb6caee4fc83d4c1281157731761af6395b876e29ca7 SHA512 abc5a4ef496ee407579cd2f284cbcb03306a08cbf3cc4952f3339286aefb36737d2d641d8e72b10a02a4d71478964e676812452c12ff7cb6aaeaf5210408c358 WHIRLPOOL ef72209b4c63fc81f787644046c5fd168b8a5a4e7e5c8652eb7a78ce3b433d888512bdd5aab6ea07248c9c148175006666cd7a800bcfb2b3a73de3f50d1fab76 -DIST wine_gecko-2.34-x86_64.msi 29802496 SHA256 0f2c1b24c4cd1b3fa3fb3fe31dcd9ee162446b1f3370c0a18c8cb03a0c1a1070 SHA512 6bc69e1c8612533b3f37c16782833bca0e3aaa8ae872fe9f347ee081575c55c03866d6c71a5fb767bf4c3b012ae72f7d9c384d6d25c2584bf349126521e8f463 WHIRLPOOL a03df2c16088cf573c9273a59ba6998455917a49e0bf84028136d0ecff65a91f20edbecec55455b742682dcee5f5e618b8f2e8c15c71625642cd8b67a7774bd0 -DIST winepulse-patches-1.5.19.tar.bz2 47081 SHA256 7fc8e5964bcd4cdd8f14b6a5d6d66d474b958084fd80fb0f0531b08eb7fdfc2a SHA512 54b593ce75ce1ecc8015c85e7de713ddea1331a2701a1ec81fab88dce90f41470469f05b4f2d924da824fc99b1b9c52ed6795158291d7e8f15b5b3c4341cb13f WHIRLPOOL 56b1506b0ffc60a052c923334d21e111707443caf138ba05c6708e4d652a5c7ee2d22d8a82862b1a87a12b49dc1c9bdd8d89000f529ddd8f06685ebbc03dd7f4 -DIST winepulse-patches-1.5.20_pre20121207.tar.bz2 47206 SHA256 7ce845841d1c53f5d2bee3e09e901598321362f8cabc32ff7012c24e366a47e6 SHA512 e0b575231b19c2231ec9648d9e128a2439c672221d579fa40adbe49218db0e98b548f562151cdcbe75a6f018ff9a1c57dbd048de2374ad0cb5748fc3da8060b7 WHIRLPOOL b5511237bac951b39c1fc707348593adc8e5c5b0bf0543e4714cab3e153b2a653fa7ce809097d8dd376cad6c20b1d5b5a9c06d655e0a28c5e035ae5eec761803 -DIST winepulse-patches-1.5.21.tar.bz2 46068 SHA256 038b672bed96cae5c89a854d2e2980bf37c887f50ace519ea62b1da6b3b351e2 SHA512 00ee2c2cf67b17c33a2e4a9cc1406e20d05fde33ce9f98fde37176b55a123b21f0e136b3cc9066a9b4d6062893db3cd60b4eb9574831aaaae4da757ece5ca003 WHIRLPOOL 21c0266ae03f4bfdf87ebdd8c5bedc98e6c1c6fda4fd0ce47a073a000e7aaf66a50a82bc77bd31649afd2837d35b6b6867a6d38c28df573ce5e1dbab6cb25dc8 -DIST winepulse-patches-1.5.22.tar.bz2 46325 SHA256 4850ffb54ee4062c14457a6282b432604272858decaa438d95334c164ca05948 SHA512 0f05afafae79288cc73f926280d20b3acfb8aa617ba9bbfc57529eeb7d0a2a3dc7e20b92bef9d2eb04b32c9a7f0c256a61a88faff5c1df41950aaa946bc748a0 WHIRLPOOL eed9896a75b2765dae03215c34807ed42a9d26828f25d9687983ebbabc1fbf3d757ea8ce4cc805343d1fca0463d8f49b9524175efb2af5cc5d6efc19e0b8e6d4 -DIST winepulse-patches-1.5.25.tar.bz2 46795 SHA256 375c94dc4d12ab6b41da478104a1ca1f9c36d4d7d111f74d005900c8f04e3026 SHA512 1e2f6029cce6feb75fd9f170f0fa791b8b4f5d5e7c852e835c60d6dcb4e3319ed671b9eec2767cde7d8befe96a7fb1970f581efbc2b5d1b6277bb69e7f7e89a3 WHIRLPOOL e2cc043d21a36117a8de69597e61148edbf3b49ede1a95bc196693c47235efbb5a97c7f8964dc4906ece6a982bfce4cb156e4428a2c88c82cfa7cb4e82892503 -DIST winepulse-patches-1.7.12.tar.bz2 49171 SHA256 6c5b3f46ea1c4615c49ee0f6f65936cf650cce6640f0feb4236c707064a9d392 SHA512 ec41f6024d6e2325f14f8caa15bbe38c8dca6c69beb5343063365f58dd8b7edbbc4d24ad176de72cf0e37acae03eb9769b68fcbd40a672680e06156f4a59b12c WHIRLPOOL de8a33ee784606e76a60166e3e29a1fb748ce4b3af1db136558888bd09bb0a044e4a1a9a61ce3de59d55f93c98575ac8d77c3ff17de4d69cda3b8fbd8f6c33c5 -DIST winepulse-patches-1.7.21.tar.bz2 52679 SHA256 38daf95ea99cf831c56634e1dd4a4ea5fa4c11f570dfbddff06ceb7cd05e7303 SHA512 8feb729461a0e9791eeae11bd354407bdb389aefd1d30454781cd56072deeb507dccf5a825e580194d1a26c2c83b631d38967011c5360c46340dc3ceb7c0096d WHIRLPOOL e5cd496a7a66036825cff73dcdb76d787948b05d604b26042b024f7c9e991f4ea61efbd41a53fe667bd023e04cd5763f806166ab3aa9de757105ee3fbe6f65e8 -DIST winepulse-patches-1.7.8.tar.bz2 49140 SHA256 0fd31ea7fec8817561a7b304bbfad6bdd014eb566b0c533e15773064bca555ad SHA512 18c88d4da37714d0216c01929eb92c99161fdf7024d8516512fc2585bc8d5a700fb1b5eb9fb667149e104305f366c867973f41b688a04f63e7cce76f5d85389a WHIRLPOOL 60dfeeb1d51c9ea7730ff1e9263d44fbcf3509e6ae68df1e3d30d965999f19525979f64617494bb1c3e1712c7117f30bebfbcbc75b1b08ba1f1e033720b0cacc diff --git a/app-emulation/wine/files/wine-1.1.15-winegcc.patch b/app-emulation/wine/files/wine-1.1.15-winegcc.patch deleted file mode 100644 index a1cd890..0000000 --- a/app-emulation/wine/files/wine-1.1.15-winegcc.patch +++ /dev/null @@ -1,55 +0,0 @@ -http://bugs.gentoo.org/260726 - ---- wine-1.1.15/tools/winegcc/winegcc.c -+++ wine-1.1.15/tools/winegcc/winegcc.c -@@ -215,10 +215,13 @@ - strarray* files; - }; - -+#undef FORCE_POINTER_SIZE - #ifdef __i386__ - static const enum target_cpu build_cpu = CPU_x86; -+#define FORCE_POINTER_SIZE - #elif defined(__x86_64__) - static const enum target_cpu build_cpu = CPU_x86_64; -+#define FORCE_POINTER_SIZE - #elif defined(__sparc__) - static const enum target_cpu build_cpu = CPU_SPARC; - #elif defined(__ALPHA__) -@@ -968,6 +971,9 @@ - opts.linker_args = strarray_alloc(); - opts.compiler_args = strarray_alloc(); - opts.winebuild_args = strarray_alloc(); -+#ifdef FORCE_POINTER_SIZE -+ opts.force_pointer_size = sizeof(size_t); -+#endif - - /* determine the processor type */ - if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp; ---- wine-1.1.15/tools/winebuild/main.c -+++ wine-1.1.15/tools/winebuild/main.c -@@ -50,10 +50,13 @@ - int link_ext_symbols = 0; - int force_pointer_size = 0; - -+#undef FORCE_POINTER_SIZE - #ifdef __i386__ - enum target_cpu target_cpu = CPU_x86; -+#define FORCE_POINTER_SIZE - #elif defined(__x86_64__) - enum target_cpu target_cpu = CPU_x86_64; -+#define FORCE_POINTER_SIZE - #elif defined(__sparc__) - enum target_cpu target_cpu = CPU_SPARC; - #elif defined(__ALPHA__) -@@ -574,6 +577,10 @@ - signal( SIGTERM, exit_on_signal ); - signal( SIGINT, exit_on_signal ); - -+#ifdef FORCE_POINTER_SIZE -+ force_pointer_size = sizeof(size_t); -+#endif -+ - output_file = stdout; - argv = parse_options( argc, argv, spec ); - diff --git a/app-emulation/wine/files/wine-1.4_rc2-multilib-portage.patch b/app-emulation/wine/files/wine-1.4_rc2-multilib-portage.patch deleted file mode 100644 index be6ffc5..0000000 --- a/app-emulation/wine/files/wine-1.4_rc2-multilib-portage.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=395615 - -Explicitly add the required -m32/m64 to *FLAGS; this overrides any -arch-specific -m* flags that may have been appended by multilib-portage. - -Even though -m32/m64 is now added to *FLAGS, -m32/m64 still has to be -explicitly added to CC and CXX due to wine's build system. For example, -winegcc saves the build-time value of CC and uses it at runtime. - ---- a/configure.ac -+++ b/configure.ac -@@ -133,12 +133,18 @@ - then - CC="$CC -m64" - CXX="$CXX -m64" -+ CFLAGS="$CFLAGS -m64" -+ LDFLAGS="$LDFLAGS -m64" -+ CXXFLAGS="$CXXFLAGS -m64" - host_cpu="x86_64" - notice_platform="64-bit " - AC_SUBST(TARGETFLAGS,"-m64") - else - CC="$CC -m32" - CXX="$CXX -m32" -+ CFLAGS="$CFLAGS -m32" -+ LDFLAGS="$LDFLAGS -m32" -+ CXXFLAGS="$CXXFLAGS -m32" - host_cpu="i386" - notice_platform="32-bit " - AC_SUBST(TARGETFLAGS,"-m32") -@@ -150,6 +156,9 @@ - then - CC="$CC -m32" - CXX="$CXX -m32" -+ CFLAGS="$CFLAGS -m32" -+ LDFLAGS="$LDFLAGS -m32" -+ CXXFLAGS="$CXXFLAGS -m32" - AC_MSG_CHECKING([whether $CC works]) - AC_LINK_IFELSE([AC_LANG_PROGRAM()],AC_MSG_RESULT([yes]), - [AC_MSG_RESULT([no]) diff --git a/app-emulation/wine/files/wine-1.5.17-osmesa-check.patch b/app-emulation/wine/files/wine-1.5.17-osmesa-check.patch deleted file mode 100644 index 8236192..0000000 --- a/app-emulation/wine/files/wine-1.5.17-osmesa-check.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 1ede664b18bd8a88359a3cebb291ad49833ee033 Mon Sep 17 00:00:00 2001 -From: Alexandre Rostovtsev <tetromino@gentoo.org> -Date: Tue, 7 Aug 2012 01:29:01 -0400 -Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa - -If mesa had been built with shared glapi, glAccum is not available in -libOSMesa without explicitly linking to libGL. In addition, in -mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to -libglapi if mesa was built with shared glapi, see -https://bugs.gentoo.org/show_bug.cgi?id=399813 -And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and -libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832 ---- - configure.ac | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index cc32c24..275b792 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1128,7 +1128,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c - - if test "x$with_osmesa" != "xno" - then -- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then -+ osmesa_save_CC=$CC -+ CC=$CXX -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ CC=$osmesa_save_CC -+ fi - WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"], - [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.]) - fi --- -1.8.0 - diff --git a/app-emulation/wine/files/wine-1.5.19-KUSER_SHARED_DATA_18.patch b/app-emulation/wine/files/wine-1.5.19-KUSER_SHARED_DATA_18.patch deleted file mode 100644 index 8ed74ad..0000000 --- a/app-emulation/wine/files/wine-1.5.19-KUSER_SHARED_DATA_18.patch +++ /dev/null @@ -1,144 +0,0 @@ ---- a/dlls/ntdll/Makefile.in -+++ a/dlls/ntdll/Makefile.in -@@ -2,7 +2,7 @@ EXTRADEFS = -D_NTSYSTEM_ - MODULE = ntdll.dll - IMPORTLIB = ntdll - IMPORTS = winecrt0 --EXTRALIBS = @IOKITLIB@ @LIBPTHREAD@ -+EXTRALIBS = @IOKITLIB@ @LIBPTHREAD@ -lrt - EXTRADLLFLAGS = -nodefaultlibs -Wl,--image-base,0x7bc00000 - - C_SRCS = \ ---- a/dlls/ntdll/thread.c -+++ a/dlls/ntdll/thread.c -@@ -23,6 +23,10 @@ - - #include <assert.h> - #include <stdarg.h> -+ -+#include <stdint.h> -+#include <errno.h> -+ - #include <sys/types.h> - #ifdef HAVE_SYS_MMAN_H - #include <sys/mman.h> -@@ -70,6 +74,73 @@ - static LIST_ENTRY tls_links; - static int nb_threads = 1; - -+ -+ -+static void update_shared_data_time(void) -+{ -+ LARGE_INTEGER now, start, irq; -+ -+ NtQuerySystemTime( &now ); -+ -+ //FIXME("%lld\n", now.QuadPart); -+ -+ irq.QuadPart = (now.QuadPart - server_start_time); -+ -+ user_shared_data->InterruptTime.High2Time = irq.HighPart; -+ user_shared_data->InterruptTime.LowPart = irq.LowPart; -+ user_shared_data->InterruptTime.High1Time = irq.HighPart; -+ -+ user_shared_data->SystemTime.High2Time = now.HighPart; -+ user_shared_data->SystemTime.LowPart = now.LowPart; -+ user_shared_data->SystemTime.High1Time = now.HighPart; -+ -+ start.QuadPart = irq.QuadPart / 10000; -+ -+ user_shared_data->u.TickCount.High2Time = start.HighPart; -+ user_shared_data->u.TickCount.LowPart = start.LowPart; -+ user_shared_data->u.TickCount.High1Time = start.HighPart; -+ user_shared_data->TickCountLowDeprecated = start.LowPart; -+} -+ -+static void add_timespec(struct timespec* dst, struct timespec* arg) -+{ -+ dst->tv_sec += arg->tv_sec; -+ dst->tv_nsec += arg->tv_nsec; -+ -+ if(dst->tv_nsec > 999999999) { -+ dst->tv_nsec -= 1000000000; -+ dst->tv_sec++; -+ } -+} -+ -+static void* shared_data_thread(void *thread_arg) -+{ -+ struct timespec start, arg; -+ int e; -+ -+ e = clock_gettime(CLOCK_MONOTONIC, &start); -+ if(e) { -+ FIXME("Unable to get starting time: %s (%d)\n", strerror(errno), errno); -+ return NULL; -+ } -+ -+ arg.tv_sec = 0; -+ arg.tv_nsec = 15600000; -+ -+ while(1) { -+ update_shared_data_time(); -+ add_timespec(&start, &arg); -+ e = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &start, NULL); -+ if(e) { -+ FIXME("clock_nanosleep failed: %s (%d)\n", strerror(e), e); -+ } -+ } -+ -+ return NULL; -+} -+ -+ -+ - /*********************************************************************** - * get_unicode_string - * -@@ -199,11 +270,14 @@ - void *addr; - SIZE_T size, info_size; - HANDLE exe_file = 0; -- LARGE_INTEGER now; -+ // LARGE_INTEGER now; - NTSTATUS status; - struct ntdll_thread_data *thread_data; - static struct debug_info debug_info; /* debug info for initial thread */ - -+ pthread_t thread; -+ int s; -+ - virtual_init(); - - /* reserve space for shared user data */ -@@ -298,16 +372,28 @@ - } - - /* initialize time values in user_shared_data */ -- NtQuerySystemTime( &now ); -+ /* NtQuerySystemTime( &now ); - user_shared_data->SystemTime.LowPart = now.u.LowPart; - user_shared_data->SystemTime.High1Time = user_shared_data->SystemTime.High2Time = now.u.HighPart; - user_shared_data->u.TickCountQuad = (now.QuadPart - server_start_time) / 10000; - user_shared_data->u.TickCount.High2Time = user_shared_data->u.TickCount.High1Time; - user_shared_data->TickCountLowDeprecated = user_shared_data->u.TickCount.LowPart; -+ */ -+ - user_shared_data->TickCountMultiplier = 1 << 24; -+ -+ update_shared_data_time(); - - fill_cpu_info(); - -+ if(!(s = pthread_create(&thread, NULL, &shared_data_thread, NULL))) { -+ if(pthread_detach(thread)) -+ FIXME("Unable to detach thread\n"); -+ } else { -+ FIXME("unable to spawn thread: %s (%d)\n", strerror(s), s); -+ } -+ -+ - return exe_file; - } - diff --git a/app-emulation/wine/files/wine-1.5.23-winebuild-CCAS.patch b/app-emulation/wine/files/wine-1.5.23-winebuild-CCAS.patch deleted file mode 100644 index 3971ddd..0000000 --- a/app-emulation/wine/files/wine-1.5.23-winebuild-CCAS.patch +++ /dev/null @@ -1,214 +0,0 @@ -From 57c57e9dfae50f045503ae9f3107fa3748512483 Mon Sep 17 00:00:00 2001 -From: Alexandre Rostovtsev <tetromino@gentoo.org> -Date: Sun, 3 Feb 2013 19:19:36 -0500 -Subject: [PATCH] winebuild: Use $CCAS to assemble if found - -Commit c14bdaf1 made winebuild use Clang to assemble if found. - -However, just because a user has some version of Clang installed, it -does not mean that she wants to use Clang to assemble Wine. For example, -a user who has both Clang and GAS installed may want to use GAS to avoid -textrels (see https://bugs.gentoo.org/show_bug.cgi?id=455308). - -This patch allows the user to override which assembler gets used by -exporting CCAS at Wine configure time; the name CCAS was chosen for -compatibility with automake's standard AM_PROG_AS macro. ---- - configure | 106 ++++++++++++++++++++++++++++++++++++++++++++ - configure.ac | 4 ++ - tools/winebuild/Makefile.in | 5 ++- - tools/winebuild/utils.c | 12 +++++ - 4 files changed, 126 insertions(+), 1 deletion(-) - -diff --git a/configure b/configure -index e3253ee..d0b7777 100755 ---- a/configure -+++ b/configure -@@ -732,6 +732,8 @@ FLEX - TOOLSDIR - WOW64_DISABLE - TARGETFLAGS -+ac_ct_CCAS -+CCAS - CPPBIN - ac_ct_CXX - CXXFLAGS -@@ -861,6 +863,7 @@ CPPFLAGS - CXX - CXXFLAGS - CCC -+CCAS - CPP - XMKMF' - -@@ -1549,6 +1552,7 @@ Some influential environment variables: - you have headers in a nonstandard directory <include dir> - CXX C++ compiler command - CXXFLAGS C++ compiler flags -+ CCAS Assembler command - CPP C preprocessor - XMKMF Path to xmkmf, Makefile generator for X Window System - -@@ -4075,6 +4079,108 @@ cat >>confdefs.h <<_ACEOF - _ACEOF - - -+ -+if test -n "$ac_tool_prefix"; then -+ for ac_prog in clang gas as -+ do -+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -+set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -+$as_echo_n "checking for $ac_word... " >&6; } -+if ${ac_cv_prog_CCAS+:} false; then : -+ $as_echo_n "(cached) " >&6 -+else -+ if test -n "$CCAS"; then -+ ac_cv_prog_CCAS="$CCAS" # Let the user override the test. -+else -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -+ ac_cv_prog_CCAS="$ac_tool_prefix$ac_prog" -+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+ done -+IFS=$as_save_IFS -+ -+fi -+fi -+CCAS=$ac_cv_prog_CCAS -+if test -n "$CCAS"; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCAS" >&5 -+$as_echo "$CCAS" >&6; } -+else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -+$as_echo "no" >&6; } -+fi -+ -+ -+ test -n "$CCAS" && break -+ done -+fi -+if test -z "$CCAS"; then -+ ac_ct_CCAS=$CCAS -+ for ac_prog in clang gas as -+do -+ # Extract the first word of "$ac_prog", so it can be a program name with args. -+set dummy $ac_prog; ac_word=$2 -+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -+$as_echo_n "checking for $ac_word... " >&6; } -+if ${ac_cv_prog_ac_ct_CCAS+:} false; then : -+ $as_echo_n "(cached) " >&6 -+else -+ if test -n "$ac_ct_CCAS"; then -+ ac_cv_prog_ac_ct_CCAS="$ac_ct_CCAS" # Let the user override the test. -+else -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -+ ac_cv_prog_ac_ct_CCAS="$ac_prog" -+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+ done -+IFS=$as_save_IFS -+ -+fi -+fi -+ac_ct_CCAS=$ac_cv_prog_ac_ct_CCAS -+if test -n "$ac_ct_CCAS"; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCAS" >&5 -+$as_echo "$ac_ct_CCAS" >&6; } -+else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -+$as_echo "no" >&6; } -+fi -+ -+ -+ test -n "$ac_ct_CCAS" && break -+done -+ -+ if test "x$ac_ct_CCAS" = x; then -+ CCAS=""$CC"" -+ else -+ case $cross_compiling:$ac_tool_warned in -+yes:) -+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -+ac_tool_warned=yes ;; -+esac -+ CCAS=$ac_ct_CCAS -+ fi -+fi -+ -+ - case $host in - *-darwin*) - if test "x$enable_win64" = "xyes" -diff --git a/configure.ac b/configure.ac -index c93cd08..760f325 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -126,6 +126,10 @@ dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E - AC_CHECK_TOOL(CPPBIN,cpp,cpp) - AC_DEFINE_UNQUOTED(EXEEXT,["$ac_exeext"],[Define to the file extension for executables.]) - -+dnl Analogous to AM_PROG_AS -+AC_ARG_VAR([CCAS],[Assembler command]) -+AC_CHECK_TOOLS(CCAS,[clang gas as],["$CC"]) -+ - case $host in - *-darwin*) - if test "x$enable_win64" = "xyes" -diff --git a/tools/winebuild/Makefile.in b/tools/winebuild/Makefile.in -index 2017129..3fe47a3 100644 ---- a/tools/winebuild/Makefile.in -+++ b/tools/winebuild/Makefile.in -@@ -1,4 +1,7 @@ --DEFS = -D__WINESRC__ $(EXTRADEFS) -+DEFS = \ -+ -DCCAS="\"@CCAS@\"" \ -+ -D__WINESRC__ \ -+ $(EXTRADEFS) - - PROGRAMS = winebuild$(EXEEXT) - MANPAGE = winebuild.man -diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c -index 262ff3a..1c5f918 100644 ---- a/tools/winebuild/utils.c -+++ b/tools/winebuild/utils.c -@@ -352,6 +352,18 @@ struct strarray *get_as_command(void) - static int as_is_clang = 0; - struct strarray *args = strarray_init(); - -+ if (!as_command && strlen( CCAS )) -+ { -+ struct stat st; -+ -+ if (!stat( CCAS, &st )) -+ as_command = CCAS; -+ else -+ as_command = find_tool( CCAS, NULL ); -+ -+ if (as_command && strstr( as_command, "clang" )) as_is_clang = 1; -+ } -+ - if (!as_command) - { - as_command = find_tool( "clang", NULL ); --- -1.8.1.2 - diff --git a/app-emulation/wine/files/wine-1.5.26-winegcc.patch b/app-emulation/wine/files/wine-1.5.26-winegcc.patch deleted file mode 100644 index 2045e34..0000000 --- a/app-emulation/wine/files/wine-1.5.26-winegcc.patch +++ /dev/null @@ -1,59 +0,0 @@ -http://bugs.gentoo.org/260726 - -diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c -index 16b4165..5c77267 100644 ---- a/tools/winebuild/main.c -+++ b/tools/winebuild/main.c -@@ -48,10 +48,13 @@ int link_ext_symbols = 0; - int force_pointer_size = 0; - int unwind_tables = 0; - -+#undef FORCE_POINTER_SIZE - #ifdef __i386__ - enum target_cpu target_cpu = CPU_x86; -+#define FORCE_POINTER_SIZE - #elif defined(__x86_64__) - enum target_cpu target_cpu = CPU_x86_64; -+#define FORCE_POINTER_SIZE - #elif defined(__powerpc__) - enum target_cpu target_cpu = CPU_POWERPC; - #elif defined(__arm__) -@@ -611,6 +614,10 @@ int main(int argc, char **argv) - signal( SIGTERM, exit_on_signal ); - signal( SIGINT, exit_on_signal ); - -+#ifdef FORCE_POINTER_SIZE -+ force_pointer_size = sizeof(size_t); -+#endif -+ - output_file = stdout; - argv = parse_options( argc, argv, spec ); - -diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c -index 06aa200..c44d2e3 100644 ---- a/tools/winegcc/winegcc.c -+++ b/tools/winegcc/winegcc.c -@@ -213,10 +213,13 @@ struct options - strarray* files; - }; - -+#undef FORCE_POINTER_SIZE - #ifdef __i386__ - static const enum target_cpu build_cpu = CPU_x86; -+#define FORCE_POINTER_SIZE - #elif defined(__x86_64__) - static const enum target_cpu build_cpu = CPU_x86_64; -+#define FORCE_POINTER_SIZE - #elif defined(__powerpc__) - static const enum target_cpu build_cpu = CPU_POWERPC; - #elif defined(__arm__) -@@ -1258,6 +1261,9 @@ int main(int argc, char **argv) - opts.linker_args = strarray_alloc(); - opts.compiler_args = strarray_alloc(); - opts.winebuild_args = strarray_alloc(); -+#ifdef FORCE_POINTER_SIZE -+ opts.force_pointer_size = sizeof(size_t); -+#endif - - /* determine the processor type */ - if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp; diff --git a/app-emulation/wine/files/wine-1.5.28-pathofexile.patch b/app-emulation/wine/files/wine-1.5.28-pathofexile.patch deleted file mode 100644 index ea0b3e4..0000000 --- a/app-emulation/wine/files/wine-1.5.28-pathofexile.patch +++ /dev/null @@ -1,40 +0,0 @@ ->From 7362cabccdc7f6b3aa745fcd0ec6f2701f2eb4b2 Mon Sep 17 00:00:00 2001 -From: FeepingCreature <default_357-line@yahoo.de> -Date: Fri, 8 Mar 2013 16:52:39 +0100 -Subject: ntdll: Make NtFlushVirtualMemory's msync() call asynchronous, since - FlushViewOfFile, which calls it, is specified to be asynchronous in - the MSDN - (http://msdn.microsoft.com/en-us/library/windows/desktop/aa366563%28v=vs.85%29.aspx - ). - ---- - dlls/ntdll/virtual.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c -index a99bca4..e4f2bb6 100644 ---- a/dlls/ntdll/virtual.c -+++ b/dlls/ntdll/virtual.c -@@ -62,6 +62,10 @@ WINE_DECLARE_DEBUG_CHANNEL(module); - #define MS_SYNC 0 - #endif - -+#ifndef MS_ASYNC -+#define MS_ASYNC 1 -+#endif -+ - #ifndef MAP_NORESERVE - #define MAP_NORESERVE 0 - #endif -@@ -2780,7 +2784,7 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr, - { - if (!*size_ptr) *size_ptr = view->size; - *addr_ptr = addr; -- if (msync( addr, *size_ptr, MS_SYNC )) status = STATUS_NOT_MAPPED_DATA; -+ if (msync( addr, *size_ptr, MS_ASYNC )) status = STATUS_NOT_MAPPED_DATA; - } - server_leave_uninterrupted_section( &csVirtual, &sigset ); - return status; --- -1.7.12 - diff --git a/app-emulation/wine/files/wine-1.6-memset-O3.patch b/app-emulation/wine/files/wine-1.6-memset-O3.patch deleted file mode 100644 index 75372f8..0000000 --- a/app-emulation/wine/files/wine-1.6-memset-O3.patch +++ /dev/null @@ -1,21 +0,0 @@ -Avoid "undefined reference to `memset'" error when building with -USE=custom-cflags and -O3 in CFLAGS with gcc-4.8. - -See: - -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 -http://bugs.winehq.org/show_bug.cgi?id=33521 -https://bugs.gentoo.org/show_bug.cgi?id=480508 - -diff --git a/configure.ac b/configure.ac -index d8033cf..fe7cc7d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1767,6 +1767,7 @@ then - - dnl Check for some compiler flags - WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")]) -+ WINE_TRY_CFLAGS([-fno-tree-loop-distribute-patterns]) - WINE_TRY_CFLAGS([-fno-strict-aliasing]) - dnl clang needs to be told to fail on unknown options - saved_CFLAGS=$CFLAGS diff --git a/app-emulation/wine/files/wine-1.7.1-KUSER_SHARED_DATA_18.patch b/app-emulation/wine/files/wine-1.7.1-KUSER_SHARED_DATA_18.patch deleted file mode 100644 index 8effafc..0000000 --- a/app-emulation/wine/files/wine-1.7.1-KUSER_SHARED_DATA_18.patch +++ /dev/null @@ -1,139 +0,0 @@ -http://bugs.winehq.org/show_bug.cgi?id=29168 -Star Wars: The Old Republic game client hangs at intro splash - -Generated from wine-1.7.13 ---- a/dlls/ntdll/thread.c -+++ b/dlls/ntdll/thread.c -@@ -23,6 +23,10 @@ - - #include <assert.h> - #include <stdarg.h> -+ -+#include <stdint.h> -+#include <errno.h> -+ - #include <sys/types.h> - #ifdef HAVE_SYS_MMAN_H - #include <sys/mman.h> -@@ -69,6 +73,73 @@ - static RTL_BITMAP fls_bitmap; - static int nb_threads = 1; - -+ -+ -+static void update_shared_data_time(void) -+{ -+ LARGE_INTEGER now, start, irq; -+ -+ NtQuerySystemTime( &now ); -+ -+ //FIXME("%lld\n", now.QuadPart); -+ -+ irq.QuadPart = (now.QuadPart - server_start_time); -+ -+ user_shared_data->InterruptTime.High2Time = irq.HighPart; -+ user_shared_data->InterruptTime.LowPart = irq.LowPart; -+ user_shared_data->InterruptTime.High1Time = irq.HighPart; -+ -+ user_shared_data->SystemTime.High2Time = now.HighPart; -+ user_shared_data->SystemTime.LowPart = now.LowPart; -+ user_shared_data->SystemTime.High1Time = now.HighPart; -+ -+ start.QuadPart = irq.QuadPart / 10000; -+ -+ user_shared_data->u.TickCount.High2Time = start.HighPart; -+ user_shared_data->u.TickCount.LowPart = start.LowPart; -+ user_shared_data->u.TickCount.High1Time = start.HighPart; -+ user_shared_data->TickCountLowDeprecated = start.LowPart; -+} -+ -+static void add_timespec(struct timespec* dst, struct timespec* arg) -+{ -+ dst->tv_sec += arg->tv_sec; -+ dst->tv_nsec += arg->tv_nsec; -+ -+ if(dst->tv_nsec > 999999999) { -+ dst->tv_nsec -= 1000000000; -+ dst->tv_sec++; -+ } -+} -+ -+static void* shared_data_thread(void *thread_arg) -+{ -+ struct timespec start, arg; -+ int e; -+ -+ e = clock_gettime(CLOCK_MONOTONIC, &start); -+ if(e) { -+ FIXME("Unable to get starting time: %s (%d)\n", strerror(errno), errno); -+ return NULL; -+ } -+ -+ arg.tv_sec = 0; -+ arg.tv_nsec = 15600000; -+ -+ while(1) { -+ update_shared_data_time(); -+ add_timespec(&start, &arg); -+ e = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &start, NULL); -+ if(e) { -+ FIXME("clock_nanosleep failed: %s (%d)\n", strerror(e), e); -+ } -+ } -+ -+ return NULL; -+} -+ -+ -+ - /*********************************************************************** - * get_unicode_string - * -@@ -215,11 +286,14 @@ - void *addr; - SIZE_T size, info_size; - HANDLE exe_file = 0; -- LARGE_INTEGER now; -+ // LARGE_INTEGER now; - NTSTATUS status; - struct ntdll_thread_data *thread_data; - static struct debug_info debug_info; /* debug info for initial thread */ - -+ pthread_t thread; -+ int s; -+ - virtual_init(); - - /* reserve space for shared user data */ -@@ -316,18 +390,30 @@ - } - - /* initialize time values in user_shared_data */ -- NtQuerySystemTime( &now ); -+ /* NtQuerySystemTime( &now ); - user_shared_data->SystemTime.LowPart = now.u.LowPart; - user_shared_data->SystemTime.High1Time = user_shared_data->SystemTime.High2Time = now.u.HighPart; - user_shared_data->u.TickCountQuad = (now.QuadPart - server_start_time) / 10000; - user_shared_data->u.TickCount.High2Time = user_shared_data->u.TickCount.High1Time; - user_shared_data->TickCountLowDeprecated = user_shared_data->u.TickCount.LowPart; -+ */ -+ - user_shared_data->TickCountMultiplier = 1 << 24; -+ -+ update_shared_data_time(); - - fill_cpu_info(); - - NtCreateKeyedEvent( &keyed_event, GENERIC_READ | GENERIC_WRITE, NULL, 0 ); - -+ if(!(s = pthread_create(&thread, NULL, &shared_data_thread, NULL))) { -+ if(pthread_detach(thread)) -+ FIXME("Unable to detach thread\n"); -+ } else { -+ FIXME("unable to spawn thread: %s (%d)\n", strerror(s), s); -+ } -+ -+ - return exe_file; - } - diff --git a/app-emulation/wine/files/wine-1.7.12-osmesa-check.patch b/app-emulation/wine/files/wine-1.7.12-osmesa-check.patch deleted file mode 100644 index 7cafcd4..0000000 --- a/app-emulation/wine/files/wine-1.7.12-osmesa-check.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 6932b9a17c4f64c13f7060895d46334bc7022430 Mon Sep 17 00:00:00 2001 -From: Alexandre Rostovtsev <tetromino@gentoo.org> -Date: Tue, 7 Aug 2012 01:29:01 -0400 -Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa - -If mesa had been built with shared glapi, glAccum is not available in -libOSMesa without explicitly linking to libGL. In addition, in -mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to -libglapi if mesa was built with shared glapi, see -https://bugs.gentoo.org/show_bug.cgi?id=399813 -And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and -libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832 ---- - configure.ac | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index de807d2..a2e8684 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1233,7 +1233,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c - - if test "x$with_osmesa" != "xno" - then -- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS -lm $X_EXTRA_LIBS]) -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS -lm $X_EXTRA_LIBS]) -+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then -+ osmesa_save_CC=$CC -+ CC=$CXX -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS -lm $X_EXTRA_LIBS]) -+ CC=$osmesa_save_CC -+ fi - WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"], - [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.]) - fi --- -1.8.5.3 - diff --git a/app-emulation/wine/files/wine-1.7.2-crypt32-Skip-unknown-item-when.patch b/app-emulation/wine/files/wine-1.7.2-crypt32-Skip-unknown-item-when.patch deleted file mode 100644 index d53920a..0000000 --- a/app-emulation/wine/files/wine-1.7.2-crypt32-Skip-unknown-item-when.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 24a36ed47bfbddf83da5aaf9df1cfbe3fac59d80 Mon Sep 17 00:00:00 2001 -From: Charles Davis <cdavis5x@gmail.com> -Date: Sun, 1 Sep 2013 23:39:41 -0600 -Subject: [PATCH] crypt32: Skip unknown item when decoding a CMS certificate. -Reply-To: Wine Developer's List <wine-devel@winehq.org> - -I ran into this while trying to run Star Citizen under Wine. ---- - dlls/crypt32/decode.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c -index e5f8baf..3561700 100644 ---- a/dlls/crypt32/decode.c -+++ b/dlls/crypt32/decode.c -@@ -5502,6 +5502,8 @@ static BOOL CRYPT_AsnDecodeCMSSignerInfoInternal(const BYTE *pbEncoded, - offsetof(CMSG_CMS_SIGNER_INFO, AuthAttrs), - CRYPT_AsnDecodePKCSAttributesInternal, sizeof(CRYPT_ATTRIBUTES), - TRUE, TRUE, offsetof(CMSG_CMS_SIGNER_INFO, AuthAttrs.rgAttr), 0 }, -+ /* Unknown item */ -+ { ASN_CONSTRUCTOR | ASN_UNIVERSAL | 0x11, 0, NULL, 0, TRUE, FALSE, 0, 0 }, - { ASN_SEQUENCEOF, offsetof(CMSG_CMS_SIGNER_INFO, HashEncryptionAlgorithm), - CRYPT_AsnDecodeAlgorithmId, sizeof(CRYPT_ALGORITHM_IDENTIFIER), - FALSE, TRUE, offsetof(CMSG_CMS_SIGNER_INFO, --- -1.7.12.4 - diff --git a/app-emulation/wine/files/wine-1.7.2-osmesa-check.patch b/app-emulation/wine/files/wine-1.7.2-osmesa-check.patch deleted file mode 100644 index e20ea2c..0000000 --- a/app-emulation/wine/files/wine-1.7.2-osmesa-check.patch +++ /dev/null @@ -1,38 +0,0 @@ -From b7eb1ff48dd1210aa3e1002afc503d5df75d50b9 Mon Sep 17 00:00:00 2001 -From: Alexandre Rostovtsev <tetromino@gentoo.org> -Date: Tue, 7 Aug 2012 01:29:01 -0400 -Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa - -If mesa had been built with shared glapi, glAccum is not available in -libOSMesa without explicitly linking to libGL. In addition, in -mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to -libglapi if mesa was built with shared glapi, see -https://bugs.gentoo.org/show_bug.cgi?id=399813 -And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and -libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832 ---- - configure.ac | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 66b4dd6..0303d87 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1213,7 +1213,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c - - if test "x$with_osmesa" != "xno" - then -- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then -+ osmesa_save_CC=$CC -+ CC=$CXX -+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $XLIB -lm $X_EXTRA_LIBS]) -+ CC=$osmesa_save_CC -+ fi - WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"], - [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.]) - fi --- -1.8.3.2 - diff --git a/app-emulation/wine/files/wine-1.7.28-gstreamer-v4.patch b/app-emulation/wine/files/wine-1.7.28-gstreamer-v4.patch deleted file mode 100644 index fbf930b..0000000 --- a/app-emulation/wine/files/wine-1.7.28-gstreamer-v4.patch +++ /dev/null @@ -1,629 +0,0 @@ -From 9e081cd4a04e3326d4927aa082695f15432590e2 Mon Sep 17 00:00:00 2001 -From: Maarten Lankhorst <maarten.lankhorst@canonical.com> -Date: Thu, 14 Aug 2014 11:49:20 +0200 -Subject: [PATCH] TESTING -- override pthreads to fix gstreamer v4 - -I believe the code is ready and will work properly now in all cases. -but please test before cherry picking this patch, and report -success or failure to me please. - -Changes since v1: - - Call pthread_yield to make sure that we link against libpthread. - This fixes the build on saucy. -Changes since v2: - - Set thread_data->detached before creating the thread to prevent - a race condition. -Changes since v3: - - Set thread_data->detached CORRECTLY. Fix a small race between - thread creation and pthread_detach. ---- - dlls/ntdll/ntdll_misc.h | 3 + - dlls/ntdll/thread.c | 307 +++++++++++++++++++++++++++++++++++++-- - dlls/winegstreamer/glibthread.c | 13 ++ - libs/wine/loader.c | 7 + - libs/wine/wine.map | 6 + - loader/Makefile.in | 2 +- - loader/main.c | 41 +++++ - 7 files changed, 362 insertions(+), 17 deletions(-) - -diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h -index 4370084..1af819b 100644 ---- a/dlls/ntdll/ntdll_misc.h -+++ b/dlls/ntdll/ntdll_misc.h -@@ -28,6 +28,7 @@ - #include "winnt.h" - #include "winternl.h" - #include "wine/server.h" -+#include "wine/list.h" - - #define MAX_NT_PATH_LENGTH 277 - -@@ -235,6 +236,8 @@ struct ntdll_thread_data - WINE_VM86_TEB_INFO vm86; /* 1fc vm86 private data */ - void *exit_frame; /* 204 exit frame pointer */ - #endif -+ struct list entry; -+ BOOL detached; - }; - - static inline struct ntdll_thread_data *ntdll_get_thread_data(void) -diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c -index c8461b0..8d5470e 100644 ---- a/dlls/ntdll/thread.c -+++ b/dlls/ntdll/thread.c -@@ -33,6 +33,7 @@ - #ifdef HAVE_SYS_SYSCALL_H - #include <sys/syscall.h> - #endif -+#include <errno.h> - - #define NONAMELESSUNION - #include "ntstatus.h" -@@ -58,6 +59,7 @@ struct startup_info - TEB *teb; - PRTL_THREAD_START_ROUTINE entry_point; - void *entry_arg; -+ BOOL native_thread; - }; - - static PEB *peb; -@@ -202,6 +204,78 @@ static ULONG get_dyld_image_info_addr(void) - } - #endif /* __APPLE__ */ - -+#ifdef __linux__ -+extern typeof(pthread_create) *__glob_pthread_create, *call_pthread_create; -+extern typeof(pthread_join) *__glob_pthread_join, *call_pthread_join; -+extern typeof(pthread_detach) *__glob_pthread_detach, *call_pthread_detach; -+ -+static typeof(pthread_create) __hook_pthread_create; -+static typeof(pthread_join) __hook_pthread_join; -+static typeof(pthread_detach) __hook_pthread_detach; -+ -+static pthread_mutex_t thread_lock; -+ -+static void thread_wrap_init(void) -+{ -+ pthread_mutexattr_t attr; -+ pthread_mutexattr_init(&attr); -+ pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST); -+ pthread_mutex_init(&thread_lock, &attr); -+ pthread_mutexattr_destroy(&attr); -+ -+ call_pthread_create = __hook_pthread_create; -+ call_pthread_join = __hook_pthread_join; -+ call_pthread_detach = __hook_pthread_detach; -+} -+ -+static TEB *dead_teb; -+static struct list active_list = LIST_INIT(active_list); -+ -+static void take_thread_lock(void) -+{ -+ int ret = pthread_mutex_lock(&thread_lock); -+ if (ret == EOWNERDEAD) -+ pthread_mutex_consistent(&thread_lock); -+} -+ -+static void detach_thread_unlock(TEB *own_teb) -+{ -+ struct ntdll_thread_data *thread_data; -+ TEB *teb = dead_teb; -+ -+ dead_teb = own_teb; -+ -+ pthread_mutex_unlock(&thread_lock); -+ if (!teb) -+ return; -+ -+ thread_data = (struct ntdll_thread_data *)teb->SpareBytes1; -+ __glob_pthread_join(thread_data->pthread_id, NULL); -+ signal_free_thread(teb); -+} -+ -+static void reap_thread(TEB *teb) -+{ -+ struct ntdll_thread_data *thread_data = (struct ntdll_thread_data *)teb->SpareBytes1; -+ take_thread_lock(); -+ if (thread_data->detached) -+ detach_thread_unlock(teb); -+ else { -+ /* -+ * Do not unlock, wait until the thread is thoroughly dead. -+ * This prevents a race condition where detach is called -+ * after the thread has not finished dying yet. -+ */ -+ } -+} -+ -+#else -+#define __glob_pthread_create pthread_create -+#define __glob_pthread_join pthread_join -+#define __glob_pthread_detach pthread_detach -+#define thread_wrap_init() -+#endif -+ - /*********************************************************************** - * thread_init - * -@@ -220,6 +294,7 @@ HANDLE thread_init(void) - struct ntdll_thread_data *thread_data; - static struct debug_info debug_info; /* debug info for initial thread */ - -+ thread_wrap_init(); - virtual_init(); - - /* reserve space for shared user data */ -@@ -349,14 +424,12 @@ void terminate_thread( int status ) - pthread_exit( UIntToPtr(status) ); - } - -- --/*********************************************************************** -- * exit_thread -- */ --void exit_thread( int status ) -+static void exit_thread_common( int status ) - { -+#ifndef __linux__ - static void *prev_teb; - TEB *teb; -+#endif - - if (status) /* send the exit code to the server (0 is already the default) */ - { -@@ -380,24 +453,177 @@ void exit_thread( int status ) - - pthread_sigmask( SIG_BLOCK, &server_block_set, NULL ); - -+#ifndef __linux__ - if ((teb = interlocked_xchg_ptr( &prev_teb, NtCurrentTeb() ))) - { - struct ntdll_thread_data *thread_data = (struct ntdll_thread_data *)teb->SpareBytes1; - - if (thread_data->pthread_id) - { -- pthread_join( thread_data->pthread_id, NULL ); -+ __glob_pthread_join( thread_data->pthread_id, NULL ); - signal_free_thread( teb ); - } - } -+#else -+ reap_thread(NtCurrentTeb()); -+#endif - - close( ntdll_get_thread_data()->wait_fd[0] ); - close( ntdll_get_thread_data()->wait_fd[1] ); - close( ntdll_get_thread_data()->reply_fd ); - close( ntdll_get_thread_data()->request_fd ); -+} -+ -+void exit_thread( int status ) -+{ -+ exit_thread_common(status); - pthread_exit( UIntToPtr(status) ); - } - -+#ifdef __linux__ -+ -+struct unix_arg { -+ void *(*start)(void *); -+ void *arg; -+}; -+ -+/* dummy used for comparison */ -+static DWORD native_unix_start; -+ -+static void call_native_cleanup(void *arg) -+{ -+ exit_thread_common(0); -+} -+ -+static int -+__hook_pthread_create(pthread_t *thread, const pthread_attr_t *attr, -+ void *(*start_routine) (void *), void *parm) -+{ -+ NTSTATUS ret; -+ pthread_t tid; -+ size_t stack = 8 * 1024 * 1024; -+ struct unix_arg arg; -+ arg.start = start_routine; -+ arg.arg = parm; -+ -+ if (!thread) -+ thread = &tid; -+ -+ TRACE("Overriding thread creation!\n"); -+ if (attr) { -+ static int once; -+ if (!once++) -+ FIXME("most thread attributes ignored!\n"); -+ else -+ WARN("most thread attributes ignored!\n"); -+ -+ pthread_attr_getstacksize(attr, &stack); -+ } -+ -+ ret = RtlCreateUserThread( NtCurrentProcess(), NULL, FALSE, NULL, stack, 0, (void*)&native_unix_start, &arg, NULL, (void*)thread ); -+ if (ret != STATUS_SUCCESS) -+ FIXME("ret: %08x\n", ret); -+ switch (ret) { -+ case STATUS_SUCCESS: -+ TRACE("created thread %lx for %p/%p\n", *thread, start_routine, parm); -+ return 0; -+ case STATUS_NO_MEMORY: -+ return ENOMEM; -+ case STATUS_TOO_MANY_OPENED_FILES: -+ return EMFILE; -+ default: -+ ERR("Unhandled ntstatus %08x\n", ret); -+ return ENOMEM; -+ } -+} -+ -+static int __hook_pthread_detach(pthread_t thread) -+{ -+ struct ntdll_thread_data *thread_data; -+ TEB *teb = NULL; -+ -+ if (pthread_equal(thread, pthread_self())) { -+ TRACE("Detached self: %lx\n", pthread_self()); -+ ntdll_get_thread_data()->detached = 1; -+ return 0; -+ } -+ -+ take_thread_lock(); -+ LIST_FOR_EACH_ENTRY(thread_data, &active_list, typeof(*thread_data), entry) { -+ if (pthread_equal(thread_data->pthread_id, thread)) { -+ teb = CONTAINING_RECORD(thread_data, typeof(*teb), SpareBytes1); -+ -+ list_remove(&thread_data->entry); -+ if (!pthread_tryjoin_np(thread, NULL)) { -+ detach_thread_unlock(NULL); -+ TRACE("Thread %lx was dead, cleaning up\n", thread); -+ signal_free_thread(teb); -+ return 0; -+ } -+ thread_data->detached = 1; -+ break; -+ } -+ } -+ detach_thread_unlock(NULL); -+ if (!teb) -+ TRACE("Could not find thread %lx to detach\n", thread); -+ else -+ TRACE("Changed thread %lx to detached\n", thread); -+ return teb ? 0 : ESRCH; -+} -+ -+static int __hook_pthread_join(pthread_t thread, void **retval) -+{ -+ struct ntdll_thread_data *thread_data, *t2; -+ int ret = ESRCH; -+ -+ if (pthread_equal(thread, pthread_self())) -+ return EDEADLK; -+ -+ take_thread_lock(); -+ LIST_FOR_EACH_ENTRY(thread_data, &active_list, typeof(*thread_data), entry) { -+ TEB *teb = CONTAINING_RECORD(thread_data, typeof(*teb), SpareBytes1); -+ -+ if (pthread_equal(thread, thread_data->pthread_id)) { -+ -+ ret = pthread_tryjoin_np(thread, retval); -+ if (!ret) { -+ TRACE("Thread %lx was dead fastpath, cleaning up\n", thread); -+ goto free; -+ } -+ detach_thread_unlock(NULL); -+ -+ ret = __glob_pthread_join(thread, retval); -+ if (ret) { -+ TRACE("Thread %lx join failed with %i, ignoring\n", thread, ret); -+ return ret; -+ } -+ -+ take_thread_lock(); -+ /* Check if someone else freed the thread yet */ -+ LIST_FOR_EACH_ENTRY(t2, &active_list, typeof(*thread_data), entry) -+ if (t2 == thread_data) { -+ TRACE("Cleaning up after successful join\n"); -+ goto free; -+ } -+ TRACE("No clean up after successful join, multiple pthread_join's?\n"); -+ break; -+ -+free: -+ list_remove(&thread_data->entry); -+ detach_thread_unlock(NULL); -+ signal_free_thread(teb); -+ return 0; -+ } -+ } -+ -+ detach_thread_unlock(NULL); -+ if (ret) -+ TRACE("failed with %i\n", ret); -+ return ret; -+} -+ -+#endif - - /*********************************************************************** - * start_thread -@@ -426,9 +652,19 @@ static void start_thread( struct startup_info *info ) - if (TRACE_ON(relay)) - DPRINTF( "%04x:Starting thread proc %p (arg=%p)\n", GetCurrentThreadId(), func, arg ); - -- call_thread_entry_point( (LPTHREAD_START_ROUTINE)func, arg ); --} -+#ifdef __linux__ -+ if (info->native_thread) { -+ void *(*start)(void*) = (void*)func; - -+ FIXME("Started native thread %08x\n", GetCurrentThreadId()); -+ pthread_cleanup_push(call_native_cleanup, NULL); -+ pthread_exit(start(arg)); -+ pthread_cleanup_pop(1); -+ return; -+ } -+#endif -+ call_thread_entry_point( (LPTHREAD_START_ROUTINE)func, arg ); -+} - - /*********************************************************************** - * RtlCreateUserThread (NTDLL.@) -@@ -440,14 +676,13 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR * - HANDLE *handle_ptr, CLIENT_ID *id ) - { - sigset_t sigset; -- pthread_t pthread_id; - pthread_attr_t attr; - struct ntdll_thread_data *thread_data; - struct startup_info *info = NULL; - HANDLE handle = 0, actctx = 0; - TEB *teb = NULL; - DWORD tid = 0; -- int request_pipe[2]; -+ int request_pipe[2], ret; - NTSTATUS status; - - if (process != NtCurrentProcess()) -@@ -472,10 +707,14 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR * - if (handle_ptr) *handle_ptr = wine_server_ptr_handle( result.create_thread.handle ); - else NtClose( wine_server_ptr_handle( result.create_thread.handle )); - } -+ TRACE("CreateThread for other process returns %08x\n", result.create_thread.status); - return result.create_thread.status; - } - -- if (server_pipe( request_pipe ) == -1) return STATUS_TOO_MANY_OPENED_FILES; -+ if (server_pipe( request_pipe ) == -1) { -+ TRACE("CreateThread cannot create request pipe: %m\n"); -+ return STATUS_TOO_MANY_OPENED_FILES; -+ } - wine_server_send_fd( request_pipe[0] ); - - SERVER_START_REQ( new_thread ) -@@ -496,12 +735,16 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR * - if (status) - { - close( request_pipe[1] ); -+ TRACE("CreateThread server request failed with %08x\n", status); - return status; - } - - pthread_sigmask( SIG_BLOCK, &server_block_set, &sigset ); - -- if ((status = signal_alloc_thread( &teb ))) goto error; -+ if ((status = signal_alloc_thread( &teb ))) { -+ TRACE("CreateThread signal thread allocation failed with %08x\n", status); -+ goto error; -+ } - - teb->Peb = NtCurrentTeb()->Peb; - teb->ClientId.UniqueProcess = ULongToHandle(GetCurrentProcessId()); -@@ -524,32 +767,64 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR * - - info = (struct startup_info *)(teb + 1); - info->teb = teb; -- info->entry_point = start; -- info->entry_arg = param; -+#ifdef __linux__ -+ info->native_thread = (void*)start == (void*)&native_unix_start; -+ if (info->native_thread) { -+ struct unix_arg *arg = param; -+ info->entry_point = (void*)arg->start; -+ info->entry_arg = arg->arg; -+ } else -+#endif -+ { -+ info->entry_point = start; -+ info->entry_arg = param; -+ } - - thread_data = (struct ntdll_thread_data *)teb->SpareBytes1; -+#ifdef __linux__ -+ thread_data->detached = !info->native_thread; -+#endif - thread_data->request_fd = request_pipe[1]; - thread_data->reply_fd = -1; - thread_data->wait_fd[0] = -1; - thread_data->wait_fd[1] = -1; -+ thread_data->entry.next = NULL; - -- if ((status = virtual_alloc_thread_stack( teb, stack_reserve, stack_commit ))) goto error; -+ if ((status = virtual_alloc_thread_stack( teb, stack_reserve ?: (8 << 20), stack_commit ?: (1 << 20) ))) { -+ TRACE("Allocating virtual stack for %p (%li/%li) failed with %08x\n", start, stack_reserve, stack_commit, status); -+ goto error; -+ } - - pthread_attr_init( &attr ); - pthread_attr_setstack( &attr, teb->DeallocationStack, - (char *)teb->Tib.StackBase - (char *)teb->DeallocationStack ); - pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM ); /* force creating a kernel thread */ - interlocked_xchg_add( &nb_threads, 1 ); -- if (pthread_create( &pthread_id, &attr, (void * (*)(void *))start_thread, info )) -+ -+ take_thread_lock(); -+ ret = __glob_pthread_create( &thread_data->pthread_id, &attr, (void * (*)(void *))start_thread, info ); -+ if (ret) - { -+ TRACE("pthread create failed with %i/%m\n", ret); - interlocked_xchg_add( &nb_threads, -1 ); - pthread_attr_destroy( &attr ); - status = STATUS_NO_MEMORY; - goto error; - } -+ if (!thread_data->detached) -+ list_add_tail(&active_list, &thread_data->entry); -+ detach_thread_unlock(NULL); -+ - pthread_attr_destroy( &attr ); - pthread_sigmask( SIG_SETMASK, &sigset, NULL ); - -+ TRACE("Created thread succesfully, win handle: %04x, pthread: %lx\n", tid, thread_data->pthread_id); -+ -+#ifdef __linux__ -+ if ((void*)start == (void*)&native_unix_start && id) -+ *(pthread_t*)id = thread_data->pthread_id; -+ else -+#endif - if (id) id->UniqueThread = ULongToHandle(tid); - if (handle_ptr) *handle_ptr = handle; - else NtClose( handle ); -diff --git a/dlls/winegstreamer/glibthread.c b/dlls/winegstreamer/glibthread.c -index 0d829a0..46e22f4 100644 ---- a/dlls/winegstreamer/glibthread.c -+++ b/dlls/winegstreamer/glibthread.c -@@ -43,6 +43,7 @@ - #include <stdlib.h> - #include <stdio.h> - -+#if 0 - #include "windef.h" - #include "winbase.h" - #include "winnls.h" -@@ -388,3 +389,15 @@ void g_thread_impl_init (void) - g_thread_self_tls = TlsAlloc (); - g_thread_init(&g_thread_functions_for_glib_use_default); - } -+ -+#else -+ -+void g_thread_impl_init (void) -+{ -+ static gboolean beenhere = FALSE; -+ -+ if (!beenhere++) -+ g_thread_init(NULL); -+} -+ -+#endif -diff --git a/libs/wine/loader.c b/libs/wine/loader.c -index 7261522..a8c31b9 100644 ---- a/libs/wine/loader.c -+++ b/libs/wine/loader.c -@@ -73,6 +73,13 @@ char **__wine_main_argv = NULL; - WCHAR **__wine_main_wargv = NULL; - char **__wine_main_environ = NULL; - -+#ifdef __linux__ -+#include <pthread.h> -+typeof(pthread_create) *call_pthread_create, *__glob_pthread_create; -+typeof(pthread_join) *call_pthread_join, *__glob_pthread_join; -+typeof(pthread_detach) *call_pthread_detach, *__glob_pthread_detach; -+#endif -+ - struct dll_path_context - { - unsigned int index; /* current index in the dll path list */ -diff --git a/libs/wine/wine.map b/libs/wine/wine.map -index 2159fac..fb3b951 100644 ---- a/libs/wine/wine.map -+++ b/libs/wine/wine.map -@@ -117,6 +117,12 @@ WINE_1.0 - wine_utf8_mbstowcs; - wine_utf8_wcstombs; - wine_wctype_table; -+ __glob_pthread_create; -+ call_pthread_create; -+ __glob_pthread_join; -+ call_pthread_join; -+ __glob_pthread_detach; -+ call_pthread_detach; - - local: *; - }; -diff --git a/loader/Makefile.in b/loader/Makefile.in -index 95e4798..a18dd02 100644 ---- a/loader/Makefile.in -+++ b/loader/Makefile.in -@@ -1,4 +1,4 @@ --EXTRALIBS = $(PTHREAD_LIBS) -+EXTRALIBS = $(PTHREAD_LIBS) $(DL_LIBS) - - C_SRCS = \ - main.c \ -diff --git a/loader/main.c b/loader/main.c -index ac67290..76609e1 100644 ---- a/loader/main.c -+++ b/loader/main.c -@@ -202,6 +202,45 @@ static int pre_exec(void) - - #endif - -+#ifdef __linux__ -+ -+extern typeof(pthread_create) *call_pthread_create, *__glob_pthread_create; -+extern typeof(pthread_detach) *call_pthread_detach, *__glob_pthread_detach; -+extern typeof(pthread_join) *call_pthread_join, *__glob_pthread_join; -+ -+int pthread_create(pthread_t *thread, const pthread_attr_t *attr, -+ void *(*start_routine) (void *), void *arg) -+{ -+ return call_pthread_create(thread, attr, start_routine, arg); -+} -+ -+int pthread_detach(pthread_t thread) -+{ -+ return call_pthread_detach(thread); -+} -+ -+int pthread_join(pthread_t thread, void **retval) -+{ -+ return call_pthread_join(thread, retval); -+} -+ -+static void init_thread_hook(void) { -+ call_pthread_create = __glob_pthread_create = dlvsym(RTLD_NEXT, "pthread_create", "GLIBC_2.2.5"); -+ if (!__glob_pthread_create) -+ call_pthread_create = __glob_pthread_create = dlvsym(RTLD_NEXT, "pthread_create", "GLIBC_2.1"); -+ -+ call_pthread_detach = __glob_pthread_detach = dlsym(RTLD_NEXT, "pthread_detach"); -+ call_pthread_join = __glob_pthread_join = dlsym(RTLD_NEXT, "pthread_join"); -+ -+ /* Call a function from libpthread to ensure being linked against it */ -+ pthread_yield(); -+} -+ -+#else -+ -+#define init_thread_hook() -+ -+#endif - - /********************************************************************** - * main -@@ -211,6 +250,8 @@ int main( int argc, char *argv[] ) - char error[1024]; - int i; - -+ init_thread_hook(); -+ - if (!getenv( "WINELOADERNOEXEC" )) /* first time around */ - { - static char noexec[] = "WINELOADERNOEXEC=1"; --- -1.7.6.6.GIT - diff --git a/app-emulation/wine/metadata.xml b/app-emulation/wine/metadata.xml deleted file mode 100644 index 730c18f..0000000 --- a/app-emulation/wine/metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<longdescription> -Wine is an Open Source implementation of the Windows API on top of X and Unix. - -Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris. -</longdescription> -<use> - <flag name='capi'>Enable ISDN support via CAPI</flag> - <flag name='custom-cflags'>Bypass strip-flags; use at your own peril</flag> - <flag name='dos'>Pull in <pkg>games-emulation/dosbox</pkg> to run DOS applications</flag> - <flag name='gecko'>Add support for the Gecko engine when using iexplore</flag> - <flag name='mono'>Add support for .NET using Wine's Mono add-on</flag> - <flag name='multislot'>Allow concurrent installation of multiple versions</flag> - <flag name='netapi'>Use libnetapi from <pkg>net-fs/samba</pkg> to support Windows networks in netapi32.dll</flag> - <flag name='opencl'>Enable OpenCL support</flag> - <flag name='osmesa'>Add support for OpenGL in bitmaps using libOSMesa</flag> - <flag name='pcap'>Support packet capture software (e.g. wireshark)</flag> - <flag name='pathofexile'>Enable patch to fix slow installation of Path of Exile</flag> - <flag name='perl'>Install helpers written in perl (winedump/winemaker)</flag> - <flag name='pipelight'>Apply unofficial Compholio patches for Pipelight/Silverlight support; - use at your own peril</flag> - <flag name='prelink'>Run prelink on DLLs during build -- do not disable if you do not know what this means as it can break things at runtime</flag> - <flag name='realtime'>Pull in <pkg>sys-auth/rtkit</pkg> for low-latency pulseaudio support</flag> - <flag name='run-exes'>Use Wine to open and run .EXE and .MSI files</flag> - <flag name='samba'>Add support for NTLM auth. see - http://wiki.winehq.org/NtlmAuthSetupGuide and - http://wiki.winehq.org/NtlmSigningAndSealing</flag> - <flag name='swtor'>Enable patch to run SWTOR</flag> - <flag name='teso'>Enable patch to run The Elder Scrolls Online</flag> - <flag name='udisks'>Support dynamic storage devices using <pkg>sys-fs/udisks</pkg></flag> - <flag name='win32'>Build a 32bit version of Wine (won't run Win64 binaries)</flag> - <flag name='win64'>Build a 64bit version of Wine (won't run Win32 binaries)</flag> -</use> -</pkgmetadata> diff --git a/app-emulation/wine/notes-gecko-mono.txt b/app-emulation/wine/notes-gecko-mono.txt deleted file mode 100644 index 068009c..0000000 --- a/app-emulation/wine/notes-gecko-mono.txt +++ /dev/null @@ -1,9 +0,0 @@ -## gecko -- 2.24 - 2014-05-28 -- 2.34 - 2014-11-03 - - Release 1.7.31 - 14 Nov 2014 - -## mono -- 4.5.2 - 2013-11-27 -- 4.5.4 - 2014-11-10 - - Release 1.7.31 - 14 Nov 2014 diff --git a/app-emulation/wine/notes-multislot.txt b/app-emulation/wine/notes-multislot.txt deleted file mode 100644 index 972babf..0000000 --- a/app-emulation/wine/notes-multislot.txt +++ /dev/null @@ -1,10 +0,0 @@ -## ${P} -Imported from gentoo wine with multislot added - -## ${P}-r1 -Drop unupstreamed patchsets, deferred to separate package 'wine-compholio' - -## ${P}-r2 -Add patches for specific issues controlled by useflags - -<!-- vim: set ft=markdown: --> diff --git a/app-emulation/wine/todo b/app-emulation/wine/todo deleted file mode 100644 index e2a0f45..0000000 --- a/app-emulation/wine/todo +++ /dev/null @@ -1,2 +0,0 @@ -Lcms test wrong for <1.7.34 ? - http://source.winehq.org/git/wine.git/commit/4110c93e419ded0572cc1a2bb8b1940a1b370ca7 diff --git a/app-emulation/wine/wine-1.5.19.ebuild b/app-emulation/wine/wine-1.5.19.ebuild deleted file mode 100644 index dfab95b..0000000 --- a/app-emulation/wine/wine-1.5.19.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# 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.19.ebuild,v 1.7 2013/08/05 09:31:06 ssuominen Exp $ - -EAPI="5" - -inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="1.8" -MV="0.0.8" -PULSE_PATCHES="winepulse-patches-1.5.19" -WINE_GENTOO="wine-gentoo-2012.11.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi - win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" -REQUIRED_USE="elibc_glibc? ( threads ) - mono? ( || ( win32 !win64 ) ) - osmesa? ( opengl )" #286560 -RESTRICT="test" #72375 - -MLIB_DEPS="amd64? ( - gstreamer? ( app-emulation/emul-linux-x86-gstplugins ) - truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) - X? ( - >=app-emulation/emul-linux-x86-xlibs-2.1 - >=app-emulation/emul-linux-x86-soundlibs-2.1 - ) - mp3? ( app-emulation/emul-linux-x86-soundlibs ) - odbc? ( app-emulation/emul-linux-x86-db ) - openal? ( app-emulation/emul-linux-x86-sdl ) - opengl? ( app-emulation/emul-linux-x86-opengl ) - osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) - scanner? ( app-emulation/emul-linux-x86-medialibs ) - v4l? ( app-emulation/emul-linux-x86-medialibs ) - app-emulation/emul-linux-x86-baselibs - >=sys-kernel/linux-headers-2.6 - )" -RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - udisks? ( - sys-apps/dbus - sys-fs/udisks:2 - ) - gnutls? ( net-libs/gnutls:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:0= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pulseaudio? ( - media-sound/pulseaudio - sys-auth/rtkit - ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( dev-libs/openssl:0= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - !win64? ( ${MLIB_DEPS} ) - win32? ( ${MLIB_DEPS} ) - xcomposite? ( x11-libs/libXcomposite )" -DEPEND="${RDEPEND} - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -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 && [[ 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 - unpack ${MY_P}.tar.bz2 - fi - - unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 - epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 - epatch "${FILESDIR}"/${PN}-1.5.19-KUSER_SHARED_DATA_18.patch - epatch "../${PULSE_PATCHES}"/*.patch #421365 - epatch_user #282735 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - eautoreconf - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 -} - -do_configure() { - local builddir="${WORKDIR}/wine$1" - mkdir -p "${builddir}" - pushd "${builddir}" >/dev/null - - ECONF_SOURCE=${S} \ - econf \ - --sysconfdir=/etc/wine \ - $(use_with alsa) \ - $(use_with capi) \ - $(use_with lcms cms) \ - $(use_with cups) \ - $(use_with ncurses curses) \ - $(use_with udisks dbus) \ - $(use_with fontconfig) \ - $(use_with gnutls) \ - $(use_with gphoto2 gphoto) \ - $(use_with gsm) \ - $(use_with gstreamer) \ - --without-hal \ - $(use_with jpeg) \ - $(use_with ldap) \ - $(use_with mp3 mpg123) \ - $(use_with nls gettext) \ - $(use_with openal) \ - $(use_with opencl) \ - $(use_with opengl) \ - $(use_with ssl openssl) \ - $(use_with osmesa) \ - $(use_with oss) \ - $(use_with png) \ - $(use_with threads pthread) \ - $(use_with pulseaudio pulse) \ - $(use_with scanner sane) \ - $(use_enable test tests) \ - $(use_with truetype freetype) \ - $(use_with v4l) \ - $(use_with X x) \ - $(use_with xcomposite) \ - $(use_with xinerama) \ - $(use_with xml) \ - $(use_with xml xslt) \ - $2 - - emake -j1 depend - - popd >/dev/null -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - if use win64 ; then - do_configure 64 --enable-win64 - use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 - else - ABI=x86 do_configure 32 --disable-win64 - fi -} - -src_compile() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" all - done -} - -src_install() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" install DESTDIR="${D}" - done - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - dodoc ANNOUNCE AUTHORS README - if use gecko ; then - insinto /usr/share/wine/gecko - doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - if use win32 || ! use win64; then - pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - fi - use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use win64 && ! use win32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine/wine-1.5.20.ebuild b/app-emulation/wine/wine-1.5.20.ebuild deleted file mode 100644 index 3ee5b15..0000000 --- a/app-emulation/wine/wine-1.5.20.ebuild +++ /dev/null @@ -1,303 +0,0 @@ -# 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.20.ebuild,v 1.9 2013/08/05 09:31:06 ssuominen Exp $ - -EAPI="5" - -inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="1.8" -MV="0.0.8" -PULSE_PATCHES="winepulse-patches-1.5.20_pre20121207" -WINE_GENTOO="wine-gentoo-2012.11.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi - win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" -[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio" -REQUIRED_USE="elibc_glibc? ( threads ) - mono? ( || ( win32 !win64 ) ) - osmesa? ( opengl )" #286560 -RESTRICT="test" #72375 - -MLIB_DEPS="amd64? ( - gstreamer? ( app-emulation/emul-linux-x86-gstplugins ) - truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) - X? ( - >=app-emulation/emul-linux-x86-xlibs-2.1 - >=app-emulation/emul-linux-x86-soundlibs-2.1 - ) - mp3? ( app-emulation/emul-linux-x86-soundlibs ) - odbc? ( app-emulation/emul-linux-x86-db ) - openal? ( app-emulation/emul-linux-x86-sdl ) - opengl? ( app-emulation/emul-linux-x86-opengl ) - osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) - scanner? ( app-emulation/emul-linux-x86-medialibs ) - v4l? ( app-emulation/emul-linux-x86-medialibs ) - app-emulation/emul-linux-x86-baselibs - >=sys-kernel/linux-headers-2.6 - )" -RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - udisks? ( - sys-apps/dbus - sys-fs/udisks:2 - ) - gnutls? ( net-libs/gnutls:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:0= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( dev-libs/openssl:0= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - !win64? ( ${MLIB_DEPS} ) - win32? ( ${MLIB_DEPS} ) - xcomposite? ( x11-libs/libXcomposite )" -[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND} - pulseaudio? ( - media-sound/pulseaudio - sys-auth/rtkit - )" -DEPEND="${RDEPEND} - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -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 && [[ 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 - unpack ${MY_P}.tar.bz2 - fi - - unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 - epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 - epatch "${FILESDIR}"/wine-1.5.19-KUSER_SHARED_DATA_18.patch - [[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365 - epatch_user #282735 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - eautoreconf - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 -} - -do_configure() { - local builddir="${WORKDIR}/wine$1" - mkdir -p "${builddir}" - pushd "${builddir}" >/dev/null - - local usepulse - [[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse) - - ECONF_SOURCE=${S} \ - econf \ - --sysconfdir=/etc/wine \ - $(use_with alsa) \ - $(use_with capi) \ - $(use_with lcms cms) \ - $(use_with cups) \ - $(use_with ncurses curses) \ - $(use_with udisks dbus) \ - $(use_with fontconfig) \ - $(use_with gnutls) \ - $(use_with gphoto2 gphoto) \ - $(use_with gsm) \ - $(use_with gstreamer) \ - --without-hal \ - $(use_with jpeg) \ - $(use_with ldap) \ - $(use_with mp3 mpg123) \ - $(use_with nls gettext) \ - $(use_with openal) \ - $(use_with opencl) \ - $(use_with opengl) \ - $(use_with ssl openssl) \ - $(use_with osmesa) \ - $(use_with oss) \ - $(use_with png) \ - $(use_with threads pthread) \ - ${usepulse} \ - $(use_with scanner sane) \ - $(use_enable test tests) \ - $(use_with truetype freetype) \ - $(use_with v4l) \ - $(use_with X x) \ - $(use_with xcomposite) \ - $(use_with xinerama) \ - $(use_with xml) \ - $(use_with xml xslt) \ - $2 - - emake -j1 depend - - popd >/dev/null -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - if use win64 ; then - do_configure 64 --enable-win64 - use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 - else - ABI=x86 do_configure 32 --disable-win64 - fi -} - -src_compile() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" all - done -} - -src_install() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" install DESTDIR="${D}" - done - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - dodoc ANNOUNCE AUTHORS README - if use gecko ; then - insinto /usr/share/wine/gecko - doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - if use win32 || ! use win64; then - pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - fi - use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use win64 && ! use win32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine/wine-1.5.21.ebuild b/app-emulation/wine/wine-1.5.21.ebuild deleted file mode 100644 index e110c43..0000000 --- a/app-emulation/wine/wine-1.5.21.ebuild +++ /dev/null @@ -1,303 +0,0 @@ -# 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.21.ebuild,v 1.6 2013/08/05 09:31:06 ssuominen Exp $ - -EAPI="5" - -inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="1.8" -MV="0.0.8" -PULSE_PATCHES="winepulse-patches-1.5.21" -WINE_GENTOO="wine-gentoo-2012.11.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi - win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" -[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio" -REQUIRED_USE="elibc_glibc? ( threads ) - mono? ( || ( win32 !win64 ) ) - osmesa? ( opengl )" #286560 -RESTRICT="test" #72375 - -MLIB_DEPS="amd64? ( - gstreamer? ( app-emulation/emul-linux-x86-gstplugins ) - truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) - X? ( - >=app-emulation/emul-linux-x86-xlibs-2.1 - >=app-emulation/emul-linux-x86-soundlibs-2.1 - ) - mp3? ( app-emulation/emul-linux-x86-soundlibs ) - odbc? ( app-emulation/emul-linux-x86-db ) - openal? ( app-emulation/emul-linux-x86-sdl ) - opengl? ( app-emulation/emul-linux-x86-opengl ) - osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) - scanner? ( app-emulation/emul-linux-x86-medialibs ) - v4l? ( app-emulation/emul-linux-x86-medialibs ) - app-emulation/emul-linux-x86-baselibs - >=sys-kernel/linux-headers-2.6 - )" -RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - udisks? ( - sys-apps/dbus - sys-fs/udisks:2 - ) - gnutls? ( net-libs/gnutls:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:0= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( dev-libs/openssl:0= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - !win64? ( ${MLIB_DEPS} ) - win32? ( ${MLIB_DEPS} ) - xcomposite? ( x11-libs/libXcomposite )" -[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND} - pulseaudio? ( - media-sound/pulseaudio - sys-auth/rtkit - )" -DEPEND="${RDEPEND} - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -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 && [[ 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 - unpack ${MY_P}.tar.bz2 - fi - - unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 - epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 - epatch "${FILESDIR}"/${PN}-1.5.19-KUSER_SHARED_DATA_18.patch - [[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365 - epatch_user #282735 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - eautoreconf - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 -} - -do_configure() { - local builddir="${WORKDIR}/wine$1" - mkdir -p "${builddir}" - pushd "${builddir}" >/dev/null - - local usepulse - [[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse) - - ECONF_SOURCE=${S} \ - econf \ - --sysconfdir=/etc/wine \ - $(use_with alsa) \ - $(use_with capi) \ - $(use_with lcms cms) \ - $(use_with cups) \ - $(use_with ncurses curses) \ - $(use_with udisks dbus) \ - $(use_with fontconfig) \ - $(use_with gnutls) \ - $(use_with gphoto2 gphoto) \ - $(use_with gsm) \ - $(use_with gstreamer) \ - --without-hal \ - $(use_with jpeg) \ - $(use_with ldap) \ - $(use_with mp3 mpg123) \ - $(use_with nls gettext) \ - $(use_with openal) \ - $(use_with opencl) \ - $(use_with opengl) \ - $(use_with ssl openssl) \ - $(use_with osmesa) \ - $(use_with oss) \ - $(use_with png) \ - $(use_with threads pthread) \ - ${usepulse} \ - $(use_with scanner sane) \ - $(use_enable test tests) \ - $(use_with truetype freetype) \ - $(use_with v4l) \ - $(use_with X x) \ - $(use_with xcomposite) \ - $(use_with xinerama) \ - $(use_with xml) \ - $(use_with xml xslt) \ - $2 - - emake -j1 depend - - popd >/dev/null -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - if use win64 ; then - do_configure 64 --enable-win64 - use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 - else - ABI=x86 do_configure 32 --disable-win64 - fi -} - -src_compile() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" all - done -} - -src_install() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" install DESTDIR="${D}" - done - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - dodoc ANNOUNCE AUTHORS README - if use gecko ; then - insinto /usr/share/wine/gecko - doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - if use win32 || ! use win64; then - pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - fi - use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use win64 && ! use win32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine/wine-1.5.22.ebuild b/app-emulation/wine/wine-1.5.22.ebuild deleted file mode 100644 index f2586b4..0000000 --- a/app-emulation/wine/wine-1.5.22.ebuild +++ /dev/null @@ -1,303 +0,0 @@ -# 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.22.ebuild,v 1.5 2013/08/05 09:31:06 ssuominen Exp $ - -EAPI="5" - -inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="1.9" -MV="0.0.8" -PULSE_PATCHES="winepulse-patches-1.5.22" -WINE_GENTOO="wine-gentoo-2012.11.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi - win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl swtor test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" -[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio" -REQUIRED_USE="elibc_glibc? ( threads ) - mono? ( || ( win32 !win64 ) ) - osmesa? ( opengl )" #286560 -RESTRICT="test" #72375 - -MLIB_DEPS="amd64? ( - gstreamer? ( app-emulation/emul-linux-x86-gstplugins ) - truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) - X? ( - >=app-emulation/emul-linux-x86-xlibs-2.1 - >=app-emulation/emul-linux-x86-soundlibs-2.1 - ) - mp3? ( app-emulation/emul-linux-x86-soundlibs ) - odbc? ( app-emulation/emul-linux-x86-db ) - openal? ( app-emulation/emul-linux-x86-sdl ) - opengl? ( app-emulation/emul-linux-x86-opengl ) - osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) - scanner? ( app-emulation/emul-linux-x86-medialibs ) - v4l? ( app-emulation/emul-linux-x86-medialibs ) - app-emulation/emul-linux-x86-baselibs - >=sys-kernel/linux-headers-2.6 - )" -RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - udisks? ( - sys-apps/dbus - sys-fs/udisks:2 - ) - gnutls? ( net-libs/gnutls:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:0= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( dev-libs/openssl:0= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - !win64? ( ${MLIB_DEPS} ) - win32? ( ${MLIB_DEPS} ) - xcomposite? ( x11-libs/libXcomposite )" -[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND} - pulseaudio? ( - media-sound/pulseaudio - sys-auth/rtkit - )" -DEPEND="${RDEPEND} - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -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 && [[ 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 - unpack ${MY_P}.tar.bz2 - fi - - unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 - epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 - use swtor && epatch "${FILESDIR}"/${PN}-1.5.19-KUSER_SHARED_DATA_18.patch - [[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365 - epatch_user #282735 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - eautoreconf - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 -} - -do_configure() { - local builddir="${WORKDIR}/wine$1" - mkdir -p "${builddir}" - pushd "${builddir}" >/dev/null - - local usepulse - [[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse) - - ECONF_SOURCE=${S} \ - econf \ - --sysconfdir=/etc/wine \ - $(use_with alsa) \ - $(use_with capi) \ - $(use_with lcms cms) \ - $(use_with cups) \ - $(use_with ncurses curses) \ - $(use_with udisks dbus) \ - $(use_with fontconfig) \ - $(use_with gnutls) \ - $(use_with gphoto2 gphoto) \ - $(use_with gsm) \ - $(use_with gstreamer) \ - --without-hal \ - $(use_with jpeg) \ - $(use_with ldap) \ - $(use_with mp3 mpg123) \ - $(use_with nls gettext) \ - $(use_with openal) \ - $(use_with opencl) \ - $(use_with opengl) \ - $(use_with ssl openssl) \ - $(use_with osmesa) \ - $(use_with oss) \ - $(use_with png) \ - $(use_with threads pthread) \ - ${usepulse} \ - $(use_with scanner sane) \ - $(use_enable test tests) \ - $(use_with truetype freetype) \ - $(use_with v4l) \ - $(use_with X x) \ - $(use_with xcomposite) \ - $(use_with xinerama) \ - $(use_with xml) \ - $(use_with xml xslt) \ - $2 - - emake -j1 depend - - popd >/dev/null -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - if use win64 ; then - do_configure 64 --enable-win64 - use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 - else - ABI=x86 do_configure 32 --disable-win64 - fi -} - -src_compile() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" all - done -} - -src_install() { - local b - for b in 64 32 ; do - local builddir="${WORKDIR}/wine${b}" - [[ -d ${builddir} ]] || continue - emake -C "${builddir}" install DESTDIR="${D}" - done - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - dodoc ANNOUNCE AUTHORS README - if use gecko ; then - insinto /usr/share/wine/gecko - doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - if use win32 || ! use win64; then - pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - fi - use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use win64 && ! use win32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine/wine-1.5.28.ebuild b/app-emulation/wine/wine-1.5.28.ebuild deleted file mode 100644 index 0c06d82..0000000 --- a/app-emulation/wine/wine-1.5.28.ebuild +++ /dev/null @@ -1,327 +0,0 @@ -# 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.28.ebuild,v 1.4 2013/08/05 09:31:06 ssuominen Exp $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="1.9" -MV="0.0.8" -PULSE_PATCHES="winepulse-patches-1.5.25" -WINE_GENTOO="wine-gentoo-2012.11.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss pathofexile +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml" -[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - udisks? ( - sys-apps/dbus - sys-fs/udisks:2 - ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:0= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite ) - amd64? ( - abi_x86_32? ( - gstreamer? ( - app-emulation/emul-linux-x86-gstplugins - app-emulation/emul-linux-x86-medialibs[development] - ) - truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] ) - X? ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development] - >=app-emulation/emul-linux-x86-soundlibs-2.1[development] - ) - mp3? ( app-emulation/emul-linux-x86-soundlibs[development] ) - odbc? ( app-emulation/emul-linux-x86-db[development] ) - openal? ( app-emulation/emul-linux-x86-sdl[development] ) - opengl? ( app-emulation/emul-linux-x86-opengl[development] ) - osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] ) - scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) - v4l? ( app-emulation/emul-linux-x86-medialibs[development] ) - >=app-emulation/emul-linux-x86-baselibs-20130224[development] - >=sys-kernel/linux-headers-2.6 - ) - )" -[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND} - pulseaudio? ( - media-sound/pulseaudio - sys-auth/rtkit - )" -DEPEND="${RDEPEND} - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308 - ) - [[ ${PV} == "9999" ]] || PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - - # http://bugs.winehq.org/show_bug.cgi?id=33146 - use pathofexile && epatch "${FILESDIR}"/${PN}-1.5.28-pathofexile.patch - - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 -} - -do_configure() { - local myeconfargs=( - "${myeconfargs[@]}" - CCAS="$(tc-getAS)" - ) - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myeconfargs+=( --enable-win64 ) - else - myeconfargs+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - autotools-utils_src_configure -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - local myeconfargs=( # common - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - [[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) ) - - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - use amd64 && use abi_x86_32 && tc-export PKG_CONFIG - - multilib_parallel_foreach_abi do_configure -} - -src_compile() { - autotools-multilib_src_compile depend - autotools-multilib_src_compile all -} - -src_test() { - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - multilib_toolchain_setup x86 - local BUILD_DIR="${S}-${ABI}" - cd "${BUILD_DIR}" || die - WINEPREFIX="${T}/.wine-${ABI}" Xemake test -} - -src_install() { - local DOCS=( ANNOUNCE AUTHORS README ) - autotools-multilib_src_install - - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-emulation/wine/wine-1.7.13.ebuild b/app-emulation/wine/wine-1.7.13.ebuild deleted file mode 100644 index fe63b95..0000000 --- a/app-emulation/wine/wine-1.7.13.ebuild +++ /dev/null @@ -1,427 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.12" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.0.0[abi_x86_32] - ) - ncurses? ( - sys-libs/ncurses[abi_x86_32] - ) - udisks? ( - sys-apps/dbus[abi_x86_32] - ) - fontconfig? ( - media-libs/fontconfig[abi_x86_32] - ) - gphoto2? ( - app-emulation/emul-linux-x86-medialibs[development] - ) - openal? ( - media-libs/openal[abi_x86_32] - ) - gstreamer? ( - app-emulation/emul-linux-x86-gstplugins - app-emulation/emul-linux-x86-medialibs[development] - ) - X? ( - x11-libs/libXcursor[abi_x86_32] - x11-libs/libXext[abi_x86_32] - x11-libs/libXrandr[abi_x86_32] - x11-libs/libXi[abi_x86_32] - x11-libs/libXxf86vm[abi_x86_32] - ) - xinerama? ( - x11-libs/libXinerama[abi_x86_32] - ) - alsa? ( - media-libs/alsa-lib[abi_x86_32] - ) - cups? ( app-emulation/emul-linux-x86-baselibs ) - opencl? ( virtual/opencl[abi_x86_32] ) - opengl? ( - virtual/glu[abi_x86_32] - virtual/opengl[abi_x86_32] - ) - gsm? ( - media-sound/gsm[abi_x86_32] - ) - jpeg? ( - virtual/jpeg:0[abi_x86_32] - ) - ldap? ( app-emulation/emul-linux-x86-baselibs[development] ) - lcms? ( - media-libs/lcms:2[abi_x86_32] - ) - mp3? ( - >=media-sound/mpg123-1.5.0[abi_x86_32] - ) - nls? ( - sys-devel/gettext[abi_x86_32] - ) - odbc? ( app-emulation/emul-linux-x86-db[development] ) - osmesa? ( - media-libs/mesa[osmesa,abi_x86_32] - ) - pulseaudio? ( - >=media-sound/pulseaudio-4.0-r1[abi_x86_32] - ) - xml? ( - dev-libs/libxml2[abi_x86_32] - dev-libs/libxslt[abi_x86_32] - ) - scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) - ssl? ( app-emulation/emul-linux-x86-baselibs[development] ) - png? ( - media-libs/libpng:0[abi_x86_32] - ) - v4l? ( - media-libs/libv4l[abi_x86_32] - ) - xcomposite? ( - x11-libs/libXcomposite[abi_x86_32] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - # 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 -} - -do_configure() { - local myeconfargs=( "${myeconfargs[@]}" ) - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myeconfargs+=( --enable-win64 ) - else - use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394" - # We currently don't have 32-bit libnetapi on amd64; #494394 - myeconfargs+=( - --without-netapi - --disable-win64 - ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - autotools-utils_src_configure -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - local myeconfargs=( # common - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myeconfargs+=( --with-pulse ) - - if use amd64 && use abi_x86_32; then - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - fi - - multilib_parallel_foreach_abi do_configure -} - -src_compile() { - autotools-multilib_src_compile depend - autotools-multilib_src_compile all -} - -src_test() { - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - multilib_toolchain_setup x86 - local BUILD_DIR="${S}-${ABI}" - cd "${BUILD_DIR}" || die - WINEPREFIX="${T}/.wine-${ABI}" Xemake test -} - -src_install() { - local DOCS=( ANNOUNCE AUTHORS README ) - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - autotools-multilib_src_install - - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D}"usr/share/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.14.ebuild b/app-emulation/wine/wine-1.7.14.ebuild deleted file mode 120000 index 88b7471..0000000 --- a/app-emulation/wine/wine-1.7.14.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.13.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.15.ebuild b/app-emulation/wine/wine-1.7.15.ebuild deleted file mode 120000 index 88b7471..0000000 --- a/app-emulation/wine/wine-1.7.15.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.13.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.16.ebuild b/app-emulation/wine/wine-1.7.16.ebuild deleted file mode 120000 index 88b7471..0000000 --- a/app-emulation/wine/wine-1.7.16.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.13.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.17.ebuild b/app-emulation/wine/wine-1.7.17.ebuild deleted file mode 120000 index 88b7471..0000000 --- a/app-emulation/wine/wine-1.7.17.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.13.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.18.ebuild b/app-emulation/wine/wine-1.7.18.ebuild deleted file mode 120000 index 88b7471..0000000 --- a/app-emulation/wine/wine-1.7.18.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.13.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.19-r1.ebuild b/app-emulation/wine/wine-1.7.19-r1.ebuild deleted file mode 100644 index 980e27d..0000000 --- a/app-emulation/wine/wine-1.7.19-r1.ebuild +++ /dev/null @@ -1,489 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.12" -COMPHOLIOV="1.7.18-1" -COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png pipelight +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development] - >=media-libs/freetype-2.0.0[abi_x86_32] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - sys-libs/ncurses[abi_x86_32] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development] - sys-apps/dbus[abi_x86_32] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development] - media-libs/fontconfig[abi_x86_32] - ) ) - gphoto2? ( - app-emulation/emul-linux-x86-medialibs[development] - ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development] - media-libs/openal[abi_x86_32] - ) ) - gstreamer? ( - app-emulation/emul-linux-x86-gstplugins - app-emulation/emul-linux-x86-medialibs[development] - ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development] - ( - x11-libs/libXcursor[abi_x86_32] - x11-libs/libXext[abi_x86_32] - x11-libs/libXrandr[abi_x86_32] - x11-libs/libXi[abi_x86_32] - x11-libs/libXxf86vm[abi_x86_32] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development] - x11-libs/libXinerama[abi_x86_32] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development] - media-libs/alsa-lib[abi_x86_32] - ) ) - cups? ( app-emulation/emul-linux-x86-baselibs ) - opencl? ( virtual/opencl[abi_x86_32] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development] - ( - virtual/glu[abi_x86_32] - virtual/opengl[abi_x86_32] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development] - media-sound/gsm[abi_x86_32] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - virtual/jpeg:0[abi_x86_32] - ) ) - ldap? ( app-emulation/emul-linux-x86-baselibs[development] ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - media-libs/lcms:2[abi_x86_32] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development] - >=media-sound/mpg123-1.5.0[abi_x86_32] - ) ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - sys-devel/gettext[abi_x86_32] - ) ) - odbc? ( app-emulation/emul-linux-x86-db[development] ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development] - media-libs/mesa[osmesa,abi_x86_32] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - sys-apps/attr[abi_x86_32] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development] - >=media-sound/pulseaudio-4.0-r1[abi_x86_32] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development] - ( - dev-libs/libxml2[abi_x86_32] - dev-libs/libxslt[abi_x86_32] - ) - ) ) - scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) - ssl? ( app-emulation/emul-linux-x86-baselibs[development] ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development] - media-libs/libpng:0[abi_x86_32] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development] - media-libs/libv4l[abi_x86_32] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development] - x11-libs/libXcomposite[abi_x86_32] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - if use pipelight; then - PATCHES+=( - "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 - "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - # 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 -} - -do_configure() { - local myeconfargs=( "${myeconfargs[@]}" ) - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myeconfargs+=( --enable-win64 ) - else - use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394" - # We currently don't have 32-bit libnetapi on amd64; #494394 - myeconfargs+=( - --without-netapi - --disable-win64 - ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - autotools-utils_src_configure -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - local myeconfargs=( # common - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myeconfargs+=( --with-pulse ) - use pipelight && myeconfargs+=( --with-xattr ) - - if use amd64 && use abi_x86_32; then - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - fi - - multilib_parallel_foreach_abi do_configure -} - -src_compile() { - autotools-multilib_src_compile depend - autotools-multilib_src_compile all -} - -src_test() { - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - multilib_toolchain_setup x86 - local BUILD_DIR="${S}-${ABI}" - cd "${BUILD_DIR}" || die - WINEPREFIX="${T}/.wine-${ABI}" Xemake test -} - -src_install() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - autotools-multilib_src_install - - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D}"usr/share/man/${l}* - done - -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update - - if use pipelight; then - ewarn "You installed Wine with the unofficial Compholio patchset for Pipelight" - ewarn "support, which is unsupported by Wine developers. Please don't report" - ewarn "bugs to Wine bugzilla unless you can reproduce them with USE=-pipelight" - fi -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.21-r1.ebuild b/app-emulation/wine/wine-1.7.21-r1.ebuild deleted file mode 100644 index b0a46c5..0000000 --- a/app-emulation/wine/wine-1.7.21-r1.ebuild +++ /dev/null @@ -1,518 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.21" -COMPHOLIOV="1.7.21" -COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT=${PV} -MY_PREFIX=/usr/lib/wine-${SLOT} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png pipelight +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - gstreamer? ( pulseaudio ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - PATCHES+=( - "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 - "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=( - --prefix="${MY_PREFIX}" - --datadir="${MY_PREFIX}" - --mandir="${MY_PREFIX}"/man - --sysconfdir=/etc/wine-${SLOT} - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Broken for slotted install, dunno who is upstream - #emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto "${MY_PREFIX}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_PREFIX}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_PREFIX}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_PREFIX}"/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.21-r2.ebuild b/app-emulation/wine/wine-1.7.21-r2.ebuild deleted file mode 100644 index c67db1c..0000000 --- a/app-emulation/wine/wine-1.7.21-r2.ebuild +++ /dev/null @@ -1,510 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - #KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.21" -COMPHOLIOV="1.7.21" -COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT=${PV} -MY_PREFIX=/usr/lib/wine-${SLOT} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - gstreamer? ( pulseaudio ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - PATCHES+=( - "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 - "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=( - --prefix="${MY_PREFIX}" - --datadir="${MY_PREFIX}" - --mandir="${MY_PREFIX}"/man - --sysconfdir=/etc/wine-${SLOT} - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Broken for slotted install, dunno who is upstream - #emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto "${MY_PREFIX}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_PREFIX}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_PREFIX}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_PREFIX}"/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.21-r3.ebuild b/app-emulation/wine/wine-1.7.21-r3.ebuild deleted file mode 100644 index 4fc135b..0000000 --- a/app-emulation/wine/wine-1.7.21-r3.ebuild +++ /dev/null @@ -1,536 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - #KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.21" -COMPHOLIOV="1.7.21" -COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - gstreamer? ( pulseaudio ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - PATCHES+=( - "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 - "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - # Prefixed installation double-installs libwine - use multislot && rm -rf "${D}"usr/lib{32,64} || die - - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.21.ebuild b/app-emulation/wine/wine-1.7.21.ebuild deleted file mode 100644 index 0827f37..0000000 --- a/app-emulation/wine/wine-1.7.21.ebuild +++ /dev/null @@ -1,506 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.21" -COMPHOLIOV="1.7.21" -COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png pipelight +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - gstreamer? ( pulseaudio ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - PATCHES+=( - "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 - "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend - fi - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D}"usr/share/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.26-r1.ebuild b/app-emulation/wine/wine-1.7.26-r1.ebuild deleted file mode 100644 index c13e7c1..0000000 --- a/app-emulation/wine/wine-1.7.26-r1.ebuild +++ /dev/null @@ -1,442 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -MY_PREFIX=/usr/lib/wine-${SLOT} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=( - --prefix="${MY_PREFIX}" - --datadir="${MY_PREFIX}" - --mandir="${MY_PREFIX}"/man - --sysconfdir=/etc/wine-${SLOT} - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - if use gecko ; then - insinto "${MY_PREFIX}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_PREFIX}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_PREFIX}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_PREFIX}"/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.26-r2.ebuild b/app-emulation/wine/wine-1.7.26-r2.ebuild deleted file mode 100644 index 9620b4e..0000000 --- a/app-emulation/wine/wine-1.7.26-r2.ebuild +++ /dev/null @@ -1,460 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( app-admin/eselect-wine ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.26-r3.ebuild b/app-emulation/wine/wine-1.7.26-r3.ebuild deleted file mode 100644 index aaa6e26..0000000 --- a/app-emulation/wine/wine-1.7.26-r3.ebuild +++ /dev/null @@ -1,497 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pulseaudio? ( http://github.com/compholio/wine-compholio/archive/v${PV}.tar.gz -> wine-compholio-${PV}.tar.gz ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - if use pulseaudio; then - unpack wine-compholio-${PV}.tar.gz - fi - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - # bug #421365 - use pulseaudio && PATCHES+=( - "${WORKDIR}"/wine-compholio-${PV}/patches/winepulse-PulseAudio_Support/*.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.26.ebuild b/app-emulation/wine/wine-1.7.26.ebuild deleted file mode 100644 index e4bc06b..0000000 --- a/app-emulation/wine/wine-1.7.26.ebuild +++ /dev/null @@ -1,431 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - " - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D}"usr/share/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} diff --git a/app-emulation/wine/wine-1.7.27.ebuild b/app-emulation/wine/wine-1.7.27.ebuild deleted file mode 100644 index ab3e56b..0000000 --- a/app-emulation/wine/wine-1.7.27.ebuild +++ /dev/null @@ -1,481 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - --without-pcap - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.28-r1.ebuild b/app-emulation/wine/wine-1.7.28-r1.ebuild deleted file mode 100644 index 1eb4b87..0000000 --- a/app-emulation/wine/wine-1.7.28-r1.ebuild +++ /dev/null @@ -1,444 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss pcap +perl +png +prelink +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) - ncurses? ( - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) - udisks? ( - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) - fontconfig? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) - gphoto2? ( - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) - openal? ( - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) - X? ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - xinerama? ( - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) - alsa? ( - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) - cups? ( - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - gsm? ( - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) - jpeg? ( - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) - ldap? ( - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) - lcms? ( - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) - mp3? ( - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) - odbc? ( - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) - osmesa? ( - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - xml? ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - scanner? ( - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) - ssl? ( - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) - png? ( - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) - v4l? ( - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) - xcomposite? ( - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.28-r2.ebuild b/app-emulation/wine/wine-1.7.28-r2.ebuild deleted file mode 100644 index 54fe286..0000000 --- a/app-emulation/wine/wine-1.7.28-r2.ebuild +++ /dev/null @@ -1,452 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss pcap +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) - ncurses? ( - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) - udisks? ( - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) - fontconfig? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) - gphoto2? ( - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) - openal? ( - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) - X? ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - xinerama? ( - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) - alsa? ( - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) - cups? ( - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - gsm? ( - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) - jpeg? ( - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) - ldap? ( - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) - lcms? ( - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) - mp3? ( - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) - odbc? ( - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) - osmesa? ( - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - xml? ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - scanner? ( - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) - ssl? ( - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) - png? ( - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) - v4l? ( - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) - xcomposite? ( - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.28.ebuild b/app-emulation/wine/wine-1.7.28.ebuild deleted file mode 100644 index 40bd862..0000000 --- a/app-emulation/wine/wine-1.7.28.ebuild +++ /dev/null @@ -1,534 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -COMPHOLIO_P="wine-compholio-${PV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${PV}.tar.gz -> ${COMPHOLIO_P}.tar.gz ) - pulseaudio? ( https://github.com/compholio/wine-compholio-daily/archive/v${PV}.tar.gz -> ${COMPHOLIO_P}.tar.gz ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss pcap +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( || ( - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) ) - ncurses? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) ) - udisks? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) ) - fontconfig? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) ) - gphoto2? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) ) - openal? ( || ( - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) ) - gstreamer? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - ) ) - X? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - ) ) - xinerama? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) ) - alsa? ( || ( - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) ) - cups? ( || ( - app-emulation/emul-linux-x86-baselibs - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( || ( - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] - ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - ) ) - gsm? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) ) - jpeg? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) ) - ldap? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) ) - lcms? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) ) - mp3? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) ) - odbc? ( || ( - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) ) - osmesa? ( || ( - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - pipelight? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) ) - pulseaudio? ( || ( - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) ) - xml? ( || ( - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] - ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - ) ) - scanner? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) ) - ssl? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) ) - png? ( || ( - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) ) - v4l? ( || ( - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) ) - xcomposite? ( || ( - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - use pipelight || use pulseaudio && unpack "${COMPHOLIO_P}.tar.gz" - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - local COMPHOLIO_MAKE_ARGS="-W fonts-Missing_Fonts.ok" - - use pulseaudio || COMPHOLIO_MAKE_ARGS="${COMPHOLIO_MAKE_ARGS} -W winepulse-PulseAudio_Support.ok" - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "${FILESDIR}/${PN}-1.7.28-gstreamer-v4.patch" ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - # epatch doesn't support binary patches and we ship our own pulse patches - emake -C "${WORKDIR}/${COMPHOLIO_P}/patches" \ - $(echo ${COMPHOLIO_MAKE_ARGS}) \ - series - - PATCHES+=( $(sed -e "s:^:${WORKDIR}/${COMPHOLIO_P}/patches/:" \ - "${WORKDIR}/${COMPHOLIO_P}/patches/series") ) - - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${WORKDIR}/${COMPHOLIO_P}/patches/fonts-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_P}/debian/tools/gitapply.sh" < "${f}" \ - || die "Failed to apply ${f}" - done - eend - elif use pulseaudio; then - PATCHES+=( "../${COMPHOLIO_P}/patches/winepulse-PulseAudio_Support"/*.patch ) - fi - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.29-r1.ebuild b/app-emulation/wine/wine-1.7.29-r1.ebuild deleted file mode 120000 index 41d24d5..0000000 --- a/app-emulation/wine/wine-1.7.29-r1.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.28-r1.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.29-r2.ebuild b/app-emulation/wine/wine-1.7.29-r2.ebuild deleted file mode 120000 index 3082435..0000000 --- a/app-emulation/wine/wine-1.7.29-r2.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.28-r2.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.29.ebuild b/app-emulation/wine/wine-1.7.29.ebuild deleted file mode 100644 index 70261c1..0000000 --- a/app-emulation/wine/wine-1.7.29.ebuild +++ /dev/null @@ -1,495 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -COMPHOLIO_P="wine-staging-${PV}" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pipelight? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${COMPHOLIO_P}.tar.gz ) - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${COMPHOLIO_P}.tar.gz ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pipelight? ( sys-apps/attr ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) - ncurses? ( - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) - udisks? ( - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) - fontconfig? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) - gphoto2? ( - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) - openal? ( - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) - gstreamer? ( - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] - ) - X? ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - xinerama? ( - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) - alsa? ( - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) - cups? ( - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - gsm? ( - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) - jpeg? ( - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) - ldap? ( - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) - lcms? ( - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) - mp3? ( - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) - odbc? ( - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) - osmesa? ( - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) - pipelight? ( - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] - ) - pulseaudio? ( - >=media-sound/pulseaudio-5.0[abi_x86_32(-)] - ) - xml? ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - scanner? ( - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) - ssl? ( - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) - png? ( - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) - v4l? ( - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) - xcomposite? ( - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - use pipelight || use pulseaudio && unpack "${COMPHOLIO_P}.tar.gz" - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - local COMPHOLIO_MAKE_ARGS="-W fonts-Missing_Fonts.ok" - - use pulseaudio || COMPHOLIO_MAKE_ARGS="${COMPHOLIO_MAKE_ARGS} -W winepulse-PulseAudio_Support.ok" - if use gstreamer; then - # See http://bugs.winehq.org/show_bug.cgi?id=30557 - ewarn "Applying experimental patch to fix GStreamer support. Note that" - ewarn "this patch has been reported to cause crashes in certain games." - - PATCHES+=( "${FILESDIR}/${PN}-1.7.28-gstreamer-v4.patch" ) - fi - if use pipelight; then - ewarn "Applying the unofficial Compholio patchset for Pipelight support," - ewarn "which is unsupported by Wine developers. Please don't report bugs" - ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" - - # epatch doesn't support binary patches and we ship our own pulse patches - emake -C "${WORKDIR}/${COMPHOLIO_P}/patches" \ - $(echo ${COMPHOLIO_MAKE_ARGS}) \ - series - - PATCHES+=( $(sed -e "s:^:${WORKDIR}/${COMPHOLIO_P}/patches/:" \ - "${WORKDIR}/${COMPHOLIO_P}/patches/series") ) - - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${WORKDIR}/${COMPHOLIO_P}/patches/fonts-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_P}/debian/tools/gitapply.sh" < "${f}" \ - || die "Failed to apply ${f}" - done - eend - elif use pulseaudio; then - PATCHES+=( "../${COMPHOLIO_P}/patches/winepulse-PulseAudio_Support"/*.patch ) - fi - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - --without-pcap - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myconf+=( --with-pulse ) - use pipelight && myconf+=( --with-xattr ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.33-r1.ebuild b/app-emulation/wine/wine-1.7.33-r1.ebuild deleted file mode 100644 index a5be3fb..0000000 --- a/app-emulation/wine/wine-1.7.33-r1.ebuild +++ /dev/null @@ -1,444 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.34" -MV="4.5.4" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss pcap +perl +png +prelink +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) - ncurses? ( - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) - udisks? ( - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) - fontconfig? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) - gphoto2? ( - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) - openal? ( - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) - X? ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - xinerama? ( - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) - alsa? ( - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) - cups? ( - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - gsm? ( - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) - jpeg? ( - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) - ldap? ( - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) - lcms? ( - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) - mp3? ( - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) - odbc? ( - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) - osmesa? ( - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - xml? ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - scanner? ( - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) - ssl? ( - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) - png? ( - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) - v4l? ( - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) - xcomposite? ( - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.33-r2.ebuild b/app-emulation/wine/wine-1.7.33-r2.ebuild deleted file mode 100644 index 1073957..0000000 --- a/app-emulation/wine/wine-1.7.33-r2.ebuild +++ /dev/null @@ -1,452 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64" # ~x86 ~x86-fbsd - S=${WORKDIR}/${MY_P} -fi - -GV="2.34" -MV="4.5.4" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2 - " - -LICENSE="LGPL-2.1" -SLOT=${PV} -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm +jpeg lcms ldap +mono mp3 +multislot ncurses netapi nls odbc openal opencl +opengl osmesa oss pcap +perl +png +prelink +run-exes samba scanner selinux +ssl swtor teso test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pcap? ( net-libs/libpcap ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - ) - ncurses? ( - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] - ) - udisks? ( - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] - ) - fontconfig? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - ) - gphoto2? ( - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] - ) - openal? ( - >=media-libs/openal-1.15.1[abi_x86_32(-)] - ) - X? ( - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] - >=x11-libs/libXi-1.7.2[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - xinerama? ( - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - ) - alsa? ( - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - ) - cups? ( - >=net-print/cups-1.7.1-r1[abi_x86_32(-)] - ) - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) - opengl? ( - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - ) - gsm? ( - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] - ) - jpeg? ( - >=virtual/jpeg-0-r2:0[abi_x86_32(-)] - ) - ldap? ( - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] - ) - lcms? ( - >=media-libs/lcms-2.5:2[abi_x86_32(-)] - ) - mp3? ( - >=media-sound/mpg123-1.15.4[abi_x86_32(-)] - ) - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) - nls? ( - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] - ) - odbc? ( - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] - ) - osmesa? ( - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] - ) - pcap? ( net-libs/libpcap[abi_x86_32(-)] ) - xml? ( - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] - ) - scanner? ( - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] - ) - ssl? ( - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] - ) - png? ( - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] - ) - v4l? ( - >=media-libs/libv4l-0.9.5[abi_x86_32(-)] - ) - xcomposite? ( - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - multislot? ( >=app-admin/eselect-wine-0.2 - app-emulation/wine-gentoo ) - !multislot? ( !<${CATEGORY}/${PF} - !>${CATEGORY}/${PF} ) - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - " - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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() { - if use multislot; then - MY_PREFIX=/usr/lib/wine-${SLOT} - MY_DATADIR=${MY_PREFIX} - else - MY_PREFIX=/usr - MY_DATADIR=${MY_PREFIX}/share - fi - wine_build_environment_check || die -} - -src_unpack() { - if [[ ${PV} == "9999" ]] ; then - git-2_src_unpack - else - unpack ${MY_P}.tar.bz2 - fi - - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local f - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - # http://bugs.winehq.org/show_bug.cgi?id=29168 - use swtor && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.1-KUSER_SHARED_DATA_18.patch - ) - # http://bugs.winehq.org/show_bug.cgi?id=34388 - use teso && PATCHES+=( - "${FILESDIR}"/${PN}-1.7.2-crypt32-Skip-unknown-item-when.patch - ) - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - if use multislot; then - sed -e "/^Exec=/s/wine /wine-${SLOT} /" \ - -i tools/wine.desktop || die - fi - - # 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 -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myconf=() - if use multislot; then - myconf+=( - --prefix="${MY_PREFIX}" - --datadir="${MY_DATADIR}" - --mandir="${MY_DATADIR}"/man - ) - fi - myconf+=( - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - --without-gstreamer - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with pcap) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - local PKG_CONFIG AR RANLIB - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myconf+=( --enable-win64 ) - else - myconf+=( --disable-win64 ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - ECONF_SOURCE=${S} \ - econf "${myconf[@]}" - emake depend -} - -multilib_src_test() { - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - if [[ ${ABI} == x86 ]]; then - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - WINEPREFIX="${T}/.wine-${ABI}" \ - Xemake test - fi -} - -multilib_src_install_all() { - local DOCS=( ANNOUNCE AUTHORS README ) - local l - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - - einstalldocs - prune_libtool_files --all - - # Moved to wine-gentoo for multislot - if ! use multislot; then - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - fi - if use gecko ; then - insinto "${MY_DATADIR}"/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto "${MY_DATADIR}"/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} "${D%/}${MY_DATADIR}"/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 - dosym "${MY_PREFIX}"/bin/wine{64,}-preloader - fi - - if use multislot; then - for b in "${D%/}${MY_PREFIX}"/bin/*; do - make_wrapper ${b##*/}-${SLOT} "${MY_PREFIX}"/bin/${b##*/} - done - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D%/}${MY_DATADIR}"/man/${l}* - done -} - -pkg_preinst() { - ! use multislot && gnome2_icon_savelist -} - -pkg_postinst() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} - -pkg_postrm() { - ! use multislot && gnome2_icon_cache_update - fdo-mime_desktop_database_update - use multislot && eselect wine update --if-unset -} diff --git a/app-emulation/wine/wine-1.7.34-r1.ebuild b/app-emulation/wine/wine-1.7.34-r1.ebuild deleted file mode 120000 index 21aafda..0000000 --- a/app-emulation/wine/wine-1.7.34-r1.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.33-r1.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.34-r2.ebuild b/app-emulation/wine/wine-1.7.34-r2.ebuild deleted file mode 120000 index 60d5d5b..0000000 --- a/app-emulation/wine/wine-1.7.34-r2.ebuild +++ /dev/null @@ -1 +0,0 @@ -wine-1.7.33-r2.ebuild
\ No newline at end of file diff --git a/app-emulation/wine/wine-1.7.8.ebuild b/app-emulation/wine/wine-1.7.8.ebuild deleted file mode 100644 index d9a871c..0000000 --- a/app-emulation/wine/wine-1.7.8.ebuild +++ /dev/null @@ -1,419 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.4.ebuild,v 1.4 2013/12/01 09:45:09 mgorny Exp $ - -EAPI="5" - -AUTOTOOLS_AUTORECONF=1 -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" -PLOCALE_BACKUP="en" - -inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://source.winehq.org/git/wine.git" - inherit git-2 - SRC_URI="" - #KEYWORDS="" -else - MY_P="${PN}-${PV/_/-}" - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" - S=${WORKDIR}/${MY_P} -fi - -GV="2.24" -MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.8" -WINE_GENTOO="wine-gentoo-2013.06.24" -DESCRIPTION="Free implementation of Windows(tm) on Unix" -HOMEPAGE="http://www.winehq.org/" -SRC_URI="${SRC_URI} - gecko? ( - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) - ) - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) - test? ( abi_x86_32 ) - elibc_glibc? ( threads ) - mono? ( abi_x86_32 ) - osmesa? ( opengl )" #286560 - -# FIXME: the test suite is unsuitable for us; many tests require net access -# or fail due to Xvfb's opengl limitations. -RESTRICT="test" - -NATIVE_DEPEND=" - truetype? ( >=media-libs/freetype-2.0.0 ) - capi? ( net-dialup/capi4k-utils ) - ncurses? ( >=sys-libs/ncurses-5.2:= ) - udisks? ( sys-apps/dbus ) - fontconfig? ( media-libs/fontconfig:= ) - gphoto2? ( media-libs/libgphoto2:= ) - openal? ( media-libs/openal:= ) - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXi - x11-libs/libXxf86vm - ) - xinerama? ( x11-libs/libXinerama ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups:= ) - opencl? ( virtual/opencl ) - opengl? ( - virtual/glu - virtual/opengl - ) - gsm? ( media-sound/gsm:= ) - jpeg? ( virtual/jpeg:0= ) - ldap? ( net-nds/openldap:= ) - lcms? ( media-libs/lcms:2= ) - mp3? ( >=media-sound/mpg123-1.5.0 ) - netapi? ( net-fs/samba[netapi(+)] ) - nls? ( sys-devel/gettext ) - odbc? ( dev-db/unixODBC:= ) - osmesa? ( media-libs/mesa[osmesa] ) - pulseaudio? ( media-sound/pulseaudio ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - scanner? ( media-gfx/sane-backends:= ) - ssl? ( net-libs/gnutls:= ) - png? ( media-libs/libpng:0= ) - v4l? ( media-libs/libv4l ) - xcomposite? ( x11-libs/libXcomposite )" - -COMMON_DEPEND=" - !amd64? ( ${NATIVE_DEPEND} ) - amd64? ( - abi_x86_64? ( ${NATIVE_DEPEND} ) - abi_x86_32? ( - truetype? ( - >=media-libs/freetype-2.0.0[abi_x86_32] - ) - ncurses? ( - sys-libs/ncurses[abi_x86_32] - ) - udisks? ( - sys-apps/dbus[abi_x86_32] - ) - fontconfig? ( - media-libs/fontconfig[abi_x86_32] - ) - gphoto2? ( - app-emulation/emul-linux-x86-medialibs[development] - ) - openal? ( - media-libs/openal[abi_x86_32] - ) - gstreamer? ( - app-emulation/emul-linux-x86-gstplugins - app-emulation/emul-linux-x86-medialibs[development] - ) - X? ( - x11-libs/libXcursor[abi_x86_32] - x11-libs/libXext[abi_x86_32] - x11-libs/libXrandr[abi_x86_32] - x11-libs/libXi[abi_x86_32] - x11-libs/libXxf86vm[abi_x86_32] - ) - xinerama? ( - x11-libs/libXinerama[abi_x86_32] - ) - alsa? ( - media-libs/alsa-lib[abi_x86_32] - ) - cups? ( app-emulation/emul-linux-x86-baselibs ) - opencl? ( virtual/opencl[abi_x86_32] ) - opengl? ( - virtual/glu[abi_x86_32] - virtual/opengl[abi_x86_32] - ) - gsm? ( - media-sound/gsm[abi_x86_32] - ) - jpeg? ( - virtual/jpeg:0[abi_x86_32] - ) - ldap? ( app-emulation/emul-linux-x86-baselibs[development] ) - lcms? ( - media-libs/lcms:2[abi_x86_32] - ) - mp3? ( - >=media-sound/mpg123-1.5.0[abi_x86_32] - ) - nls? ( - sys-devel/gettext[abi_x86_32] - ) - odbc? ( app-emulation/emul-linux-x86-db[development] ) - osmesa? ( - media-libs/mesa[osmesa,abi_x86_32] - ) - pulseaudio? ( - >=media-sound/pulseaudio-4.0-r1[abi_x86_32] - ) - xml? ( - dev-libs/libxml2[abi_x86_32] - dev-libs/libxslt[abi_x86_32] - ) - scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) - ssl? ( app-emulation/emul-linux-x86-baselibs[development] ) - png? ( - media-libs/libpng:0[abi_x86_32] - ) - v4l? ( - media-libs/libv4l[abi_x86_32] - ) - xcomposite? ( - x11-libs/libXcomposite[abi_x86_32] - ) - ) - )" - -RDEPEND="${COMMON_DEPEND} - dos? ( games-emulation/dosbox ) - perl? ( dev-lang/perl dev-perl/XML-Simple ) - samba? ( >=net-fs/samba-3.0.25 ) - selinux? ( sec-policy/selinux-wine ) - udisks? ( sys-fs/udisks:2 ) - pulseaudio? ( realtime? ( sys-auth/rtkit ) )" - -DEPEND="${COMMON_DEPEND} - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) - X? ( - x11-proto/inputproto - x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - xinerama? ( x11-proto/xineramaproto ) - prelink? ( sys-devel/prelink ) - >=sys-kernel/linux-headers-2.6 - virtual/pkgconfig - virtual/yacc - sys-devel/flex" - -# These use a non-standard "Wine" category, which is provided by -# /etc/xdg/applications-merged/wine.menu -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop -usr/share/applications/wine-notepad.desktop -usr/share/applications/wine-uninstaller.desktop -usr/share/applications/wine-winecfg.desktop" - -wine_build_environment_check() { - [[ ${MERGE_TYPE} = "binary" ]] && return 0 - - if use abi_x86_64 && [[ $(( $(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 abi_x86_32 && 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 - unpack ${MY_P}.tar.bz2 - fi - - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - unpack "${WINE_GENTOO}.tar.bz2" - - l10n_find_plocales_changes "${S}/po" "" ".po" -} - -src_prepare() { - local md5="$(md5sum server/protocol.def)" - local PATCHES=( - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 - ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) - - autotools-utils_src_prepare - - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then - einfo "server/protocol.def was patched; running tools/make_requests" - tools/make_requests || die #432348 - fi - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die - if ! use run-exes; then - sed -i '/^MimeType/d' tools/wine.desktop || die #117785 - fi - - # 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 -} - -do_configure() { - local myeconfargs=( "${myeconfargs[@]}" ) - - if use amd64; then - if [[ ${ABI} == amd64 ]]; then - myeconfargs+=( --enable-win64 ) - else - use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394" - # We currently don't have 32-bit libnetapi on amd64; #494394 - myeconfargs+=( - --without-netapi - --disable-win64 - ) - fi - - # Note: using --with-wine64 results in problems with multilib.eclass - # CC/LD hackery. We're using separate tools instead. - fi - - autotools-utils_src_configure -} - -src_configure() { - export LDCONFIG=/bin/true - use custom-cflags || strip-flags - - local myeconfargs=( # common - --sysconfdir=/etc/wine - $(use_with alsa) - $(use_with capi) - $(use_with lcms cms) - $(use_with cups) - $(use_with ncurses curses) - $(use_with udisks dbus) - $(use_with fontconfig) - $(use_with ssl gnutls) - $(use_with gphoto2 gphoto) - $(use_with gsm) - $(use_with gstreamer) - --without-hal - $(use_with jpeg) - $(use_with ldap) - $(use_with mp3 mpg123) - $(use_with netapi) - $(use_with nls gettext) - $(use_with openal) - $(use_with opencl) - $(use_with opengl) - $(use_with osmesa) - $(use_with oss) - $(use_with png) - $(use_with threads pthread) - $(use_with scanner sane) - $(use_enable test tests) - $(use_with truetype freetype) - $(use_with v4l) - $(use_with X x) - $(use_with xcomposite) - $(use_with xinerama) - $(use_with xml) - $(use_with xml xslt) - ) - - use pulseaudio && myeconfargs+=( --with-pulse ) - - if use amd64 && use abi_x86_32; then - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 - # set AR and RANLIB to make QA scripts happy; #483342 - tc-export PKG_CONFIG AR RANLIB - fi - - multilib_parallel_foreach_abi do_configure -} - -src_compile() { - autotools-multilib_src_compile depend - autotools-multilib_src_compile all -} - -src_test() { - if [[ $(id -u) == 0 ]]; then - ewarn "Skipping tests since they cannot be run under the root user." - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" - return - fi - - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" - multilib_toolchain_setup x86 - local BUILD_DIR="${S}-${ABI}" - cd "${BUILD_DIR}" || die - WINEPREFIX="${T}/.wine-${ABI}" Xemake test -} - -src_install() { - local DOCS=( ANNOUNCE AUTHORS README ) - add_locale_docs() { - local locale_doc="documentation/README.$1" - [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} ) - } - l10n_for_each_locale_do add_locale_docs - autotools-multilib_src_install - - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" - if use gecko ; then - insinto /usr/share/wine/gecko - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi - fi - if use mono ; then - insinto /usr/share/wine/mono - doins "${DISTDIR}"/wine-mono-${MV}.msi - fi - if ! use perl ; then - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die - fi - - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} - - if use abi_x86_64 && ! use abi_x86_32; then - dosym /usr/bin/wine{64,} # 404331 - dosym /usr/bin/wine{64,}-preloader - fi - - # respect LINGUAS when installing man pages, #469418 - for l in de fr pl; do - use linguas_${l} || rm -r "${D}"usr/share/man/${l}* - done -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - fdo-mime_desktop_database_update -} |