Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/crossover-bin/
Date: Sun, 03 May 2020 11:27:04
Message-Id: 1588505212.8df8ff60a85a44b8747432b06a41cfef85a23866.pacho@gentoo
1 commit: 8df8ff60a85a44b8747432b06a41cfef85a23866
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 11:26:42 2020 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 11:26:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8df8ff60
7
8 app-emulation/crossover-bin: Bump to 19.0.1
9
10 Also fix missing deps, license.txt is used at runtime.
11
12 Bug: https://bugs.gentoo.org/705662
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
15
16 app-emulation/crossover-bin/Manifest | 1 +
17 .../crossover-bin/crossover-bin-19.0.1.ebuild | 206 +++++++++++++++++++++
18 app-emulation/crossover-bin/metadata.xml | 3 +
19 3 files changed, 210 insertions(+)
20
21 diff --git a/app-emulation/crossover-bin/Manifest b/app-emulation/crossover-bin/Manifest
22 index d870d906e22..e81d52fe759 100644
23 --- a/app-emulation/crossover-bin/Manifest
24 +++ b/app-emulation/crossover-bin/Manifest
25 @@ -21,3 +21,4 @@ DIST install-crossover-17.5.1.bin 198278549 BLAKE2B e53504177eb4a4030a31ae73baf2
26 DIST install-crossover-18.0.0.bin 206792916 BLAKE2B d1784ddd2dc568d2b6f1fe60b7fad149e6128e61d2315b2179f4d87b7d49bc0166851df3fb3e39b911bfbbba6366f8c98f63e47e18abb173a1129f11795454c7 SHA512 3ad7393714a43e7323ad6e81ea8f165df9253dfdfff20fc68f5091e77b288b86c3a3e11883732dc73ec5c89e500005b6451899b7e43fc4900c6bd40445739281
27 DIST install-crossover-18.1.0.bin 206784995 BLAKE2B 4e8ae8330373b505b2ed361e314bcdaf3564a0b846484d2708e64e94d3fe856c35e1d235fa474d4a079a8c0e88dade02bb1e93f0608d1ec99dca2a3a74f7865c SHA512 a679f0a801a6c2045a724ae5935745457689ae73ea4246daa1fc89a387f42c55ba0431db8fcdf48ba7253f616613adb51ca0402fe19480c0254f614fcb6884d8
28 DIST install-crossover-18.5.0.bin 224996342 BLAKE2B 300141bcf7c54ab1ce8229c6930df783454d450aee7b1be3cc3a193d1501320dee3e6fdfb3f37c56ae76e97f83f1b45838f1d5b7ed9793888a51df0203fe6dfe SHA512 ce44d7f79280adb36ecbcbdee3fa743dcca47b629fd1cb0ae2afbca56514df96e78e1103f09f5059aaf971a3a561f992158104ffa30bdd28925b14e58bd96855
29 +DIST install-crossover-19.0.1.bin 227349999 BLAKE2B 3f43c9ad1bc6e2ca77404eb69894b34fab04002c41b33551a01272201e15b5523049d7e7abe87c741f5913f18a45714ff2b83fda6c375dff68c7648d5e7c26bb SHA512 aedf2d3a071facf15a4aec9280a10c99229825fd3e5412e3949a0e1d85c235625a04d4453e7b8e182659f7500c864bab168c225f51cb0a839b08a96ef36596dd
30
31 diff --git a/app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild b/app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild
32 new file mode 100644
33 index 00000000000..9c18f4311c8
34 --- /dev/null
35 +++ b/app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild
36 @@ -0,0 +1,206 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +PYTHON_COMPAT=( python3_{6,7,8} )
42 +
43 +inherit python-single-r1 unpacker
44 +
45 +DESCRIPTION="Commercial version of app-emulation/wine with paid support"
46 +HOMEPAGE="https://www.codeweavers.com/products/"
47 +SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-${PV}.bin"
48 +
49 +LICENSE="CROSSOVER-3"
50 +SLOT="0"
51 +KEYWORDS="-* ~amd64 ~x86"
52 +IUSE="+capi +cups doc +gphoto2 +gsm gstreamer +jpeg +lcms +ldap +mp3 +nls osmesa +openal +opencl +opengl +pcap +png +scanner +ssl +v4l vulkan"
53 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
54 +
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 +QA_TEXTRELS="
76 + opt/cxoffice/lib/wine/*
77 + opt/cxoffice/lib/libwine.so*
78 +"
79 +
80 +S="${WORKDIR}"
81 +
82 +DEPEND=""
83 +BDEPEND="${PYTHON_DEPS}
84 + app-arch/unzip
85 + dev-lang/perl
86 + dev-util/bbe
87 +"
88 +
89 +RDEPEND="${DEPEND}
90 + ${PYTHON_DEPS}
91 + !prefix? ( sys-libs/glibc )
92 + !app-emulation/crossover-office-pro-bin
93 + !app-emulation/crossover-office-bin
94 + capi? ( net-libs/libcapi[abi_x86_32(-)] )
95 + cups? ( net-print/cups[abi_x86_32(-)] )
96 + gsm? ( media-sound/gsm[abi_x86_32(-)] )
97 + jpeg? ( virtual/jpeg:0[abi_x86_32(-)] )
98 + lcms? ( media-libs/lcms:2 )
99 + ldap? ( net-nds/openldap[abi_x86_32(-)] )
100 + gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] )
101 + gstreamer? (
102 + media-libs/gstreamer:1.0[abi_x86_32(-)]
103 + jpeg? ( media-plugins/gst-plugins-jpeg:1.0[abi_x86_32(-)] )
104 + media-plugins/gst-plugins-meta:1.0[abi_x86_32(-)]
105 + )
106 + mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] )
107 + nls? ( sys-devel/gettext[abi_x86_32(-)] )
108 + openal? ( media-libs/openal[abi_x86_32(-)] )
109 + opencl? ( virtual/opencl[abi_x86_32(-)] )
110 + opengl? (
111 + virtual/glu[abi_x86_32(-)]
112 + virtual/opengl[abi_x86_32(-)]
113 + )
114 + pcap? ( net-libs/libpcap[abi_x86_32(-)] )
115 + png? ( media-libs/libpng:0[abi_x86_32(-)] )
116 + scanner? ( media-gfx/sane-backends[abi_x86_32(-)] )
117 + ssl? ( dev-libs/openssl:0[abi_x86_32(-)] )
118 + v4l? ( media-libs/libv4l[abi_x86_32(-)] )
119 + vulkan? ( media-libs/vulkan-loader[abi_x86_32(-)] )
120 + dev-libs/gobject-introspection
121 + dev-util/desktop-file-utils
122 + media-libs/alsa-lib[abi_x86_32(-)]
123 + media-libs/freetype:2[abi_x86_32(-)]
124 + media-libs/mesa[abi_x86_32(-),osmesa?]
125 + sys-auth/nss-mdns[abi_x86_32(-)]
126 + sys-apps/util-linux[abi_x86_32(-)]
127 + sys-libs/ncurses-compat:5[abi_x86_32(-)]
128 + sys-libs/zlib[abi_x86_32(-)]
129 + x11-libs/libICE[abi_x86_32(-)]
130 + x11-libs/libSM[abi_x86_32(-)]
131 + x11-libs/libX11[abi_x86_32(-)]
132 + x11-libs/libXau[abi_x86_32(-)]
133 + x11-libs/libXcursor[abi_x86_32(-)]
134 + x11-libs/libXdmcp[abi_x86_32(-)]
135 + x11-libs/libXext[abi_x86_32(-)]
136 + x11-libs/libXi[abi_x86_32(-)]
137 + x11-libs/libXrandr[abi_x86_32(-)]
138 + x11-libs/libXxf86vm[abi_x86_32(-)]
139 + x11-libs/libxcb[abi_x86_32(-)]
140 + x11-libs/gdk-pixbuf:2[introspection]
141 + x11-libs/gtk+:3[introspection]
142 + x11-libs/pango[introspection]
143 +"
144 +
145 +pkg_nofetch() {
146 + einfo "Please visit ${HOMEPAGE}"
147 + einfo "and place ${A} into your DISTDIR directory"
148 +}
149 +
150 +src_unpack() {
151 + # self unpacking zip archive; unzip warns about the exe stuff
152 + unpack_zip ${A}
153 +}
154 +
155 +src_prepare() {
156 + default
157 +
158 + sed -i \
159 + -e "s:xdg_install_icons(:&\"${ED}\".:" \
160 + -e "s:\"\(.*\)/applications:\"${ED}\1/applications:" \
161 + -e "s:\"\(.*\)/desktop-directories:\"${ED}\1/desktop-directories:" \
162 + "${S}/lib/perl/CXMenuXDG.pm"
163 +
164 + # Remove unnecessary files, license.txt file kept as it's used by
165 + # multiple files (apart of the menu to show the license)
166 + rm -r guis/ || die "Could not remove files"
167 + use doc || rm -r doc/ || die "Could not remove files"
168 +}
169 +
170 +src_install() {
171 + # Install crossover symlink, bug #476314
172 + dosym ../cxoffice/bin/crossover /opt/bin/crossover
173 +
174 + # Install documentation
175 + dodoc README changelog.txt
176 + rm README changelog.txt || die "Could not remove README and changelog.txt"
177 +
178 + # Install files
179 + dodir /opt/cxoffice
180 + #cp -r ./* "${ED}/opt/cxoffice" \
181 + find . | cpio -dumpl "${ED}/opt/cxoffice" 2>/dev/null \
182 + || die "Could not install into ${ED}/opt/cxoffice"
183 +
184 + # Install configuration file
185 + insinto /opt/cxoffice/etc
186 + doins share/crossover/data/cxoffice.conf
187 + dodir /etc/env.d
188 + echo "CONFIG_PROTECT=/opt/cxoffice/etc/cxoffice.conf" >> "${ED}"/etc/env.d/30crossover-bin || die
189 +
190 + # Konqueror in its infinite wisdom decides to try opening things for
191 + # writing, which are sandbox violations. This breaks the install process if
192 + # it is installed, so we ninja edit it to false so it so doesn't run.
193 + sed -i -e 's/cxwhich konqueror/false &/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \
194 + || die "Could not apply workaround for konqueror"
195 +
196 + # Install menus
197 + # XXX: locate_gui.sh automatically detects *-application-merged directories
198 + # This means what we install will vary depending on the contents of
199 + # /etc/xdg, which is a QA violation. It is not clear how to resolve this.
200 + XDG_DATA_HOME="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \
201 + "${ED}/opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \
202 + || die "Could not install menus"
203 +
204 + # Revert ninja edit
205 + sed -i -e 's/false \(cxwhich konqueror\)/\1/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \
206 + || die "Could not apply workaround for konqueror"
207 +
208 + rm "${ED}/usr/share/applications/"*"Uninstall CrossOver Linux.desktop" \
209 + || die "Could not remove uninstall menus"
210 + sed -i \
211 + -e "s:\"${ED}\".::" \
212 + -e "s:${ED}::" \
213 + "${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" \
214 + || die "Could not fix paths in ${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm"
215 + sed -i -e "s:${ED}:/:" \
216 + "${ED}/usr/share/applications/"*"CrossOver.desktop" \
217 + || die "Could not fix paths of *.desktop files"
218 +
219 + # Workaround missing libs
220 + # https://www.codeweavers.com/support/forums/general/?t=26;mhl=198658;msg=198658
221 + if use gphoto2; then
222 + bbe -e 's/libgphoto2_port.so.10/libgphoto2_port.so.12/' "${ED}/opt/cxoffice/lib/wine/gphoto2.ds.so" >tmp || die
223 + mv tmp "${ED}/opt/cxoffice/lib/wine/gphoto2.ds.so" || die
224 + bbe -e 's/libgphoto2_port.so.10/libgphoto2_port.so.12/' "${ED}/opt/cxoffice/bin/cxdiag" >tmp || die
225 + mv tmp "${ED}/opt/cxoffice/bin/cxdiag" || die
226 + fperms a+x "/opt/cxoffice/bin/cxdiag"
227 + fi
228 + # It tries to load libpcap as packaged in Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657900
229 + if use pcap; then
230 + bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" >tmp || die
231 + bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" >tmp64 || die
232 + mv tmp "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" || die
233 + mv tmp64 "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" || die
234 + fi
235 +}
236 +
237 +pkg_postinst() {
238 + einfo "${P} is open source software with the exception of the GUI."
239 + einfo "Source code can be obtained from:"
240 + einfo
241 + einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz"
242 +}
243
244 diff --git a/app-emulation/crossover-bin/metadata.xml b/app-emulation/crossover-bin/metadata.xml
245 index fadaa124e17..7be1d14b856 100644
246 --- a/app-emulation/crossover-bin/metadata.xml
247 +++ b/app-emulation/crossover-bin/metadata.xml
248 @@ -7,6 +7,9 @@
249 </maintainer>
250 <use>
251 <flag name="capi">Enable ISDN support via CAPI</flag>
252 + <flag name="osmesa">Add support for OpenGL in bitmaps using libOSMesa</flag>
253 <flag name="opencl">Enable OpenCL support</flag>
254 + <flag name="pcap">Support packet capture software (e.g. wireshark)</flag>
255 + <flag name="vulkan">Enable Vulkan drivers</flag>
256 </use>
257 </pkgmetadata>