blob: 5f273d5825c349e6fe1c64dfd3a97b5d0e16a2b7 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 optfeature virtualx xdg-utils
DESCRIPTION="A subtitle editor for text-based subtitles"
HOMEPAGE="https://otsaloma.io/gaupol/"
SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
RDEPEND="
app-text/iso-codes
dev-python/charset-normalizer[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
x11-libs/gtk+:3[introspection]
"
BDEPEND="
sys-devel/gettext
test? (
app-dicts/myspell-en
|| (
app-text/enchant[hunspell]
>=app-text/enchant-2.2.8[nuspell]
)
app-text/gspell[introspection]
)
"
distutils_enable_tests pytest
DOCS=( AUTHORS.md NEWS.md README.md README.aeidon.md )
PATCHES=(
"${FILESDIR}/${PN}-1.12-fix-prefix.patch"
)
python_test() {
virtx epytest
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
# To check which GStreamer plugins are required (vaapisink is mentioned in the code but it is not used):
# plugins=$(qlist -e gaupol | xargs grep -ho 'Gst.ElementFactory.*' | cut -d'"' -f2 | sort -u | grep -vFx vaapisink)
# xargs -n1 gst-inspect-1.0 <<< "$plugins" | awk '/Filename/ {print $2}' | sort -u | xargs qfile
optfeature "integrated video player support" \
"media-libs/gstreamer[introspection] media-libs/gst-plugins-base[pango] media-plugins/gst-plugins-gtk"
optfeature "external video previewing support" "media-video/mpv" "media-video/mplayer" "media-video/vlc"
optfeature "spellchecking support" "app-text/gspell[introspection]"
# To list dictionaries supported by gaupol:
# python3 -c 'import aeidon; print(*aeidon.SpellChecker.list_languages(), sep="\n")'
optfeature "spellchecking with app-dicts/myspell-* dictionaries using the nuspell backend" \
"app-text/enchant[nuspell]"
optfeature "spellchecking with app-dicts/myspell-* dictionaries using the hunspell backend" \
"app-text/enchant[hunspell]"
optfeature "spellchecking with app-dicts/aspell-* dictionaries" \
"app-text/enchant[aspell]"
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
|