1 |
commit: 8fb14f138ac5d46b036aa5c365da2464a7eaf9ab |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 20:26:39 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 20:30:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb14f13 |
7 |
|
8 |
app-emulation/crossover-bin: Version bump for 18.x |
9 |
|
10 |
Closes: https://bugs.gentoo.org/672880 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
13 |
|
14 |
app-emulation/crossover-bin/Manifest | 3 + |
15 |
.../crossover-bin/crossover-bin-18.0.0.ebuild | 170 +++++++++++++++++++++ |
16 |
.../crossover-bin/crossover-bin-18.1.0.ebuild | 170 +++++++++++++++++++++ |
17 |
.../crossover-bin/crossover-bin-18.5.0.ebuild | 170 +++++++++++++++++++++ |
18 |
4 files changed, 513 insertions(+) |
19 |
|
20 |
diff --git a/app-emulation/crossover-bin/Manifest b/app-emulation/crossover-bin/Manifest |
21 |
index c94cbc9afa0..d870d906e22 100644 |
22 |
--- a/app-emulation/crossover-bin/Manifest |
23 |
+++ b/app-emulation/crossover-bin/Manifest |
24 |
@@ -18,3 +18,6 @@ DIST install-crossover-16.0.0.bin 197872657 BLAKE2B d500ed4f6a426154b376ead6c2b5 |
25 |
DIST install-crossover-16.2.5.bin 198336730 BLAKE2B a11252dab552846fe0a1527cd59cd62907142385062b744591cef6707213d03945879fc5da6bcfaaa315967c51ae15159ad14d8519407542b82f0eb53c5fd02e SHA512 17cb711e7257f094e9ccf939edc1ca6be362f18b86078fe307b7e1337850e182d02fde087789f13ea2bf96ca89736f941c1a7bd93ff1b37a78fe8f846a1d5e22 |
26 |
DIST install-crossover-17.5.0.bin 198287744 BLAKE2B c594192927874e5a80626ad110f0089f2bf8b7385a16ff7755923d63ebb0559b1aa505ec4e8b6f85253ac13736b7f9af178c64ed042a515d31cd4565295db163 SHA512 8592d2c91c437d62d1fd5fecf6230eeabfe56c38f49ea795bf4d3b51d8ae4399f1b01801d60dcccb94caeb4dd662675c2739f730f39ef178db32dd4f72182197 |
27 |
DIST install-crossover-17.5.1.bin 198278549 BLAKE2B e53504177eb4a4030a31ae73baf26144375dd559bcd58af3ef05364cfb7a00b8cd68d879e6ef31e92b165876e4c3f85ebcb823dd6585c3edcb8e4cafb76d8e59 SHA512 d1e41c5290c56bbb23a6317e91800d7c23d2b4389ebf08ef4416718103aa06b05b33c655d3ef413fe76773dd3599d8fe3d4ea64274fcc18518923990f980bf2a |
28 |
+DIST install-crossover-18.0.0.bin 206792916 BLAKE2B d1784ddd2dc568d2b6f1fe60b7fad149e6128e61d2315b2179f4d87b7d49bc0166851df3fb3e39b911bfbbba6366f8c98f63e47e18abb173a1129f11795454c7 SHA512 3ad7393714a43e7323ad6e81ea8f165df9253dfdfff20fc68f5091e77b288b86c3a3e11883732dc73ec5c89e500005b6451899b7e43fc4900c6bd40445739281 |
29 |
+DIST install-crossover-18.1.0.bin 206784995 BLAKE2B 4e8ae8330373b505b2ed361e314bcdaf3564a0b846484d2708e64e94d3fe856c35e1d235fa474d4a079a8c0e88dade02bb1e93f0608d1ec99dca2a3a74f7865c SHA512 a679f0a801a6c2045a724ae5935745457689ae73ea4246daa1fc89a387f42c55ba0431db8fcdf48ba7253f616613adb51ca0402fe19480c0254f614fcb6884d8 |
30 |
+DIST install-crossover-18.5.0.bin 224996342 BLAKE2B 300141bcf7c54ab1ce8229c6930df783454d450aee7b1be3cc3a193d1501320dee3e6fdfb3f37c56ae76e97f83f1b45838f1d5b7ed9793888a51df0203fe6dfe SHA512 ce44d7f79280adb36ecbcbdee3fa743dcca47b629fd1cb0ae2afbca56514df96e78e1103f09f5059aaf971a3a561f992158104ffa30bdd28925b14e58bd96855 |
31 |
|
32 |
diff --git a/app-emulation/crossover-bin/crossover-bin-18.0.0.ebuild b/app-emulation/crossover-bin/crossover-bin-18.0.0.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..f193cab1f49 |
35 |
--- /dev/null |
36 |
+++ b/app-emulation/crossover-bin/crossover-bin-18.0.0.ebuild |
37 |
@@ -0,0 +1,170 @@ |
38 |
+# Copyright 1999-2019 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+PYTHON_REQ_USE="threads" |
44 |
+ |
45 |
+inherit python-single-r1 unpacker |
46 |
+ |
47 |
+DESCRIPTION="Commercial version of app-emulation/wine with paid support." |
48 |
+HOMEPAGE="http://www.codeweavers.com/products/crossover/" |
49 |
+SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-${PV}.bin" |
50 |
+ |
51 |
+LICENSE="CROSSOVER-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="-* ~amd64 ~x86" |
54 |
+IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opencl +opengl +png +scanner +ssl +v4l" |
55 |
+RESTRICT="bindist test" |
56 |
+ |
57 |
+QA_FLAGS_IGNORED="opt/cxoffice/.*" |
58 |
+QA_PRESTRIPPED=" |
59 |
+ opt/cxoffice/lib/.* |
60 |
+ opt/cxoffice/lib64/.* |
61 |
+ opt/cxoffice/bin/cxburner |
62 |
+ opt/cxoffice/bin/cxntlm_auth |
63 |
+ opt/cxoffice/bin/wineserver |
64 |
+ opt/cxoffice/bin/wineserver32 |
65 |
+ opt/cxoffice/bin/wineserver64 |
66 |
+ opt/cxoffice/bin/wine64-preloader |
67 |
+ opt/cxoffice/bin/unrar |
68 |
+ opt/cxoffice/bin/wine-preloader |
69 |
+ opt/cxoffice/bin/cxdiag |
70 |
+ opt/cxoffice/bin/cxdiag64 |
71 |
+ opt/cxoffice/bin/cxgettext |
72 |
+ opt/cxoffice/bin/wineloader |
73 |
+ opt/cxoffice/bin/wineloader64 |
74 |
+" |
75 |
+ |
76 |
+S="${WORKDIR}" |
77 |
+ |
78 |
+DEPEND="" |
79 |
+BDEPEND="${PYTHON_DEPS} |
80 |
+ dev-lang/perl |
81 |
+ app-arch/unzip |
82 |
+" |
83 |
+ |
84 |
+RDEPEND="${DEPEND} |
85 |
+ !prefix? ( sys-libs/glibc ) |
86 |
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
87 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
88 |
+ dev-util/desktop-file-utils |
89 |
+ !app-emulation/crossover-office-pro-bin |
90 |
+ !app-emulation/crossover-office-bin |
91 |
+ capi? ( net-libs/libcapi[abi_x86_32(-)] ) |
92 |
+ cups? ( net-print/cups[abi_x86_32(-)] ) |
93 |
+ gsm? ( media-sound/gsm[abi_x86_32(-)] ) |
94 |
+ jpeg? ( virtual/jpeg:0[abi_x86_32(-)] ) |
95 |
+ lcms? ( media-libs/lcms:2 ) |
96 |
+ ldap? ( net-nds/openldap[abi_x86_32(-)] ) |
97 |
+ gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] ) |
98 |
+ mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] ) |
99 |
+ nls? ( sys-devel/gettext[abi_x86_32(-)] ) |
100 |
+ openal? ( media-libs/openal[abi_x86_32(-)] ) |
101 |
+ opencl? ( virtual/opencl[abi_x86_32(-)] ) |
102 |
+ opengl? ( |
103 |
+ virtual/glu[abi_x86_32(-)] |
104 |
+ virtual/opengl[abi_x86_32(-)] |
105 |
+ ) |
106 |
+ png? ( media-libs/libpng:0[abi_x86_32(-)] ) |
107 |
+ scanner? ( media-gfx/sane-backends[abi_x86_32(-)] ) |
108 |
+ ssl? ( dev-libs/openssl:0[abi_x86_32(-)] ) |
109 |
+ v4l? ( media-libs/libv4l[abi_x86_32(-)] ) |
110 |
+ media-libs/alsa-lib[abi_x86_32(-)] |
111 |
+ media-libs/freetype:2[abi_x86_32(-)] |
112 |
+ media-libs/mesa[abi_x86_32(-)] |
113 |
+ sys-auth/nss-mdns[abi_x86_32(-)] |
114 |
+ sys-apps/util-linux[abi_x86_32(-)] |
115 |
+ sys-libs/ncurses:5/5[abi_x86_32(-)] |
116 |
+ sys-libs/zlib[abi_x86_32(-)] |
117 |
+ x11-libs/libICE[abi_x86_32(-)] |
118 |
+ x11-libs/libSM[abi_x86_32(-)] |
119 |
+ x11-libs/libX11[abi_x86_32(-)] |
120 |
+ x11-libs/libXau[abi_x86_32(-)] |
121 |
+ x11-libs/libXdmcp[abi_x86_32(-)] |
122 |
+ x11-libs/libXext[abi_x86_32(-)] |
123 |
+ x11-libs/libXi[abi_x86_32(-)] |
124 |
+ x11-libs/libXrandr[abi_x86_32(-)] |
125 |
+ x11-libs/libXxf86vm[abi_x86_32(-)] |
126 |
+ x11-libs/libxcb[abi_x86_32(-)] |
127 |
+" |
128 |
+ |
129 |
+pkg_nofetch() { |
130 |
+ einfo "Please visit ${HOMEPAGE}" |
131 |
+ einfo "and place ${A} into your DISTDIR directory" |
132 |
+} |
133 |
+ |
134 |
+src_unpack() { |
135 |
+ # self unpacking zip archive; unzip warns about the exe stuff |
136 |
+ unpack_zip ${A} |
137 |
+} |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ default |
141 |
+ python_fix_shebang . |
142 |
+ |
143 |
+ sed -i \ |
144 |
+ -e "s:xdg_install_icons(:&\"${ED}\".:" \ |
145 |
+ -e "s:\"\(.*\)/applications:\"${ED}\1/applications:" \ |
146 |
+ -e "s:\"\(.*\)/desktop-directories:\"${ED}\1/desktop-directories:" \ |
147 |
+ "${S}/lib/perl/CXMenuXDG.pm" |
148 |
+ |
149 |
+ # Remove unnecessary files |
150 |
+ rm -r license.txt guis/ || die "Could not remove files" |
151 |
+ use doc || rm -r doc/ || die "Could not remove files" |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ # Install crossover symlink, bug #476314 |
156 |
+ dosym ../cxoffice/bin/crossover /opt/bin/crossover |
157 |
+ |
158 |
+ # Install documentation |
159 |
+ dodoc README changelog.txt |
160 |
+ rm README changelog.txt || die "Could not remove README and changelog.txt" |
161 |
+ |
162 |
+ # Install files |
163 |
+ dodir /opt/cxoffice |
164 |
+ #cp -r ./* "${ED}opt/cxoffice" \ |
165 |
+ find . | cpio -dumpl "${ED}/opt/cxoffice" 2>/dev/null \ |
166 |
+ || die "Could not install into ${ED}/opt/cxoffice" |
167 |
+ |
168 |
+ # Install configuration file |
169 |
+ insinto /opt/cxoffice/etc |
170 |
+ doins share/crossover/data/cxoffice.conf |
171 |
+ |
172 |
+ # Konqueror in its infinite wisdom decides to try opening things for |
173 |
+ # writing, which are sandbox violations. This breaks the install process if |
174 |
+ # it is installed, so we ninja edit it to false so it so doesn't run. |
175 |
+ sed -i -e 's/cxwhich konqueror/false &/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
176 |
+ || die "Could not apply workaround for konqueror" |
177 |
+ |
178 |
+ # Install menus |
179 |
+ # XXX: locate_gui.sh automatically detects *-application-merged directories |
180 |
+ # This means what we install will vary depending on the contents of |
181 |
+ # /etc/xdg, which is a QA violation. It is not clear how to resolve this. |
182 |
+ XDG_DATA_HOME="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \ |
183 |
+ "${ED}/opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \ |
184 |
+ || die "Could not install menus" |
185 |
+ |
186 |
+ # Revert ninja edit |
187 |
+ sed -i -e 's/false \(cxwhich konqueror\)/\1/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
188 |
+ || die "Could not apply workaround for konqueror" |
189 |
+ |
190 |
+ rm "${ED}/usr/share/applications/"*"Uninstall CrossOver Linux.desktop" \ |
191 |
+ || die "Could not remove uninstall menus" |
192 |
+ sed -i \ |
193 |
+ -e "s:\"${ED}\".::" \ |
194 |
+ -e "s:${ED}::" \ |
195 |
+ "${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" \ |
196 |
+ || die "Could not fix paths in ${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" |
197 |
+ sed -i -e "s:${ED}:/:" \ |
198 |
+ "${ED}/usr/share/applications/"*"CrossOver.desktop" \ |
199 |
+ || die "Could not fix paths of *.desktop files" |
200 |
+} |
201 |
+ |
202 |
+pkg_postinst() { |
203 |
+ einfo "${P} is open source software with the exception of the GUI." |
204 |
+ einfo "Source code can be obtained from:" |
205 |
+ einfo |
206 |
+ einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz" |
207 |
+} |
208 |
|
209 |
diff --git a/app-emulation/crossover-bin/crossover-bin-18.1.0.ebuild b/app-emulation/crossover-bin/crossover-bin-18.1.0.ebuild |
210 |
new file mode 100644 |
211 |
index 00000000000..f193cab1f49 |
212 |
--- /dev/null |
213 |
+++ b/app-emulation/crossover-bin/crossover-bin-18.1.0.ebuild |
214 |
@@ -0,0 +1,170 @@ |
215 |
+# Copyright 1999-2019 Gentoo Authors |
216 |
+# Distributed under the terms of the GNU General Public License v2 |
217 |
+ |
218 |
+EAPI=7 |
219 |
+PYTHON_COMPAT=( python2_7 ) |
220 |
+PYTHON_REQ_USE="threads" |
221 |
+ |
222 |
+inherit python-single-r1 unpacker |
223 |
+ |
224 |
+DESCRIPTION="Commercial version of app-emulation/wine with paid support." |
225 |
+HOMEPAGE="http://www.codeweavers.com/products/crossover/" |
226 |
+SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-${PV}.bin" |
227 |
+ |
228 |
+LICENSE="CROSSOVER-3" |
229 |
+SLOT="0" |
230 |
+KEYWORDS="-* ~amd64 ~x86" |
231 |
+IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opencl +opengl +png +scanner +ssl +v4l" |
232 |
+RESTRICT="bindist test" |
233 |
+ |
234 |
+QA_FLAGS_IGNORED="opt/cxoffice/.*" |
235 |
+QA_PRESTRIPPED=" |
236 |
+ opt/cxoffice/lib/.* |
237 |
+ opt/cxoffice/lib64/.* |
238 |
+ opt/cxoffice/bin/cxburner |
239 |
+ opt/cxoffice/bin/cxntlm_auth |
240 |
+ opt/cxoffice/bin/wineserver |
241 |
+ opt/cxoffice/bin/wineserver32 |
242 |
+ opt/cxoffice/bin/wineserver64 |
243 |
+ opt/cxoffice/bin/wine64-preloader |
244 |
+ opt/cxoffice/bin/unrar |
245 |
+ opt/cxoffice/bin/wine-preloader |
246 |
+ opt/cxoffice/bin/cxdiag |
247 |
+ opt/cxoffice/bin/cxdiag64 |
248 |
+ opt/cxoffice/bin/cxgettext |
249 |
+ opt/cxoffice/bin/wineloader |
250 |
+ opt/cxoffice/bin/wineloader64 |
251 |
+" |
252 |
+ |
253 |
+S="${WORKDIR}" |
254 |
+ |
255 |
+DEPEND="" |
256 |
+BDEPEND="${PYTHON_DEPS} |
257 |
+ dev-lang/perl |
258 |
+ app-arch/unzip |
259 |
+" |
260 |
+ |
261 |
+RDEPEND="${DEPEND} |
262 |
+ !prefix? ( sys-libs/glibc ) |
263 |
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
264 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
265 |
+ dev-util/desktop-file-utils |
266 |
+ !app-emulation/crossover-office-pro-bin |
267 |
+ !app-emulation/crossover-office-bin |
268 |
+ capi? ( net-libs/libcapi[abi_x86_32(-)] ) |
269 |
+ cups? ( net-print/cups[abi_x86_32(-)] ) |
270 |
+ gsm? ( media-sound/gsm[abi_x86_32(-)] ) |
271 |
+ jpeg? ( virtual/jpeg:0[abi_x86_32(-)] ) |
272 |
+ lcms? ( media-libs/lcms:2 ) |
273 |
+ ldap? ( net-nds/openldap[abi_x86_32(-)] ) |
274 |
+ gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] ) |
275 |
+ mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] ) |
276 |
+ nls? ( sys-devel/gettext[abi_x86_32(-)] ) |
277 |
+ openal? ( media-libs/openal[abi_x86_32(-)] ) |
278 |
+ opencl? ( virtual/opencl[abi_x86_32(-)] ) |
279 |
+ opengl? ( |
280 |
+ virtual/glu[abi_x86_32(-)] |
281 |
+ virtual/opengl[abi_x86_32(-)] |
282 |
+ ) |
283 |
+ png? ( media-libs/libpng:0[abi_x86_32(-)] ) |
284 |
+ scanner? ( media-gfx/sane-backends[abi_x86_32(-)] ) |
285 |
+ ssl? ( dev-libs/openssl:0[abi_x86_32(-)] ) |
286 |
+ v4l? ( media-libs/libv4l[abi_x86_32(-)] ) |
287 |
+ media-libs/alsa-lib[abi_x86_32(-)] |
288 |
+ media-libs/freetype:2[abi_x86_32(-)] |
289 |
+ media-libs/mesa[abi_x86_32(-)] |
290 |
+ sys-auth/nss-mdns[abi_x86_32(-)] |
291 |
+ sys-apps/util-linux[abi_x86_32(-)] |
292 |
+ sys-libs/ncurses:5/5[abi_x86_32(-)] |
293 |
+ sys-libs/zlib[abi_x86_32(-)] |
294 |
+ x11-libs/libICE[abi_x86_32(-)] |
295 |
+ x11-libs/libSM[abi_x86_32(-)] |
296 |
+ x11-libs/libX11[abi_x86_32(-)] |
297 |
+ x11-libs/libXau[abi_x86_32(-)] |
298 |
+ x11-libs/libXdmcp[abi_x86_32(-)] |
299 |
+ x11-libs/libXext[abi_x86_32(-)] |
300 |
+ x11-libs/libXi[abi_x86_32(-)] |
301 |
+ x11-libs/libXrandr[abi_x86_32(-)] |
302 |
+ x11-libs/libXxf86vm[abi_x86_32(-)] |
303 |
+ x11-libs/libxcb[abi_x86_32(-)] |
304 |
+" |
305 |
+ |
306 |
+pkg_nofetch() { |
307 |
+ einfo "Please visit ${HOMEPAGE}" |
308 |
+ einfo "and place ${A} into your DISTDIR directory" |
309 |
+} |
310 |
+ |
311 |
+src_unpack() { |
312 |
+ # self unpacking zip archive; unzip warns about the exe stuff |
313 |
+ unpack_zip ${A} |
314 |
+} |
315 |
+ |
316 |
+src_prepare() { |
317 |
+ default |
318 |
+ python_fix_shebang . |
319 |
+ |
320 |
+ sed -i \ |
321 |
+ -e "s:xdg_install_icons(:&\"${ED}\".:" \ |
322 |
+ -e "s:\"\(.*\)/applications:\"${ED}\1/applications:" \ |
323 |
+ -e "s:\"\(.*\)/desktop-directories:\"${ED}\1/desktop-directories:" \ |
324 |
+ "${S}/lib/perl/CXMenuXDG.pm" |
325 |
+ |
326 |
+ # Remove unnecessary files |
327 |
+ rm -r license.txt guis/ || die "Could not remove files" |
328 |
+ use doc || rm -r doc/ || die "Could not remove files" |
329 |
+} |
330 |
+ |
331 |
+src_install() { |
332 |
+ # Install crossover symlink, bug #476314 |
333 |
+ dosym ../cxoffice/bin/crossover /opt/bin/crossover |
334 |
+ |
335 |
+ # Install documentation |
336 |
+ dodoc README changelog.txt |
337 |
+ rm README changelog.txt || die "Could not remove README and changelog.txt" |
338 |
+ |
339 |
+ # Install files |
340 |
+ dodir /opt/cxoffice |
341 |
+ #cp -r ./* "${ED}opt/cxoffice" \ |
342 |
+ find . | cpio -dumpl "${ED}/opt/cxoffice" 2>/dev/null \ |
343 |
+ || die "Could not install into ${ED}/opt/cxoffice" |
344 |
+ |
345 |
+ # Install configuration file |
346 |
+ insinto /opt/cxoffice/etc |
347 |
+ doins share/crossover/data/cxoffice.conf |
348 |
+ |
349 |
+ # Konqueror in its infinite wisdom decides to try opening things for |
350 |
+ # writing, which are sandbox violations. This breaks the install process if |
351 |
+ # it is installed, so we ninja edit it to false so it so doesn't run. |
352 |
+ sed -i -e 's/cxwhich konqueror/false &/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
353 |
+ || die "Could not apply workaround for konqueror" |
354 |
+ |
355 |
+ # Install menus |
356 |
+ # XXX: locate_gui.sh automatically detects *-application-merged directories |
357 |
+ # This means what we install will vary depending on the contents of |
358 |
+ # /etc/xdg, which is a QA violation. It is not clear how to resolve this. |
359 |
+ XDG_DATA_HOME="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \ |
360 |
+ "${ED}/opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \ |
361 |
+ || die "Could not install menus" |
362 |
+ |
363 |
+ # Revert ninja edit |
364 |
+ sed -i -e 's/false \(cxwhich konqueror\)/\1/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
365 |
+ || die "Could not apply workaround for konqueror" |
366 |
+ |
367 |
+ rm "${ED}/usr/share/applications/"*"Uninstall CrossOver Linux.desktop" \ |
368 |
+ || die "Could not remove uninstall menus" |
369 |
+ sed -i \ |
370 |
+ -e "s:\"${ED}\".::" \ |
371 |
+ -e "s:${ED}::" \ |
372 |
+ "${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" \ |
373 |
+ || die "Could not fix paths in ${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" |
374 |
+ sed -i -e "s:${ED}:/:" \ |
375 |
+ "${ED}/usr/share/applications/"*"CrossOver.desktop" \ |
376 |
+ || die "Could not fix paths of *.desktop files" |
377 |
+} |
378 |
+ |
379 |
+pkg_postinst() { |
380 |
+ einfo "${P} is open source software with the exception of the GUI." |
381 |
+ einfo "Source code can be obtained from:" |
382 |
+ einfo |
383 |
+ einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz" |
384 |
+} |
385 |
|
386 |
diff --git a/app-emulation/crossover-bin/crossover-bin-18.5.0.ebuild b/app-emulation/crossover-bin/crossover-bin-18.5.0.ebuild |
387 |
new file mode 100644 |
388 |
index 00000000000..f193cab1f49 |
389 |
--- /dev/null |
390 |
+++ b/app-emulation/crossover-bin/crossover-bin-18.5.0.ebuild |
391 |
@@ -0,0 +1,170 @@ |
392 |
+# Copyright 1999-2019 Gentoo Authors |
393 |
+# Distributed under the terms of the GNU General Public License v2 |
394 |
+ |
395 |
+EAPI=7 |
396 |
+PYTHON_COMPAT=( python2_7 ) |
397 |
+PYTHON_REQ_USE="threads" |
398 |
+ |
399 |
+inherit python-single-r1 unpacker |
400 |
+ |
401 |
+DESCRIPTION="Commercial version of app-emulation/wine with paid support." |
402 |
+HOMEPAGE="http://www.codeweavers.com/products/crossover/" |
403 |
+SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-${PV}.bin" |
404 |
+ |
405 |
+LICENSE="CROSSOVER-3" |
406 |
+SLOT="0" |
407 |
+KEYWORDS="-* ~amd64 ~x86" |
408 |
+IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opencl +opengl +png +scanner +ssl +v4l" |
409 |
+RESTRICT="bindist test" |
410 |
+ |
411 |
+QA_FLAGS_IGNORED="opt/cxoffice/.*" |
412 |
+QA_PRESTRIPPED=" |
413 |
+ opt/cxoffice/lib/.* |
414 |
+ opt/cxoffice/lib64/.* |
415 |
+ opt/cxoffice/bin/cxburner |
416 |
+ opt/cxoffice/bin/cxntlm_auth |
417 |
+ opt/cxoffice/bin/wineserver |
418 |
+ opt/cxoffice/bin/wineserver32 |
419 |
+ opt/cxoffice/bin/wineserver64 |
420 |
+ opt/cxoffice/bin/wine64-preloader |
421 |
+ opt/cxoffice/bin/unrar |
422 |
+ opt/cxoffice/bin/wine-preloader |
423 |
+ opt/cxoffice/bin/cxdiag |
424 |
+ opt/cxoffice/bin/cxdiag64 |
425 |
+ opt/cxoffice/bin/cxgettext |
426 |
+ opt/cxoffice/bin/wineloader |
427 |
+ opt/cxoffice/bin/wineloader64 |
428 |
+" |
429 |
+ |
430 |
+S="${WORKDIR}" |
431 |
+ |
432 |
+DEPEND="" |
433 |
+BDEPEND="${PYTHON_DEPS} |
434 |
+ dev-lang/perl |
435 |
+ app-arch/unzip |
436 |
+" |
437 |
+ |
438 |
+RDEPEND="${DEPEND} |
439 |
+ !prefix? ( sys-libs/glibc ) |
440 |
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
441 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
442 |
+ dev-util/desktop-file-utils |
443 |
+ !app-emulation/crossover-office-pro-bin |
444 |
+ !app-emulation/crossover-office-bin |
445 |
+ capi? ( net-libs/libcapi[abi_x86_32(-)] ) |
446 |
+ cups? ( net-print/cups[abi_x86_32(-)] ) |
447 |
+ gsm? ( media-sound/gsm[abi_x86_32(-)] ) |
448 |
+ jpeg? ( virtual/jpeg:0[abi_x86_32(-)] ) |
449 |
+ lcms? ( media-libs/lcms:2 ) |
450 |
+ ldap? ( net-nds/openldap[abi_x86_32(-)] ) |
451 |
+ gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] ) |
452 |
+ mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] ) |
453 |
+ nls? ( sys-devel/gettext[abi_x86_32(-)] ) |
454 |
+ openal? ( media-libs/openal[abi_x86_32(-)] ) |
455 |
+ opencl? ( virtual/opencl[abi_x86_32(-)] ) |
456 |
+ opengl? ( |
457 |
+ virtual/glu[abi_x86_32(-)] |
458 |
+ virtual/opengl[abi_x86_32(-)] |
459 |
+ ) |
460 |
+ png? ( media-libs/libpng:0[abi_x86_32(-)] ) |
461 |
+ scanner? ( media-gfx/sane-backends[abi_x86_32(-)] ) |
462 |
+ ssl? ( dev-libs/openssl:0[abi_x86_32(-)] ) |
463 |
+ v4l? ( media-libs/libv4l[abi_x86_32(-)] ) |
464 |
+ media-libs/alsa-lib[abi_x86_32(-)] |
465 |
+ media-libs/freetype:2[abi_x86_32(-)] |
466 |
+ media-libs/mesa[abi_x86_32(-)] |
467 |
+ sys-auth/nss-mdns[abi_x86_32(-)] |
468 |
+ sys-apps/util-linux[abi_x86_32(-)] |
469 |
+ sys-libs/ncurses:5/5[abi_x86_32(-)] |
470 |
+ sys-libs/zlib[abi_x86_32(-)] |
471 |
+ x11-libs/libICE[abi_x86_32(-)] |
472 |
+ x11-libs/libSM[abi_x86_32(-)] |
473 |
+ x11-libs/libX11[abi_x86_32(-)] |
474 |
+ x11-libs/libXau[abi_x86_32(-)] |
475 |
+ x11-libs/libXdmcp[abi_x86_32(-)] |
476 |
+ x11-libs/libXext[abi_x86_32(-)] |
477 |
+ x11-libs/libXi[abi_x86_32(-)] |
478 |
+ x11-libs/libXrandr[abi_x86_32(-)] |
479 |
+ x11-libs/libXxf86vm[abi_x86_32(-)] |
480 |
+ x11-libs/libxcb[abi_x86_32(-)] |
481 |
+" |
482 |
+ |
483 |
+pkg_nofetch() { |
484 |
+ einfo "Please visit ${HOMEPAGE}" |
485 |
+ einfo "and place ${A} into your DISTDIR directory" |
486 |
+} |
487 |
+ |
488 |
+src_unpack() { |
489 |
+ # self unpacking zip archive; unzip warns about the exe stuff |
490 |
+ unpack_zip ${A} |
491 |
+} |
492 |
+ |
493 |
+src_prepare() { |
494 |
+ default |
495 |
+ python_fix_shebang . |
496 |
+ |
497 |
+ sed -i \ |
498 |
+ -e "s:xdg_install_icons(:&\"${ED}\".:" \ |
499 |
+ -e "s:\"\(.*\)/applications:\"${ED}\1/applications:" \ |
500 |
+ -e "s:\"\(.*\)/desktop-directories:\"${ED}\1/desktop-directories:" \ |
501 |
+ "${S}/lib/perl/CXMenuXDG.pm" |
502 |
+ |
503 |
+ # Remove unnecessary files |
504 |
+ rm -r license.txt guis/ || die "Could not remove files" |
505 |
+ use doc || rm -r doc/ || die "Could not remove files" |
506 |
+} |
507 |
+ |
508 |
+src_install() { |
509 |
+ # Install crossover symlink, bug #476314 |
510 |
+ dosym ../cxoffice/bin/crossover /opt/bin/crossover |
511 |
+ |
512 |
+ # Install documentation |
513 |
+ dodoc README changelog.txt |
514 |
+ rm README changelog.txt || die "Could not remove README and changelog.txt" |
515 |
+ |
516 |
+ # Install files |
517 |
+ dodir /opt/cxoffice |
518 |
+ #cp -r ./* "${ED}opt/cxoffice" \ |
519 |
+ find . | cpio -dumpl "${ED}/opt/cxoffice" 2>/dev/null \ |
520 |
+ || die "Could not install into ${ED}/opt/cxoffice" |
521 |
+ |
522 |
+ # Install configuration file |
523 |
+ insinto /opt/cxoffice/etc |
524 |
+ doins share/crossover/data/cxoffice.conf |
525 |
+ |
526 |
+ # Konqueror in its infinite wisdom decides to try opening things for |
527 |
+ # writing, which are sandbox violations. This breaks the install process if |
528 |
+ # it is installed, so we ninja edit it to false so it so doesn't run. |
529 |
+ sed -i -e 's/cxwhich konqueror/false &/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
530 |
+ || die "Could not apply workaround for konqueror" |
531 |
+ |
532 |
+ # Install menus |
533 |
+ # XXX: locate_gui.sh automatically detects *-application-merged directories |
534 |
+ # This means what we install will vary depending on the contents of |
535 |
+ # /etc/xdg, which is a QA violation. It is not clear how to resolve this. |
536 |
+ XDG_DATA_HOME="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \ |
537 |
+ "${ED}/opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \ |
538 |
+ || die "Could not install menus" |
539 |
+ |
540 |
+ # Revert ninja edit |
541 |
+ sed -i -e 's/false \(cxwhich konqueror\)/\1/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
542 |
+ || die "Could not apply workaround for konqueror" |
543 |
+ |
544 |
+ rm "${ED}/usr/share/applications/"*"Uninstall CrossOver Linux.desktop" \ |
545 |
+ || die "Could not remove uninstall menus" |
546 |
+ sed -i \ |
547 |
+ -e "s:\"${ED}\".::" \ |
548 |
+ -e "s:${ED}::" \ |
549 |
+ "${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" \ |
550 |
+ || die "Could not fix paths in ${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" |
551 |
+ sed -i -e "s:${ED}:/:" \ |
552 |
+ "${ED}/usr/share/applications/"*"CrossOver.desktop" \ |
553 |
+ || die "Could not fix paths of *.desktop files" |
554 |
+} |
555 |
+ |
556 |
+pkg_postinst() { |
557 |
+ einfo "${P} is open source software with the exception of the GUI." |
558 |
+ einfo "Source code can be obtained from:" |
559 |
+ einfo |
560 |
+ einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz" |
561 |
+} |