1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit distutils-r1 gnome2-utils virtualx xdg-utils
10 DESCRIPTION="A subtitle editor for text-based subtitles"
11 HOMEPAGE="https://otsaloma.io/gaupol/"
12 SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64 arm64 x86"
18 RESTRICT="!test? ( test )"
22 dev-python/chardet[${PYTHON_USEDEP}]
23 dev-python/pygobject:3[${PYTHON_USEDEP}]
24 x11-libs/gtk+:3[introspection]
27 >=dev-python/pyenchant-1.4[${PYTHON_USEDEP}]
34 dev-python/pyenchant[${PYTHON_USEDEP}]
35 dev-python/pytest[${PYTHON_USEDEP}]
39 DOCS=( AUTHORS.md NEWS.md TODO.md README.md README.aeidon.md )
46 xdg_desktop_database_update
47 xdg_mimeinfo_database_update
48 gnome2_icon_cache_update
49 if [[ -z ${REPLACING_VERSIONS} ]]; then
50 elog "Previewing support needs MPV, MPlayer or VLC."
53 elog "Additionally, spell-checking requires a dictionary, any of"
54 elog "Aspell/Pspell, Ispell, MySpell, Uspell, Hspell or AppleSpell."
60 xdg_desktop_database_update
61 xdg_mimeinfo_database_update
62 gnome2_icon_cache_update