1 # Copyright 1999-2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB en-US es-419 es et fa fil fi
7 fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro
8 ru sk sl sr sv sw ta te th tr uk ur vi zh-CN zh-TW"
9 MULTILIB_COMPAT=( abi_x86_64 )
11 inherit chromium-2 desktop multilib-build pax-utils unpacker xdg
13 DESCRIPTION="A new cross-platform Apple Music experience based on Electron"
14 HOMEPAGE="https://cider.sh"
15 SRC_URI="cider-v3.0.0-linux-x64.pkg.tar.zst"
18 LICENSE="all-rights-reserved"
21 IUSE="+abi_x86_64 suid"
22 RESTRICT="bindist fetch mirror splitdebug"
24 RDEPEND="app-accessibility/at-spi2-core:2[${MULTILIB_USEDEP}]
25 dev-libs/expat:0[${MULTILIB_USEDEP}]
26 dev-libs/glib:2[${MULTILIB_USEDEP}]
27 dev-libs/libffi:0[${MULTILIB_USEDEP}]
28 dev-libs/nspr:0[${MULTILIB_USEDEP}]
29 dev-libs/nss:0[${MULTILIB_USEDEP}]
30 dev-libs/libpcre2:0[${MULTILIB_USEDEP}]
31 media-libs/alsa-lib[${MULTILIB_USEDEP}]
32 media-libs/mesa:0[vulkan,${MULTILIB_USEDEP}]
33 net-print/cups:0[${MULTILIB_USEDEP}]
34 sys-apps/dbus:0[${MULTILIB_USEDEP}]
35 sys-apps/util-linux[${MULTILIB_USEDEP}]
36 sys-libs/zlib:0[${MULTILIB_USEDEP}]
37 x11-libs/cairo:0[${MULTILIB_USEDEP}]
38 x11-libs/gtk+:3[${MULTILIB_USEDEP}]
39 x11-libs/libdrm[${MULTILIB_USEDEP}]
40 x11-libs/libX11[${MULTILIB_USEDEP}]
41 x11-libs/libXau[${MULTILIB_USEDEP}]
42 x11-libs/libxcb:=[${MULTILIB_USEDEP}]
43 x11-libs/libXcomposite[${MULTILIB_USEDEP}]
44 x11-libs/libXdamage[${MULTILIB_USEDEP}]
45 x11-libs/libXdmcp[${MULTILIB_USEDEP}]
46 x11-libs/libXext[${MULTILIB_USEDEP}]
47 x11-libs/libXfixes[${MULTILIB_USEDEP}]
48 x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
49 x11-libs/libXrandr[${MULTILIB_USEDEP}]
50 x11-libs/pango[${MULTILIB_USEDEP}]"
53 use suid || chromium_suid_sandbox_check_kernel_config
57 einfo "Please download cider-linux-debian_x64.deb from"
59 einfo "and place it into your DISTDIR directory"
65 fperms -R +x /opt/Cider/bin/cider /opt/Cider/lib/cider/chrome_crashpad_handler \
66 /opt/Cider/lib/cider/lib{EGL,GLESv2,ffmpeg,vk_swiftshader}.so \
67 /opt/Cider/lib/cider/libvulkan.so.1
68 use suid && fperms u+s,+x /opt/Cider/lib/cider/chrome-sandbox
70 domenu /opt/Cider/share/applications/cider.desktop
71 dosym /opt/Cider/bin/cider /usr/bin/cider
72 dosym /opt/Cider/lib/cider/resources/public/icon.png /usr/share/pixmaps/cider.png
73 newicon -s 256 /opt/Cider/lib/cider/resources/public/icon.png cider.png
75 pax-mark -m "${ED}"/opt/Cider/cider