Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gaupol/
Date: Sat, 05 Sep 2020 00:20:46
Message-Id: 1599265133.e20b809b1f876fed3dff306e2c0269220611f8f5.sbraz@gentoo
1 commit: e20b809b1f876fed3dff306e2c0269220611f8f5
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 23:59:31 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 00:18:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20b809b
7
8 media-video/gaupol: support Python 3.9, remove dep. on setuptools
9
10 Also move dependencies to BDEPEND.
11
12 Package-Manager: Portage-3.0.3, Repoman-2.3.23
13 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
14
15 media-video/gaupol/gaupol-1.8-r2.ebuild | 68 +++++++++++++++++++++++++++++++++
16 1 file changed, 68 insertions(+)
17
18 diff --git a/media-video/gaupol/gaupol-1.8-r2.ebuild b/media-video/gaupol/gaupol-1.8-r2.ebuild
19 new file mode 100644
20 index 00000000000..e08179fb61d
21 --- /dev/null
22 +++ b/media-video/gaupol/gaupol-1.8-r2.ebuild
23 @@ -0,0 +1,68 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python3_{6,7,8,9} )
30 +DISTUTILS_USE_SETUPTOOLS=no
31 +
32 +inherit distutils-r1 virtualx xdg-utils
33 +
34 +DESCRIPTION="A subtitle editor for text-based subtitles"
35 +HOMEPAGE="https://otsaloma.io/gaupol/"
36 +SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm64 ~x86"
41 +IUSE="spell test"
42 +RESTRICT="!test? ( test )"
43 +
44 +RDEPEND="
45 + app-text/iso-codes
46 + dev-python/chardet[${PYTHON_USEDEP}]
47 + dev-python/pygobject:3[${PYTHON_USEDEP}]
48 + x11-libs/gtk+:3[introspection]
49 + spell? ( app-text/gspell[introspection] )
50 +"
51 +BDEPEND="
52 + sys-devel/gettext
53 + test? (
54 + ${RDEPEND}
55 + app-dicts/myspell-en
56 + app-text/enchant[hunspell]
57 + app-text/gspell[introspection]
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +DOCS=( AUTHORS.md NEWS.md TODO.md README.md README.aeidon.md )
63 +
64 +PATCHES=( "${FILESDIR}/${P}-fix-audio-tracks-order.patch" )
65 +
66 +python_test() {
67 + virtx pytest -vv
68 +}
69 +
70 +pkg_postinst() {
71 + xdg_desktop_database_update
72 + xdg_icon_cache_update
73 + if [[ -z ${REPLACING_VERSIONS} ]]; then
74 + elog "The integrated video player requires media-plugins/gst-plugins-gtk."
75 + elog ""
76 + elog "External video previewing support requires MPV, MPlayer or VLC."
77 + if use spell; then
78 + elog ""
79 + elog "Spell-checking requires a dictionary, any of app-dicts/myspell-*"
80 + elog "or app-text/aspell with the appropriate L10N variable."
81 + elog ""
82 + elog "Additionally, make sure that app-text/enchant has the correct flags enabled:"
83 + elog "USE=hunspell for myspell dictionaries and USE=aspell for aspell dictionaries."
84 + fi
85 + fi
86 +}
87 +
88 +pkg_postrm() {
89 + xdg_desktop_database_update
90 + xdg_icon_cache_update
91 +}