]> Arthur Taft Gitweb - custom-tools.git/blob - media-sound/cider/cider-3.0.0.ebuild
update copyright to 2025
[custom-tools.git] / media-sound / cider / cider-3.0.0.ebuild
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=8
5
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 )
10
11 inherit chromium-2 desktop multilib-build pax-utils unpacker xdg
12
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"
16 S="${WORKDIR}"
17
18 LICENSE="all-rights-reserved"
19 SLOT="0"
20 KEYWORDS="-* ~amd64"
21 IUSE="+abi_x86_64 suid"
22 RESTRICT="bindist fetch mirror splitdebug"
23
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}]"
51
52 pkg_pretend() {
53         use suid || chromium_suid_sandbox_check_kernel_config
54 }
55
56 pkg_nofetch() {
57         einfo "Please download cider-linux-debian_x64.deb from"
58         einfo "${HOMEPAGE}"
59         einfo "and place it into your DISTDIR directory"
60 }
61
62 #src_prepare() {
63 #       default
64 #       pushd lib/cider/locales || die "pushd failed"
65 #       chromium_remove_language_paks
66 #       popd || die "popd failed"
67 #
68 #       rm lib/cider/LICENSES.chromium.html \
69 #               || die "rm licenses failed"
70 #
71 #       if ! use suid ; then
72 #               rm lib/cider/chrome-sandbox || die "rm failed"
73 #       fi
74 #}
75
76 src_install() {
77         doicon usr/lib/cider/resources/public/icon.png
78         dosym usr/lib/cider/resources/public/icon.png \
79                 /usr/share/pixmaps/cider.png
80
81         domenu usr/share/applications/cider.desktop
82
83         insinto /opt/Cider
84         doins -r usr/.
85         fperms -R +x /opt/Cider/bin/cider /opt/Cider/lib/cider/chrome_crashpad_handler \
86                 /opt/Cider/lib/cider/lib{EGL,GLESv2,ffmpeg,vk_swiftshader}.so \
87                 /opt/Cider/lib/cider/libvulkan.so.1
88         use suid && fperms u+s,+x /opt/Cider/lib/cider/chrome-sandbox
89
90         dosym ../Cider/bin/cider usr/bin/cider
91
92         pax-mark -m "${ED}"/opt/Cider/cider
93 }