1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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}-${PR/r/}_amd64.deb
14 ${APPSTORE_URI}/d/${PN}/${PN}-i386_${PV}-${PR/r/}_i386.deb
15 ${APPSTORE_URI}/d/${PN}/${PN}-amd64_${PV}-${PR/r/}_amd64.deb
16 ${COMMUNITY_URI}/o/openldap/libldap-2.4-2_2.4.47+dfsg.4-1+eagle_i386.deb
17 ${COMMUNITY_URI}/o/openldap/libldap-2.4-2_2.4.47+dfsg.4-1+eagle_amd64.deb
18 ${COMMUNITY_URI}/c/cyrus-sasl2/libsasl2-2_2.1.27.1-1+dde_i386.deb
19 ${COMMUNITY_URI}/c/cyrus-sasl2/libsasl2-2_2.1.27.1-1+dde_amd64.deb
20 ${COMMUNITY_URI}/libp/libpcap/libpcap0.8_1.8.1.1-6+dde_i386.deb
21 ${COMMUNITY_URI}/libp/libpcap/libpcap0.8_1.8.1.1-6+dde_amd64.deb
32 >=media-libs/alsa-lib-1.0.16[abi_x86_32(-)]
33 >=media-libs/libgphoto2-2.5.10[abi_x86_32(-)]
34 media-libs/gst-plugins-base[abi_x86_32(-)]
35 media-libs/lcms:2[abi_x86_32(-)]
36 >=net-nds/openldap-2.4.7[abi_x86_32(-)]
37 >=media-sound/mpg123-1.13.7[abi_x86_32(-)]
38 >=media-libs/openal-1.14[abi_x86_32(-)]
39 >=net-libs/libpcap-0.9.8[abi_x86_32(-)]
40 media-libs/libcanberra[pulseaudio,abi_x86_32(-)]
41 virtual/libudev[abi_x86_32(-)]
42 virtual/libusb:1[abi_x86_32(-)]
43 >=app-emulation/vkd3d-1.0[abi_x86_32(-)]
44 x11-libs/libX11[abi_x86_32(-)]
45 x11-libs/libXext[abi_x86_32(-)]
46 >=dev-libs/libxml2-2.9.0[abi_x86_32(-)]
47 || ( dev-libs/ocl-icd[abi_x86_32(-)] dev-libs/opencl-icd-loader[abi_x86_32(-)] )
48 app-emulation/deepin-udis86
49 >=sys-libs/zlib-1.1.4[abi_x86_32(-)]
50 || ( sys-libs/ncurses[abi_x86_32(-)] sys-libs/ncurses-compat:5[abi_x86_32(-)] )
51 media-libs/fontconfig[abi_x86_32(-)]
52 media-libs/freetype:2[abi_x86_32(-)]
53 sys-devel/gettext[abi_x86_32(-)]
54 x11-libs/libXcursor[abi_x86_32(-)]
55 media-libs/mesa[osmesa,abi_x86_32(-)]
56 media-libs/glu[abi_x86_32(-)]
57 media-libs/libjpeg-turbo[abi_x86_32(-)]
58 x11-libs/libXrandr[abi_x86_32(-)]
59 x11-libs/libXi[abi_x86_32(-)]
62 BDEPEND
="dev-util/patchelf"
71 # Fix files installing to one or more unexpected paths
72 rm -rf "${S}"/usr
/share || die
73 # Install missing lib/lib64
74 mv "${S}"/usr/lib/i386-linux-gnu/* "${S}"/opt/"${PN}"/lib
/ || die
75 mv "${S}"/usr/lib/x86_64-linux-gnu/* "${S}"/opt/"${PN}"/lib64
/ || die
77 # Set RPATH for libs handling
78 pushd "${S}"/opt
/"${PN}"/lib || die
81 # Use \x7fELF header to separate ELF executables and libraries
82 [[ -f ${x} && $
(od -t x1
-N 4 "${x}") == *"7f 45 4c 46"* ]] ||
continue
83 local RPATH_ROOT
="${EPREFIX}"/opt
/"${PN}"/lib
84 local RPATH_S
="${RPATH_ROOT}/"
85 patchelf
--set-rpath "${RPATH_S}" "${x}" || \
86 die
"patchelf failed on ${x}"
90 pushd "${S}"/opt
/"${PN}"/lib64 || die
93 # Use \x7fELF header to separate ELF executables and libraries
94 [[ -f ${x} && $
(od -t x1
-N 4 "${x}") == *"7f 45 4c 46"* ]] ||
continue
95 local RPATH_ROOT
="${EPREFIX}"/opt
/"${PN}"/lib64
96 local RPATH_S
="${RPATH_ROOT}/"
97 patchelf
--set-rpath "${RPATH_S}" "${x}" || \
98 die
"patchelf failed on ${x}"
105 fperms
755 -R /opt
/"${PN}"/
106 fperms
755 -R /usr
/bin
/
107 find "${ED}"/opt/${PN}/lib* -name '*.a' -exec chmod 644 '{}' + || die