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.
65 lines
1.5 KiB
65 lines
1.5 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
9 years ago
|
|
||
5 years ago
|
PYTHON_COMPAT=( python3_{5,6,7} )
|
||
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"
|
||
5 years ago
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||
8 years ago
|
IUSE="spell test"
|
||
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] )
|
||
|
"
|
||
6 years ago
|
DEPEND="
|
||
8 years ago
|
sys-devel/gettext
|
||
|
test? (
|
||
6 years ago
|
${RDEPEND}
|
||
5 years ago
|
app-dicts/myspell-en
|
||
|
app-text/enchant[hunspell]
|
||
|
app-text/gspell[introspection]
|
||
8 years ago
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
"
|
||
9 years ago
|
|
||
|
DOCS=( AUTHORS.md NEWS.md TODO.md README.md README.aeidon.md )
|
||
|
|
||
5 years ago
|
PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" )
|
||
|
|
||
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
|
||
5 years ago
|
elog "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
|
}
|