blob: 68c04514e2ebbfb8826c9fcb04b3df0e4bfc4cc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 optfeature wrapper
DESCRIPTION="Feature rich Discord TUI client"
HOMEPAGE="https://github.com/sparklost/endcord"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/sparklost/endcord.git"
else
SRC_URI="https://github.com/sparklost/endcord/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT=0
BDEPEND="
>=dev-python/cython-3.2.6[${PYTHON_USEDEP}]
"
RDEPEND="
>=dev-python/numpy-2.5.0[${PYTHON_USEDEP}]
|| (
>=dev-python/orjson-3.11.9[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
)
>=dev-python/pycryptodome-3.23.0[${PYTHON_USEDEP}]
>=dev-python/pysocks-1.7.1[${PYTHON_USEDEP}]
>=dev-python/soundcard-0.4.6[${PYTHON_USEDEP}]
>=dev-python/soundfile-0.14.0[${PYTHON_USEDEP}]
>=dev-python/websocket-client-1.9.0[${PYTHON_USEDEP}]
"
PATCHES=( "${FILESDIR}/${PN}-1.5.0-flags.patch" )
DOCS=( README.md docs/ )
python_install() {
distutils-r1_python_install
python_domodule ${PN}
exeinto /usr/libexec/${PN}
doexe main.py
make_wrapper ${PN} \
"${EPYTHON} ${EPREFIX}/usr/libexec/${PN}/main.py"
}
pkg_postinst() {
optfeature "clipboard support on X11" x11-misc/xclip
optfeature "clipboard support on Wayland" gui-apps/wl-clipboard
optfeature "file dialog when uploading" \
app-misc/yazi \
gnome-extra/zenity \
kde-apps/kdialog
optfeature "spellchecking (requires aspell dictionary such as aspell-en)" \
app-text/aspell
optfeature "install and update extensions from other sources" \
dev-vcs/git
optfeature "YouTube support" net-misc/yt-dlp
optfeature "play YouTube videos in native player (non-ASCII support)" media-video/mpv
optfeature "store token in system keyring" app-crypt/libsecret virtual/secret-service
optfeature "round notification images" media-gfx/imagemagick
optfeature "tray support under wayland" dev-libs/libayatana-appindicator
}
|