summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2020-05-04 23:39:07 -0400
committerRichard Yao <ryao@gentoo.org>2020-05-04 23:40:16 -0400
commitd0bd604f6b4e61fbb8459ca5217be44ad427b8f7 (patch)
tree891297ae1b99b505a42d673fa13e6eabbca628bb /app-emulation/crossover-bin
parentapp-misc/gtypist: do a full eautoreconf (diff)
downloadgentoo-d0bd604f6b4e61fbb8459ca5217be44ad427b8f7.tar.gz
gentoo-d0bd604f6b4e61fbb8459ca5217be44ad427b8f7.tar.bz2
gentoo-d0bd604f6b4e61fbb8459ca5217be44ad427b8f7.zip
app-emulation/crossover-bin: Update dependencies
* Fixed missing libtiff dependency. * Fixed incorrect dependency on OpenSSL. Crossover switched to gnutls. * Fixed incorrect handling of broken pcap dependency. * Added warning for systems without OpenCL properly configured. * USE=vulkan is now on by default. * A few fixes were backported to the earlier 18.5.0-r1 package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'app-emulation/crossover-bin')
-rw-r--r--app-emulation/crossover-bin/crossover-bin-18.5.0-r1.ebuild9
-rw-r--r--app-emulation/crossover-bin/crossover-bin-19.0.1-r1.ebuild (renamed from app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild)35
2 files changed, 35 insertions, 9 deletions
diff --git a/app-emulation/crossover-bin/crossover-bin-18.5.0-r1.ebuild b/app-emulation/crossover-bin/crossover-bin-18.5.0-r1.ebuild
index e103a45516a4..ccf4360c42cf 100644
--- a/app-emulation/crossover-bin/crossover-bin-18.5.0-r1.ebuild
+++ b/app-emulation/crossover-bin/crossover-bin-18.5.0-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crosso
LICENSE="CROSSOVER-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
-IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opencl +opengl +png +scanner +ssl +v4l"
+IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms ldap +mp3 +nls +openal +opencl +opengl +pcap +png scanner +ssl +v4l +vulkan"
REQUIRED_USE=${PYTHON_REQUIRED_USE}
RESTRICT="bindist test"
@@ -52,7 +52,6 @@ RDEPEND="${DEPEND}
>=dev-python/pygtk-2.10:2[${PYTHON_MULTI_USEDEP}]
dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
')
- dev-util/desktop-file-utils
!app-emulation/crossover-office-pro-bin
!app-emulation/crossover-office-bin
capi? ( net-libs/libcapi[abi_x86_32(-)] )
@@ -70,13 +69,17 @@ RDEPEND="${DEPEND}
virtual/glu[abi_x86_32(-)]
virtual/opengl[abi_x86_32(-)]
)
+ pcap? ( net-libs/libpcap[abi_x86_32(-)] )
png? ( media-libs/libpng:0[abi_x86_32(-)] )
scanner? ( media-gfx/sane-backends[abi_x86_32(-)] )
- ssl? ( dev-libs/openssl:0[abi_x86_32(-)] )
+ ssl? ( net-libs/gnutls:0/30[abi_x86_32(-)] )
v4l? ( media-libs/libv4l[abi_x86_32(-)] )
+ vulkan? ( media-libs/vulkan-loader[abi_x86_32(-)] )
+ dev-util/desktop-file-utils
media-libs/alsa-lib[abi_x86_32(-)]
media-libs/freetype:2[abi_x86_32(-)]
media-libs/mesa[abi_x86_32(-)]
+ media-libs/tiff:0[abi_x86_32(-)]
sys-auth/nss-mdns[abi_x86_32(-)]
sys-apps/util-linux[abi_x86_32(-)]
sys-libs/ncurses-compat:5[abi_x86_32(-)]
diff --git a/app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild b/app-emulation/crossover-bin/crossover-bin-19.0.1-r1.ebuild
index 9c18f4311c80..e3e7f205d8a6 100644
--- a/app-emulation/crossover-bin/crossover-bin-19.0.1.ebuild
+++ b/app-emulation/crossover-bin/crossover-bin-19.0.1-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crosso
LICENSE="CROSSOVER-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
-IUSE="+capi +cups doc +gphoto2 +gsm gstreamer +jpeg +lcms +ldap +mp3 +nls osmesa +openal +opencl +opengl +pcap +png +scanner +ssl +v4l vulkan"
+IUSE="+capi +cups doc +gphoto2 +gsm +gstreamer +jpeg +lcms ldap +mp3 +nls osmesa +openal +opencl +opengl +pcap +png +scanner +ssl +v4l +vulkan"
REQUIRED_USE=${PYTHON_REQUIRED_USE}
RESTRICT="bindist test"
@@ -78,7 +78,7 @@ RDEPEND="${DEPEND}
pcap? ( net-libs/libpcap[abi_x86_32(-)] )
png? ( media-libs/libpng:0[abi_x86_32(-)] )
scanner? ( media-gfx/sane-backends[abi_x86_32(-)] )
- ssl? ( dev-libs/openssl:0[abi_x86_32(-)] )
+ ssl? ( net-libs/gnutls:0/30[abi_x86_32(-)] )
v4l? ( media-libs/libv4l[abi_x86_32(-)] )
vulkan? ( media-libs/vulkan-loader[abi_x86_32(-)] )
dev-libs/gobject-introspection
@@ -86,6 +86,7 @@ RDEPEND="${DEPEND}
media-libs/alsa-lib[abi_x86_32(-)]
media-libs/freetype:2[abi_x86_32(-)]
media-libs/mesa[abi_x86_32(-),osmesa?]
+ media-libs/tiff:0[abi_x86_32(-)]
sys-auth/nss-mdns[abi_x86_32(-)]
sys-apps/util-linux[abi_x86_32(-)]
sys-libs/ncurses-compat:5[abi_x86_32(-)]
@@ -191,10 +192,8 @@ src_install() {
fi
# It tries to load libpcap as packaged in Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657900
if use pcap; then
- bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" >tmp || die
- bbe -e 's/libpcap.so.0.8/libpcap.so.1.9.1/' "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" >tmp64 || die
- mv tmp "${ED}/opt/cxoffice/lib/wine/wpcap.dll.so" || die
- mv tmp64 "${ED}/opt/cxoffice/lib64/wine/wpcap.dll.so" || die
+ dosym "../../../usr/lib64/libpcap.so.1.9.1" "/opt/cxoffice/lib64/libpcap.so.0.8"
+ dosym "../../../usr/lib32/libpcap.so.1.9.1" "/opt/cxoffice/lib/libpcap.so.0.8"
fi
}
@@ -203,4 +202,28 @@ pkg_postinst() {
einfo "Source code can be obtained from:"
einfo
einfo "https://media.codeweavers.com/pub/crossover/source/crossover-sources-${PV}.tar.gz"
+
+ # The check done by /opt/cxoffice/bin/cxdiag is far superior to this.
+ # However, we do this check because I noticed that we could end up with a
+ # system that doesn't have a working OpenCL according to cxdiag, yet the
+ # dependencies have been installed. This is a defensive measure to reduce
+ # user frustration. A more robust check might be worthwhile.
+ if use opencl; then
+ local b32=false
+ local b64=false
+ if [[ ! -e "${EROOT}/usr/lib32/libOpenCL.so.1" ]]; then
+ b32=true
+ ewarn "32-bit libOpenCL.so.1 missing."
+ fi
+
+ if use amd64 && [[ ! -e "${EROOT}/usr/lib64/libOpenCL.so.1" ]]; then
+ b64=true
+ ewarn "64-bit libOpenCL.so.1 missing."
+ fi
+
+ if $b32 || $b64; then
+ ewarn
+ ewarn "Set OpenCL via eselect opencl to avoid problems"
+ fi
+ fi
}