1 |
commit: 2419be2da7c7dd2bb6f1417c413fb5daeb9e40c2 |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 2 01:06:00 2018 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 2 01:06:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2419be2d |
7 |
|
8 |
app-emulation/wine-d3d9: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
app-emulation/wine-d3d9/Manifest | 2 - |
13 |
app-emulation/wine-d3d9/wine-d3d9-2.0-r1.ebuild | 568 ------------------------ |
14 |
2 files changed, 570 deletions(-) |
15 |
|
16 |
diff --git a/app-emulation/wine-d3d9/Manifest b/app-emulation/wine-d3d9/Manifest |
17 |
index 351cdc8ed36..d8cfcd2205b 100644 |
18 |
--- a/app-emulation/wine-d3d9/Manifest |
19 |
+++ b/app-emulation/wine-d3d9/Manifest |
20 |
@@ -1,10 +1,8 @@ |
21 |
DIST gentoo-wine-patches-20180120.tar.xz 58672 BLAKE2B 84d621075b65475cec41a06429680b518d7eafb938cefd903f3f8aa71ea3049ac9d8de05af48f9f4f4a1b9172c7ef17784540413e410eb8ec11e8ec4a63858c6 SHA512 5b354a409c7a2b77499aaa593b9248a1d15d755e3687b095755faacc30068bfcdbdd5c2a2a78617cb1a78c46d2931162bd69ec3379b035d81494bea7108263c2 |
22 |
-DIST wine-2.0.tar.bz2 23662707 BLAKE2B 1d485c1359ce8a0395a9f6378c1f8be33ea2836b80390d1eb1095057a0acedd21708daab16e1851a315391b9f9b0a360879b9d98c73bcc8371c5023e9a8037f5 SHA512 b0a57ba8202d9fc396e5bfb7a7718d6bababbed8f3351e7fdc36afa37f35a871e04903757618f73427aeb71a52b2d323977d79e48f8b38d636f23fd404441186 |
23 |
DIST wine-3.11.tar.xz 20501100 BLAKE2B 793fe0a83ed13f4ca436c710198ffcbde5e0109d9890551a410b1d836d79adf4060f0cc7e20861eb806878db79f8003023821ac1b0d72a0710235412863c4576 SHA512 8f7226364648ec30eb77f1848ee6bf01be2445fd96f902309575ac1f6ece31bf54d415516fcda76ae438010a36a9d4846d22cc37365aac4a230701376f9589d7 |
24 |
DIST wine-3.12.tar.xz 20516708 BLAKE2B 6ff32f8d471492c1ca42db434b16c0273e98cd15215d2f67e3d8e34e298d36620f55409bb781687f3ab11e6a44bd95eaa033e642fdb0d7aae90319ac2ddd2fb6 SHA512 afc76e8975ea780f664de27a17128f730bcbe72a9fad0c01bfe6dcc98c2f98729ccde32e97fe4df2cf98f5d1b254b28f0e7cd380855148c5cfb41dd88f3012a1 |
25 |
DIST wine-3.13.tar.xz 20551460 BLAKE2B 2f8b1c2f72761b3c5541b8760be3009295dc9482257539edce83aa9d6022b2e8a25e1cee4fe56b69808e51e338fd330db5da17dec5dea4ba7684b5d7eb7e77d5 SHA512 a07a3d2a19261f9251f165ca4c14871e6ebda4d3f99da16f9fc41f06e80cae3fb50aeab96628c7a739e635e896dbb31c55df8b42c4637a058f9035c664c93a59 |
26 |
DIST wine-3.14.tar.xz 20583696 BLAKE2B 5e9410c5dadd0c08cbe0e52b0170840492890784dbd1afc8f01ab50caac8443513133575fa6f64143276ce315dde8614f5ece4b3cd5568c224a3379c85619b63 SHA512 50dbbf8a832abfa01247b9d170c6e1fe4f722cc8868659512df7bc17efd7e9d618db10283baf1eda0f1e4abbcdd130be16dbdb8d5a91b155c2c441e50e2b43f1 |
27 |
-DIST wine-d3d9-2.0.tar.gz 48373 BLAKE2B 80370a7519141030a7e54c2ea5db410b2bf1cde8d8389618487c52e4ff40f87cf7b0f9087331bb43fa6436e1b9936de9cc00a02b9ab9ce6528635a245e6a8b3f SHA512 a9e2d1c9f2784128e4c53a8dc923070a5057b5ff3d83c2b536a2d2df0bc8433ac92b8ab1c3cdf34158c0e7bfe497ddb5974605fbc1736a92307639d59450c7a1 |
28 |
DIST wine-d3d9-3.11.tar.gz 50540 BLAKE2B c9c6469fb0dfff9be5cf50796f47a747d02c736a22b186ec561c0dcc3715a0da1cfce24e852da075685ea3047131d98cf506810ab7d555fd91ca334dbf8c315c SHA512 57ebadc6764c36a925c8e9130b3b436513795bb53e96566a88c22337b37a8c3efcb84aada19d3e5dd6ae2eb24f64b46a33376027600cb7863254369b4555de05 |
29 |
DIST wine-d3d9-3.12.tar.gz 50544 BLAKE2B 68c58a8800facf910b72e07f8be77d260060175da25583d3e6562cbe18c4fa1cf2fe0f5d109747e6901677231483adf02a0f1d76105e66733faf1e932c75e876 SHA512 9beb98528600b6699a6112abaf037d73a7cd0e791de04dee2c1874075b9b99a24438df92421802eb89e1285e1235e6a36b6cd7260757fc43d7f8cb3b913296ad |
30 |
DIST wine-d3d9-3.13.tar.gz 50546 BLAKE2B 2773503ad2c952c47982258c8b7d7486b5822bfd759a96aa138996aed5ac16d7e3c7add7700f4394292f6154fdd8d58dbfabad1faf8b5013fb88f68ed7657521 SHA512 c3da30c0ce7fca433a703e42213c4a4f6c7a1f8a2d7744555a385641e5c344772dfd142779978d131bf42e79cddb4925b9926fd96e7e1497e173a755f1ec6ce5 |
31 |
|
32 |
diff --git a/app-emulation/wine-d3d9/wine-d3d9-2.0-r1.ebuild b/app-emulation/wine-d3d9/wine-d3d9-2.0-r1.ebuild |
33 |
deleted file mode 100644 |
34 |
index 0ca4d6a8699..00000000000 |
35 |
--- a/app-emulation/wine-d3d9/wine-d3d9-2.0-r1.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,568 +0,0 @@ |
38 |
-# Copyright 1999-2018 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=6 |
42 |
- |
43 |
-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" |
44 |
-PLOCALE_BACKUP="en" |
45 |
- |
46 |
-inherit autotools estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator xdg-utils |
47 |
- |
48 |
-MY_PN="${PN%%-*}" |
49 |
-MY_P="${MY_PN}-${PV}" |
50 |
- |
51 |
-if [[ ${PV} == "9999" ]] ; then |
52 |
- EGIT_REPO_URI="https://source.winehq.org/git/wine.git" |
53 |
- EGIT_BRANCH="master" |
54 |
- inherit git-r3 |
55 |
- SRC_URI="" |
56 |
- #KEYWORDS="" |
57 |
-else |
58 |
- MAJOR_V=$(get_version_component_range 1) |
59 |
- SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.0/${MY_P}.tar.bz2" |
60 |
- KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
61 |
-fi |
62 |
-S="${WORKDIR}/${MY_P}" |
63 |
- |
64 |
-D3D9_P="wine-d3d9-${PV}" |
65 |
-D3D9_DIR="${WORKDIR}/wine-d3d9-patches-${D3D9_P}" |
66 |
-GWP_V="20180120" |
67 |
-PATCHDIR="${WORKDIR}/gentoo-wine-patches" |
68 |
- |
69 |
-DESCRIPTION="Free implementation of Windows(tm) on Unix, with Gallium Nine patchset" |
70 |
-HOMEPAGE="https://www.winehq.org/" |
71 |
-SRC_URI="${SRC_URI} |
72 |
- https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz |
73 |
-" |
74 |
- |
75 |
-if [[ ${PV} == "9999" ]] ; then |
76 |
- D3D9_EGIT_REPO_URI="https://github.com/sarnex/wine-d3d9-patches.git" |
77 |
-else |
78 |
- SRC_URI="${SRC_URI} |
79 |
- d3d9? ( https://github.com/sarnex/wine-d3d9-patches/archive/${D3D9_P}.tar.gz )" |
80 |
-fi |
81 |
- |
82 |
-LICENSE="LGPL-2.1" |
83 |
-SLOT="${PV}" |
84 |
-IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags d3d9 dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml" |
85 |
-REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
86 |
- X? ( truetype ) |
87 |
- elibc_glibc? ( threads ) |
88 |
- osmesa? ( opengl ) |
89 |
- test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124 |
90 |
- |
91 |
-# FIXME: the test suite is unsuitable for us; many tests require net access |
92 |
-# or fail due to Xvfb's opengl limitations. |
93 |
-RESTRICT="test" |
94 |
- |
95 |
-COMMON_DEPEND=" |
96 |
- X? ( |
97 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
98 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
99 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
100 |
- x11-libs/libXi[${MULTILIB_USEDEP}] |
101 |
- x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
102 |
- ) |
103 |
- alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
104 |
- capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
105 |
- cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
106 |
- d3d9? ( |
107 |
- media-libs/mesa[d3d9,egl,${MULTILIB_USEDEP}] |
108 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
109 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
110 |
- x11-libs/libxcb[${MULTILIB_USEDEP}] |
111 |
- ) |
112 |
- fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
113 |
- gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
114 |
- gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
115 |
- gstreamer? ( |
116 |
- media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
117 |
- media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
118 |
- ) |
119 |
- jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
120 |
- lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
121 |
- ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
122 |
- mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
123 |
- ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
124 |
- netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
125 |
- nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
126 |
- odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
127 |
- openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
128 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
129 |
- opengl? ( |
130 |
- virtual/glu[${MULTILIB_USEDEP}] |
131 |
- virtual/opengl[${MULTILIB_USEDEP}] |
132 |
- ) |
133 |
- osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
134 |
- pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
135 |
- png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
136 |
- pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
137 |
- scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
138 |
- ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
139 |
- truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
140 |
- udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
141 |
- udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
142 |
- v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
143 |
- xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
144 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
145 |
- xml? ( |
146 |
- dev-libs/libxml2[${MULTILIB_USEDEP}] |
147 |
- dev-libs/libxslt[${MULTILIB_USEDEP}] |
148 |
- )" |
149 |
- |
150 |
-RDEPEND="${COMMON_DEPEND} |
151 |
- app-emulation/wine-desktop-common |
152 |
- >app-eselect/eselect-wine-0.3 |
153 |
- !app-emulation/wine:0 |
154 |
- dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
155 |
- gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] ) |
156 |
- mono? ( app-emulation/wine-mono:4.6.4 ) |
157 |
- perl? ( |
158 |
- dev-lang/perl |
159 |
- dev-perl/XML-Simple |
160 |
- ) |
161 |
- pulseaudio? ( |
162 |
- realtime? ( sys-auth/rtkit ) |
163 |
- ) |
164 |
- samba? ( >=net-fs/samba-3.0.25[winbind] ) |
165 |
- selinux? ( sec-policy/selinux-wine ) |
166 |
- udisks? ( sys-fs/udisks:2 )" |
167 |
- |
168 |
-# tools/make_requests requires perl |
169 |
-DEPEND="${COMMON_DEPEND} |
170 |
- sys-devel/flex |
171 |
- >=sys-kernel/linux-headers-2.6 |
172 |
- virtual/pkgconfig |
173 |
- virtual/yacc |
174 |
- X? ( x11-base/xorg-proto ) |
175 |
- prelink? ( sys-devel/prelink ) |
176 |
- xinerama? ( x11-base/xorg-proto )" |
177 |
- |
178 |
-# These use a non-standard "Wine" category, which is provided by |
179 |
-# /etc/xdg/applications-merged/wine.menu |
180 |
-QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
181 |
-usr/share/applications/wine-notepad.desktop |
182 |
-usr/share/applications/wine-uninstaller.desktop |
183 |
-usr/share/applications/wine-winecfg.desktop" |
184 |
- |
185 |
-PATCHES=( |
186 |
- "${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726 |
187 |
- "${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615 |
188 |
- "${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508 |
189 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611 |
190 |
- "${PATCHDIR}/patches/freetype-2.8.1-segfault.patch" #631676 |
191 |
- "${PATCHDIR}/patches/freetype-2.8.1-drop-glyphs.patch" #631376 |
192 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-rearrange-manpages.patch" #469418 #617864 |
193 |
-) |
194 |
-PATCHES_BIN=( |
195 |
- "${PATCHDIR}/patches/freetype-2.8.1-patch-fonts.patch" #631376 |
196 |
-) |
197 |
- |
198 |
-# https://bugs.gentoo.org/show_bug.cgi?id=635222 |
199 |
-if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then |
200 |
- DEPEND+=" dev-util/patchbin" |
201 |
-fi |
202 |
- |
203 |
-wine_compiler_check() { |
204 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
205 |
- |
206 |
- # GCC-specific bugs |
207 |
- if tc-is-gcc; then |
208 |
- # bug #549768 |
209 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
210 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
211 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
212 |
- # Run in subshell to prevent "Aborted" message |
213 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
214 |
- if ! eend $?; then |
215 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
216 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
217 |
- eerror "or use gcc-config to select a different compiler version." |
218 |
- eerror "See https://bugs.gentoo.org/549768" |
219 |
- eerror |
220 |
- return 1 |
221 |
- fi |
222 |
- fi |
223 |
- # bug #574044 |
224 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
225 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
226 |
- # Compile in subshell to prevent "Aborted" message |
227 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
228 |
- if ! eend $?; then |
229 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
230 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
231 |
- eerror "or use gcc-config to select a different compiler version." |
232 |
- eerror "See https://bugs.gentoo.org/574044" |
233 |
- eerror |
234 |
- return 1 |
235 |
- fi |
236 |
- fi |
237 |
- fi |
238 |
- |
239 |
- # Ensure compiler support |
240 |
- if use abi_x86_64; then |
241 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
242 |
- # Compile in subshell to prevent "Aborted" message |
243 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
244 |
- if ! eend $?; then |
245 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
246 |
- eerror |
247 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
248 |
- eerror |
249 |
- return 1 |
250 |
- fi |
251 |
- fi |
252 |
-} |
253 |
- |
254 |
-wine_build_environment_check() { |
255 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
256 |
- |
257 |
- if use abi_x86_64; then |
258 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
259 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
260 |
- die |
261 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
262 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
263 |
- die |
264 |
- fi |
265 |
- fi |
266 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
267 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
268 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
269 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
270 |
- fi |
271 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
272 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
273 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
274 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
275 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
276 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
277 |
- fi |
278 |
- fi |
279 |
- |
280 |
- if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
281 |
- eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
282 |
- eerror "See https://bugs.gentoo.org/487864 for more details." |
283 |
- eerror |
284 |
- return 1 |
285 |
- fi |
286 |
-} |
287 |
- |
288 |
-wine_env_vcs_vars() { |
289 |
- local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
290 |
- local pn_live_val="${pn_live_var}" |
291 |
- eval pn_live_val='$'${pn_live_val} |
292 |
- if [[ ! -z ${pn_live_val} ]]; then |
293 |
- if use d3d9; then |
294 |
- eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}" |
295 |
- eerror "cannot be used to set the commit. Instead, you may use the" |
296 |
- eerror "environmental variables WINE_COMMIT, and D3D9_COMMIT." |
297 |
- eerror |
298 |
- return 1 |
299 |
- fi |
300 |
- fi |
301 |
- if [[ ! -z ${EGIT_COMMIT} ]]; then |
302 |
- eerror "Commits must now be specified using the environmental variables" |
303 |
- eerror "WINE_COMMIT, and D3D9_COMMIT" |
304 |
- eerror |
305 |
- return 1 |
306 |
- fi |
307 |
-} |
308 |
- |
309 |
-pkg_pretend() { |
310 |
- wine_build_environment_check || die |
311 |
- |
312 |
- # Verify OSS support |
313 |
- if use oss && ! use kernel_FreeBSD; then |
314 |
- if ! has_version ">=media-sound/oss-4"; then |
315 |
- eerror "You cannot build wine with USE=oss without having support from a" |
316 |
- eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
317 |
- eerror |
318 |
- die |
319 |
- fi |
320 |
- fi |
321 |
-} |
322 |
- |
323 |
-pkg_setup() { |
324 |
- wine_build_environment_check || die |
325 |
- wine_env_vcs_vars || die |
326 |
- |
327 |
- WINE_VARIANT="${PN#wine}-${PV}" |
328 |
- WINE_VARIANT="${WINE_VARIANT#-}" |
329 |
- |
330 |
- MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
331 |
- MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
332 |
- MY_DATADIR="${MY_DATAROOTDIR}" |
333 |
- MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
334 |
- MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
335 |
- MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
336 |
- MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
337 |
- MY_MANDIR="${MY_DATADIR}/man" |
338 |
-} |
339 |
- |
340 |
-src_unpack() { |
341 |
- if [[ ${PV} == "9999" ]] ; then |
342 |
- EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack |
343 |
- if use d3d9; then |
344 |
- git-r3_fetch "${D3D9_EGIT_REPO_URI}" "${D3D9_COMMIT}" |
345 |
- git-r3_checkout "${D3D9_EGIT_REPO_URI}" "${D3D9_DIR}" |
346 |
- fi |
347 |
- fi |
348 |
- |
349 |
- default |
350 |
- |
351 |
- l10n_find_plocales_changes "${S}/po" "" ".po" |
352 |
-} |
353 |
- |
354 |
-src_prepare() { |
355 |
- |
356 |
- eapply_bin(){ |
357 |
- local patch |
358 |
- for patch in ${PATCHES_BIN[@]}; do |
359 |
- patchbin --nogit < "${patch}" || die |
360 |
- done |
361 |
- } |
362 |
- |
363 |
- local md5="$(md5sum server/protocol.def)" |
364 |
- |
365 |
- if use d3d9; then |
366 |
- PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" ) |
367 |
- PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" ) |
368 |
- fi |
369 |
- |
370 |
- default |
371 |
- eapply_bin |
372 |
- eautoreconf |
373 |
- |
374 |
- # Modification of the server protocol requires regenerating the server requests |
375 |
- if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
376 |
- einfo "server/protocol.def was patched; running tools/make_requests" |
377 |
- tools/make_requests || die #432348 |
378 |
- fi |
379 |
- sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
380 |
- if ! use run-exes; then |
381 |
- sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
382 |
- fi |
383 |
- |
384 |
- # Edit wine.desktop to work for specific variant |
385 |
- sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
386 |
- |
387 |
- # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652 |
388 |
- cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die |
389 |
- |
390 |
- l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
391 |
- |
392 |
- # Fix manpage generation for locales #469418 and abi_x86_64 #617864 |
393 |
- # Requires wine-2.0-rearrange-manpages.patch |
394 |
- |
395 |
- # Duplicate manpages input files for wine64 |
396 |
- local f |
397 |
- for f in loader/*.man.in; do |
398 |
- cp ${f} ${f/wine/wine64} || die |
399 |
- done |
400 |
- # Add wine64 manpages to Makefile |
401 |
- if use abi_x86_64; then |
402 |
- sed -i "/wine.man.in/i \ |
403 |
- \\\twine64.man.in \\\\" loader/Makefile.in || die |
404 |
- sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\ |
405 |
-\164\2/' loader/Makefile.in || die |
406 |
- fi |
407 |
- |
408 |
- rm_man_file(){ |
409 |
- local file="${1}" |
410 |
- loc=${2} |
411 |
- sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die |
412 |
- } |
413 |
- |
414 |
- while read f; do |
415 |
- l10n_for_each_disabled_locale_do rm_man_file "${f}" |
416 |
- done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print) |
417 |
-} |
418 |
- |
419 |
-src_configure() { |
420 |
- wine_compiler_check || die |
421 |
- |
422 |
- export LDCONFIG=/bin/true |
423 |
- use custom-cflags || strip-flags |
424 |
- |
425 |
- multilib-minimal_src_configure |
426 |
-} |
427 |
- |
428 |
-multilib_src_configure() { |
429 |
- local myconf=( |
430 |
- --prefix="${MY_PREFIX}" |
431 |
- --datarootdir="${MY_DATAROOTDIR}" |
432 |
- --datadir="${MY_DATADIR}" |
433 |
- --docdir="${MY_DOCDIR}" |
434 |
- --includedir="${MY_INCLUDEDIR}" |
435 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
436 |
- --libexecdir="${MY_LIBEXECDIR}" |
437 |
- --localstatedir="${MY_LOCALSTATEDIR}" |
438 |
- --mandir="${MY_MANDIR}" |
439 |
- --sysconfdir=/etc/wine |
440 |
- $(use_with alsa) |
441 |
- $(use_with capi) |
442 |
- $(use_with lcms cms) |
443 |
- $(use_with cups) |
444 |
- $(use_with ncurses curses) |
445 |
- $(use_with udisks dbus) |
446 |
- $(use_with fontconfig) |
447 |
- $(use_with ssl gnutls) |
448 |
- $(use_enable gecko mshtml) |
449 |
- $(use_with gphoto2 gphoto) |
450 |
- $(use_with gsm) |
451 |
- $(use_with gstreamer) |
452 |
- --without-hal |
453 |
- $(use_with jpeg) |
454 |
- $(use_with ldap) |
455 |
- $(use_enable mono mscoree) |
456 |
- $(use_with mp3 mpg123) |
457 |
- $(use_with netapi) |
458 |
- $(use_with nls gettext) |
459 |
- $(use_with openal) |
460 |
- $(use_with opencl) |
461 |
- $(use_with opengl) |
462 |
- $(use_with osmesa) |
463 |
- $(use_with oss) |
464 |
- $(use_with pcap) |
465 |
- $(use_with png) |
466 |
- $(use_with pulseaudio pulse) |
467 |
- $(use_with threads pthread) |
468 |
- $(use_with scanner sane) |
469 |
- $(use_enable test tests) |
470 |
- $(use_with truetype freetype) |
471 |
- $(use_with udev) |
472 |
- $(use_with v4l) |
473 |
- $(use_with X x) |
474 |
- $(use_with xcomposite) |
475 |
- $(use_with xinerama) |
476 |
- $(use_with xml) |
477 |
- $(use_with xml xslt) |
478 |
- ) |
479 |
- |
480 |
- use d3d9 && myconf+=( $(use_with d3d9 d3d9-nine) ) |
481 |
- |
482 |
- local PKG_CONFIG AR RANLIB |
483 |
- # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
484 |
- # set AR and RANLIB to make QA scripts happy; #483342 |
485 |
- tc-export PKG_CONFIG AR RANLIB |
486 |
- |
487 |
- if use amd64; then |
488 |
- if [[ ${ABI} == amd64 ]]; then |
489 |
- myconf+=( --enable-win64 ) |
490 |
- else |
491 |
- myconf+=( --disable-win64 ) |
492 |
- fi |
493 |
- |
494 |
- # Note: using --with-wine64 results in problems with multilib.eclass |
495 |
- # CC/LD hackery. We're using separate tools instead. |
496 |
- fi |
497 |
- |
498 |
- ECONF_SOURCE=${S} \ |
499 |
- econf "${myconf[@]}" |
500 |
- emake depend |
501 |
-} |
502 |
- |
503 |
-multilib_src_test() { |
504 |
- # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
505 |
- if [[ ${ABI} == x86 ]]; then |
506 |
- if [[ $(id -u) == 0 ]]; then |
507 |
- ewarn "Skipping tests since they cannot be run under the root user." |
508 |
- ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
509 |
- return |
510 |
- fi |
511 |
- |
512 |
- WINEPREFIX="${T}/.wine-${ABI}" \ |
513 |
- Xemake test |
514 |
- fi |
515 |
-} |
516 |
- |
517 |
-multilib_src_install_all() { |
518 |
- local DOCS=( ANNOUNCE AUTHORS README ) |
519 |
- add_locale_docs() { |
520 |
- local locale_doc="documentation/README.$1" |
521 |
- [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
522 |
- } |
523 |
- l10n_for_each_locale_do add_locale_docs |
524 |
- |
525 |
- einstalldocs |
526 |
- prune_libtool_files --all |
527 |
- |
528 |
- if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
529 |
- rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
530 |
- "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
531 |
- fi |
532 |
- |
533 |
- # Remove wineconsole if neither backend is installed #551124 |
534 |
- if ! use X && ! use ncurses; then |
535 |
- rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
536 |
- rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
537 |
- rm_wineconsole() { |
538 |
- rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die |
539 |
- } |
540 |
- multilib_foreach_abi rm_wineconsole |
541 |
- fi |
542 |
- |
543 |
- use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
544 |
- use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
545 |
- |
546 |
- if use abi_x86_64 && ! use abi_x86_32; then |
547 |
- dosym wine64 "${MY_PREFIX}"/bin/wine # 404331 |
548 |
- dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader |
549 |
- fi |
550 |
- |
551 |
- # Failglob for binloops, shouldn't be necessary, but including to stay safe |
552 |
- eshopts_push -s failglob #615218 |
553 |
- # Make wrappers for binaries for handling multiple variants |
554 |
- # Note: wrappers instead of symlinks because some are shell which use basename |
555 |
- local b |
556 |
- for b in "${D%/}${MY_PREFIX}"/bin/*; do |
557 |
- make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
558 |
- done |
559 |
- eshopts_pop |
560 |
-} |
561 |
- |
562 |
-pkg_postinst() { |
563 |
- eselect wine register ${P} |
564 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
565 |
- eselect wine register --vanilla ${P} || die |
566 |
- else |
567 |
- if use d3d9; then |
568 |
- eselect wine register --d3d9 ${P} || die |
569 |
- fi |
570 |
- fi |
571 |
- |
572 |
- eselect wine update --all --if-unset || die |
573 |
- |
574 |
- xdg_desktop_database_update |
575 |
- |
576 |
- if ! use gecko; then |
577 |
- ewarn "Without Wine Gecko, wine prefixes will not have a default" |
578 |
- ewarn "implementation of iexplore. Many older windows applications" |
579 |
- ewarn "rely upon the existence of an iexplore implementation, so" |
580 |
- ewarn "you will likely need to install an external one, like via winetricks" |
581 |
- fi |
582 |
- if ! use mono; then |
583 |
- ewarn "Without Wine Mono, wine prefixes will not have a default" |
584 |
- ewarn "implementation of .NET. Many windows applications rely upon" |
585 |
- ewarn "the existence of a .NET implementation, so you will likely need" |
586 |
- ewarn "to install an external one, like via winetricks" |
587 |
- fi |
588 |
-} |
589 |
- |
590 |
-pkg_prerm() { |
591 |
- eselect wine deregister ${P} |
592 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
593 |
- eselect wine deregister --vanilla ${P} || die |
594 |
- else |
595 |
- if use d3d9; then |
596 |
- eselect wine deregister --d3d9 ${P} || die |
597 |
- fi |
598 |
- fi |
599 |
- |
600 |
- eselect wine update --all --if-unset || die |
601 |
-} |
602 |
- |
603 |
-pkg_postrm() { |
604 |
- xdg_desktop_database_update |
605 |
-} |