1 |
commit: ccd7388a8b3f7b8445ba5a646c840a184f061934 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 23:03:42 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 23:03:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccd7388a |
7 |
|
8 |
app-emulation/crossover-bin: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
.../crossover-bin/crossover-bin-20.0.2.ebuild | 216 --------------------- |
14 |
1 file changed, 216 deletions(-) |
15 |
|
16 |
diff --git a/app-emulation/crossover-bin/crossover-bin-20.0.2.ebuild b/app-emulation/crossover-bin/crossover-bin-20.0.2.ebuild |
17 |
deleted file mode 100644 |
18 |
index 7b5c4dc5c73..00000000000 |
19 |
--- a/app-emulation/crossover-bin/crossover-bin-20.0.2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,216 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
-PYTHON_COMPAT=( python3_{6..9} ) |
27 |
- |
28 |
-inherit python-single-r1 unpacker |
29 |
- |
30 |
-DESCRIPTION="Commercial version of app-emulation/wine with paid support" |
31 |
-HOMEPAGE="https://www.codeweavers.com/products/" |
32 |
-SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-${PV}.bin" |
33 |
- |
34 |
-LICENSE="CROSSOVER-3" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="-* ~amd64 ~x86" |
37 |
-IUSE="+capi +cups doc +gphoto2 +gsm +gstreamer +jpeg +lcms ldap +mp3 +nls osmesa +openal +opencl +opengl +pcap +png +scanner +ssl +v4l +vulkan" |
38 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
39 |
- |
40 |
-RESTRICT="bindist test" |
41 |
- |
42 |
-QA_FLAGS_IGNORED="opt/cxoffice/.*" |
43 |
-QA_PRESTRIPPED=" |
44 |
- opt/cxoffice/lib/.* |
45 |
- opt/cxoffice/lib64/.* |
46 |
- opt/cxoffice/bin/cabextract |
47 |
- opt/cxoffice/bin/cxburner |
48 |
- opt/cxoffice/bin/cxntlm_auth |
49 |
- opt/cxoffice/bin/wineserver |
50 |
- opt/cxoffice/bin/wineserver32 |
51 |
- opt/cxoffice/bin/wineserver64 |
52 |
- opt/cxoffice/bin/wine64-preloader |
53 |
- opt/cxoffice/bin/unrar |
54 |
- opt/cxoffice/bin/wine-preloader |
55 |
- opt/cxoffice/bin/cxdiag |
56 |
- opt/cxoffice/bin/cxdiag64 |
57 |
- opt/cxoffice/bin/cxgettext |
58 |
- opt/cxoffice/bin/wineloader |
59 |
- opt/cxoffice/bin/wineloader64 |
60 |
-" |
61 |
-QA_TEXTRELS=" |
62 |
- opt/cxoffice/bin/wineserver32 |
63 |
- opt/cxoffice/lib/wine/* |
64 |
- opt/cxoffice/lib/libwine.so* |
65 |
-" |
66 |
- |
67 |
-S="${WORKDIR}" |
68 |
- |
69 |
-DEPEND="" |
70 |
-BDEPEND="${PYTHON_DEPS} |
71 |
- app-arch/unzip |
72 |
- dev-lang/perl |
73 |
- dev-util/bbe |
74 |
-" |
75 |
- |
76 |
-RDEPEND="${DEPEND} |
77 |
- ${PYTHON_DEPS} |
78 |
- $(python_gen_cond_dep ' |
79 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
80 |
- ') |
81 |
- !prefix? ( sys-libs/glibc ) |
82 |
- !app-emulation/crossover-office-pro-bin |
83 |
- !app-emulation/crossover-office-bin |
84 |
- capi? ( net-libs/libcapi[abi_x86_32(-)] ) |
85 |
- cups? ( net-print/cups[abi_x86_32(-)] ) |
86 |
- gsm? ( media-sound/gsm[abi_x86_32(-)] ) |
87 |
- jpeg? ( virtual/jpeg:0[abi_x86_32(-)] ) |
88 |
- lcms? ( media-libs/lcms:2 ) |
89 |
- ldap? ( net-nds/openldap[abi_x86_32(-)] ) |
90 |
- gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] ) |
91 |
- gstreamer? ( |
92 |
- media-libs/gstreamer:1.0[abi_x86_32(-)] |
93 |
- jpeg? ( media-plugins/gst-plugins-jpeg:1.0[abi_x86_32(-)] ) |
94 |
- media-plugins/gst-plugins-meta:1.0[abi_x86_32(-)] |
95 |
- ) |
96 |
- mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] ) |
97 |
- nls? ( sys-devel/gettext[abi_x86_32(-)] ) |
98 |
- openal? ( media-libs/openal[abi_x86_32(-)] ) |
99 |
- opencl? ( virtual/opencl[abi_x86_32(-)] ) |
100 |
- opengl? ( |
101 |
- virtual/glu[abi_x86_32(-)] |
102 |
- virtual/opengl[abi_x86_32(-)] |
103 |
- ) |
104 |
- pcap? ( net-libs/libpcap[abi_x86_32(-)] ) |
105 |
- png? ( media-libs/libpng:0[abi_x86_32(-)] ) |
106 |
- scanner? ( media-gfx/sane-backends[abi_x86_32(-)] ) |
107 |
- ssl? ( net-libs/gnutls:0/30[abi_x86_32(-)] ) |
108 |
- v4l? ( media-libs/libv4l[abi_x86_32(-)] ) |
109 |
- vulkan? ( media-libs/vulkan-loader[abi_x86_32(-)] ) |
110 |
- dev-libs/gobject-introspection |
111 |
- dev-util/desktop-file-utils |
112 |
- media-libs/alsa-lib[abi_x86_32(-)] |
113 |
- media-libs/freetype:2[abi_x86_32(-)] |
114 |
- media-libs/mesa[abi_x86_32(-),osmesa?] |
115 |
- media-libs/tiff:0[abi_x86_32(-)] |
116 |
- sys-auth/nss-mdns[abi_x86_32(-)] |
117 |
- sys-apps/util-linux[abi_x86_32(-)] |
118 |
- sys-libs/libunwind[abi_x86_32(-)] |
119 |
- sys-libs/ncurses-compat:5[abi_x86_32(-)] |
120 |
- sys-libs/zlib[abi_x86_32(-)] |
121 |
- x11-libs/libICE[abi_x86_32(-)] |
122 |
- x11-libs/libSM[abi_x86_32(-)] |
123 |
- x11-libs/libX11[abi_x86_32(-)] |
124 |
- x11-libs/libXau[abi_x86_32(-)] |
125 |
- x11-libs/libXcursor[abi_x86_32(-)] |
126 |
- x11-libs/libXdmcp[abi_x86_32(-)] |
127 |
- x11-libs/libXext[abi_x86_32(-)] |
128 |
- x11-libs/libXi[abi_x86_32(-)] |
129 |
- x11-libs/libXrandr[abi_x86_32(-)] |
130 |
- x11-libs/libXxf86vm[abi_x86_32(-)] |
131 |
- x11-libs/libxcb[abi_x86_32(-)] |
132 |
- x11-libs/gdk-pixbuf:2[introspection] |
133 |
- x11-libs/gtk+:3[introspection] |
134 |
- x11-libs/pango[introspection] |
135 |
-" |
136 |
- |
137 |
-pkg_nofetch() { |
138 |
- einfo "Please visit ${HOMEPAGE}" |
139 |
- einfo "and place ${A} into your DISTDIR directory" |
140 |
-} |
141 |
- |
142 |
-src_unpack() { |
143 |
- # self unpacking zip archive; unzip warns about the exe stuff |
144 |
- unpack_zip ${A} |
145 |
-} |
146 |
- |
147 |
-src_prepare() { |
148 |
- default |
149 |
- |
150 |
- sed -i \ |
151 |
- -e "s:xdg_install_icons(:&\"${ED}\".:" \ |
152 |
- -e "s:\"\(.*\)/applications:\"${ED}\1/applications:" \ |
153 |
- -e "s:\"\(.*\)/desktop-directories:\"${ED}\1/desktop-directories:" \ |
154 |
- "${S}/lib/perl/CXMenuXDG.pm" |
155 |
- |
156 |
- # Remove unnecessary files, license.txt file kept as it's used by |
157 |
- # multiple files (apart of the menu to show the license) |
158 |
- rm -r guis/ || die "Could not remove files" |
159 |
- use doc || rm -r doc/ || die "Could not remove files" |
160 |
-} |
161 |
- |
162 |
-src_install() { |
163 |
- # Install crossover symlink, bug #476314 |
164 |
- dosym ../cxoffice/bin/crossover /opt/bin/crossover |
165 |
- |
166 |
- # Install documentation |
167 |
- dodoc README changelog.txt |
168 |
- rm README changelog.txt || die "Could not remove README and changelog.txt" |
169 |
- |
170 |
- # Install files |
171 |
- dodir /opt/cxoffice |
172 |
- #cp -r ./* "${ED}/opt/cxoffice" \ |
173 |
- find . | cpio -dumpl "${ED}/opt/cxoffice" 2>/dev/null \ |
174 |
- || die "Could not install into ${ED}/opt/cxoffice" |
175 |
- |
176 |
- # Disable auto-update |
177 |
- sed -i -e 's/;;\"AutoUpdate\" = \"1\"/\"AutoUpdate\" = \"0\"/g' share/crossover/data/cxoffice.conf || die |
178 |
- # Install configuration file |
179 |
- insinto /opt/cxoffice/etc |
180 |
- doins share/crossover/data/cxoffice.conf |
181 |
- dodir /etc/env.d |
182 |
- echo "CONFIG_PROTECT=/opt/cxoffice/etc/cxoffice.conf" >> "${ED}"/etc/env.d/30crossover-bin || die |
183 |
- |
184 |
- # Konqueror in its infinite wisdom decides to try opening things for |
185 |
- # writing, which are sandbox violations. This breaks the install process if |
186 |
- # it is installed, so we ninja edit it to false so it so doesn't run. |
187 |
- sed -i -e 's/cxwhich konqueror/false &/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
188 |
- || die "Could not apply workaround for konqueror" |
189 |
- |
190 |
- # Install menus |
191 |
- # XXX: locate_gui.sh automatically detects *-application-merged directories |
192 |
- # This means what we install will vary depending on the contents of |
193 |
- # /etc/xdg, which is a QA violation. It is not clear how to resolve this. |
194 |
- XDG_DATA_HOME="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \ |
195 |
- "${ED}/opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \ |
196 |
- || die "Could not install menus" |
197 |
- |
198 |
- # Revert ninja edit |
199 |
- sed -i -e 's/false \(cxwhich konqueror\)/\1/' "${ED}/opt/cxoffice/bin/locate_gui.sh" \ |
200 |
- || die "Could not apply workaround for konqueror" |
201 |
- |
202 |
- rm "${ED}/usr/share/applications/"*"Uninstall CrossOver Linux.desktop" \ |
203 |
- || die "Could not remove uninstall menus" |
204 |
- sed -i \ |
205 |
- -e "s:\"${ED}\".::" \ |
206 |
- -e "s:${ED}::" \ |
207 |
- "${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" \ |
208 |
- || die "Could not fix paths in ${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm" |
209 |
- sed -i -e "s:${ED}:/:" \ |
210 |
- "${ED}/usr/share/applications/"*"CrossOver.desktop" \ |
211 |
- || die "Could not fix paths of *.desktop files" |
212 |
- |
213 |
- # Workaround missing libs |
214 |
- # https://www.codeweavers.com/support/forums/general/?t=26;mhl=198658;msg=198658 |
215 |
- if use gphoto2; then |
216 |
- bbe -e 's/libgphoto2_port.so.10/libgphoto2_port.so.12/' "${ED}/opt/cxoffice/lib/wine/gphoto2.ds.so" >tmp || die |
217 |
- mv tmp "${ED}/opt/cxoffice/lib/wine/gphoto2.ds.so" || die |
218 |
- bbe -e 's/libgphoto2_port.so.10/libgphoto2_port.so.12/' "${ED}/opt/cxoffice/bin/cxdiag" >tmp || die |
219 |
- mv tmp "${ED}/opt/cxoffice/bin/cxdiag" || die |
220 |
- fperms a+x "/opt/cxoffice/bin/cxdiag" |
221 |
- fi |
222 |
- # It tries to load libpcap as packaged in Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657900 |
223 |
- # https://bugs.gentoo.org/721108 |
224 |
- if use pcap; then |
225 |
- bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" >tmp || die |
226 |
- bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" >tmp64 || die |
227 |
- mv tmp "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" || die |
228 |
- mv tmp64 "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" || die |
229 |
- fi |
230 |
-} |
231 |
- |
232 |
-pkg_postinst() { |
233 |
- einfo "${P} is open source software with the exception of the GUI." |
234 |
- einfo "Source code can be obtained from:" |
235 |
- einfo |
236 |
- einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz" |
237 |
-} |