app-shells/zfe: add nvchecker
[gentoo-zh.git] / app-emulation / deepin-wine6-stable / deepin-wine6-stable-6.0.0.52.ebuild
blobcb49bd00359342679045843ea2e7aae17ad3dea2
1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker
8 DESCRIPTION="Deepin wine6 stable"
9 HOMEPAGE="https://www.deepin.org"
11 APPSTORE_URI="https://com-store-packages.uniontech.com/appstore/pool/appstore"
12 COMMUNITY_URI="https://community-packages.deepin.com/deepin/pool/main"
13 SRC_URI="${APPSTORE_URI}/d/${PN}/${PN}_${PV}-1_amd64.deb
14 ${COMMUNITY_URI}/o/openldap/libldap-2.4-2_2.4.47+dfsg.4-1+eagle_i386.deb
15 ${COMMUNITY_URI}/o/openldap/libldap-2.4-2_2.4.47+dfsg.4-1+eagle_amd64.deb
16 ${COMMUNITY_URI}/c/cyrus-sasl2/libsasl2-2_2.1.27.1-1+dde_i386.deb
17 ${COMMUNITY_URI}/c/cyrus-sasl2/libsasl2-2_2.1.27.1-1+dde_amd64.deb
18 ${COMMUNITY_URI}/libp/libpcap/libpcap0.8_1.8.1.1-6+dde_i386.deb
19 ${COMMUNITY_URI}/libp/libpcap/libpcap0.8_1.8.1.1-6+dde_amd64.deb
22 LICENSE="LGPL-2.1"
23 SLOT="0"
24 KEYWORDS="~amd64"
25 RESTRICT="strip"
27 RDEPEND="${DEPEND}
28 >=media-libs/alsa-lib-1.0.16[abi_x86_32(-)]
29 >=media-libs/libgphoto2-2.5.10[abi_x86_32(-)]
30 media-libs/gst-plugins-base[abi_x86_32(-)]
31 media-libs/lcms:2[abi_x86_32(-)]
32 >=net-nds/openldap-2.4.7[abi_x86_32(-)]
33 >=media-sound/mpg123-1.13.7[abi_x86_32(-)]
34 >=media-libs/openal-1.14[abi_x86_32(-)]
35 >=net-libs/libpcap-0.9.8[abi_x86_32(-)]
36 media-libs/libcanberra[pulseaudio,abi_x86_32(-)]
37 virtual/libudev[abi_x86_32(-)]
38 virtual/libusb:1[abi_x86_32(-)]
39 >=app-emulation/vkd3d-1.0[abi_x86_32(-)]
40 x11-libs/libX11[abi_x86_32(-)]
41 x11-libs/libXext[abi_x86_32(-)]
42 >=dev-libs/libxml2-2.9.0[abi_x86_32(-)]
43 dev-libs/opencl-icd-loader[abi_x86_32(-)]
44 app-emulation/deepin-udis86
45 >=sys-libs/zlib-1.1.4[abi_x86_32(-)]
46 || ( sys-libs/ncurses[abi_x86_32(-)] sys-libs/ncurses-compat:5[abi_x86_32(-)] )
47 media-libs/fontconfig[abi_x86_32(-)]
48 media-libs/freetype:2[abi_x86_32(-)]
49 sys-devel/gettext[abi_x86_32(-)]
50 x11-libs/libXcursor[abi_x86_32(-)]
51 media-libs/mesa[osmesa,abi_x86_32(-)]
52 media-libs/glu[abi_x86_32(-)]
53 media-libs/libjpeg-turbo[abi_x86_32(-)]
54 x11-libs/libXrandr[abi_x86_32(-)]
55 x11-libs/libXi[abi_x86_32(-)]
58 BDEPEND="dev-util/patchelf"
60 S=${WORKDIR}
61 QA_FLAGS_IGNORED=".*"
62 QA_PREBUILT="*"
63 QA_SONAME="*"
64 QA_TEXTRELS="*"
66 src_install() {
67 # Fix files installing to one or more unexpected paths
68 rm -rf "${S}"/usr/share || die
69 # Install missing lib/lib64
70 mv "${S}"/usr/lib/i386-linux-gnu/* "${S}"/opt/"${PN}"/lib/ || die
71 mv "${S}"/usr/lib/x86_64-linux-gnu/* "${S}"/opt/"${PN}"/lib64/ || die
73 # Set RPATH for libs handling
74 pushd "${S}"/opt/"${PN}"/lib || die
75 local x
76 for x in $(find) ; do
77 # Use \x7fELF header to separate ELF executables and libraries
78 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
79 local RPATH_ROOT="${EPREFIX}"/opt/"${PN}"/lib
80 local RPATH_S="${RPATH_ROOT}/"
81 patchelf --set-rpath "${RPATH_S}" "${x}" || \
82 die "patchelf failed on ${x}"
83 done
84 popd || die
86 pushd "${S}"/opt/"${PN}"/lib64 || die
87 local x
88 for x in $(find) ; do
89 # Use \x7fELF header to separate ELF executables and libraries
90 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
91 local RPATH_ROOT="${EPREFIX}"/opt/"${PN}"/lib64
92 local RPATH_S="${RPATH_ROOT}/"
93 patchelf --set-rpath "${RPATH_S}" "${x}" || \
94 die "patchelf failed on ${x}"
95 done
96 popd || die
98 insinto /
99 doins -r usr opt
101 fperms 755 -R /opt/"${PN}"/
102 fperms 755 -R /usr/bin/
103 find "${ED}"/opt/${PN}/lib* -name '*.a' -exec chmod 644 '{}' + || die