You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.6 KiB
66 lines
1.6 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
9 years ago
|
|
||
3 years ago
|
PYTHON_COMPAT=( python3_{8..10} )
|
||
4 years ago
|
DISTUTILS_USE_SETUPTOOLS=no
|
||
9 years ago
|
|
||
5 years ago
|
inherit distutils-r1 virtualx xdg-utils
|
||
9 years ago
|
|
||
|
DESCRIPTION="A subtitle editor for text-based subtitles"
|
||
7 years ago
|
HOMEPAGE="https://otsaloma.io/gaupol/"
|
||
8 years ago
|
SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
9 years ago
|
|
||
8 years ago
|
LICENSE="GPL-2+"
|
||
9 years ago
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||
|
IUSE="spell"
|
||
9 years ago
|
|
||
5 years ago
|
RDEPEND="
|
||
|
app-text/iso-codes
|
||
9 years ago
|
dev-python/chardet[${PYTHON_USEDEP}]
|
||
|
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||
|
x11-libs/gtk+:3[introspection]
|
||
5 years ago
|
spell? ( app-text/gspell[introspection] )
|
||
|
"
|
||
4 years ago
|
BDEPEND="
|
||
8 years ago
|
sys-devel/gettext
|
||
|
test? (
|
||
5 years ago
|
app-dicts/myspell-en
|
||
|
app-text/enchant[hunspell]
|
||
|
app-text/gspell[introspection]
|
||
8 years ago
|
)
|
||
|
"
|
||
9 years ago
|
|
||
3 years ago
|
distutils_enable_tests pytest
|
||
9 years ago
|
|
||
3 years ago
|
DOCS=( AUTHORS.md NEWS.md README.md README.aeidon.md )
|
||
5 years ago
|
|
||
7 years ago
|
python_test() {
|
||
5 years ago
|
virtx pytest -vv
|
||
7 years ago
|
}
|
||
|
|
||
9 years ago
|
pkg_postinst() {
|
||
8 years ago
|
xdg_desktop_database_update
|
||
5 years ago
|
xdg_icon_cache_update
|
||
7 years ago
|
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||
4 years ago
|
elog "The integrated video player requires media-plugins/gst-plugins-gtk."
|
||
|
elog ""
|
||
|
elog "External video previewing support requires MPV, MPlayer or VLC."
|
||
8 years ago
|
if use spell; then
|
||
5 years ago
|
elog ""
|
||
|
elog "Spell-checking requires a dictionary, any of app-dicts/myspell-*"
|
||
|
elog "or app-text/aspell with the appropriate L10N variable."
|
||
|
elog ""
|
||
|
elog "Additionally, make sure that app-text/enchant has the correct flags enabled:"
|
||
|
elog "USE=hunspell for myspell dictionaries and USE=aspell for aspell dictionaries."
|
||
8 years ago
|
fi
|
||
9 years ago
|
fi
|
||
|
}
|
||
8 years ago
|
|
||
|
pkg_postrm() {
|
||
8 years ago
|
xdg_desktop_database_update
|
||
5 years ago
|
xdg_icon_cache_update
|
||
8 years ago
|
}
|