From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gaupol/
Date: Sun, 28 Jul 2024 00:22:26 +0000 (UTC) [thread overview]
Message-ID: <1722126037.a65501265ec21a62627d31c3fea705236bc21d04.sbraz@gentoo> (raw)
commit: a65501265ec21a62627d31c3fea705236bc21d04
Author: gentoo-setan <gentoo-setan <AT> protonmail <DOT> com>
AuthorDate: Mon Jun 17 13:15:46 2024 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 00:20:37 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6550126
media-video/gaupol: replace USE flags with optfeature, update LICENSE
* Update LICENSE from GPL-2+ to GPL-3+.
* Replace elog messages with optfeature.
* Explicitly list mandatory GStreamer plugins.
* Replace USE=spell with better optfeature messages.
* Mention the newer USE=nuspell backend for enchant before USE=hunspell.
* Allow tests to run with enchant built with USE=nuspell.
* Remove GitHub from HOMEPAGE as it's already listed as an upstream in
metadata.xml.
Signed-off-by: gentoo-setan <gentoo-setan <AT> protonmail.com>
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
Co-authored-by: Louis Sautier <sbraz <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/37194
media-video/gaupol/gaupol-1.15-r1.ebuild | 74 ++++++++++++++++++++++++++++++++
media-video/gaupol/gaupol-1.15.ebuild | 69 -----------------------------
2 files changed, 74 insertions(+), 69 deletions(-)
diff --git a/media-video/gaupol/gaupol-1.15-r1.ebuild b/media-video/gaupol/gaupol-1.15-r1.ebuild
new file mode 100644
index 000000000000..38dd9159229f
--- /dev/null
+++ b/media-video/gaupol/gaupol-1.15-r1.ebuild
@@ -0,0 +1,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[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
+}
diff --git a/media-video/gaupol/gaupol-1.15.ebuild b/media-video/gaupol/gaupol-1.15.ebuild
deleted file mode 100644
index de6253f7c5e9..000000000000
--- a/media-video/gaupol/gaupol-1.15.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# 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 virtualx xdg-utils
-
-DESCRIPTION="A subtitle editor for text-based subtitles"
-HOMEPAGE="https://otsaloma.io/gaupol/ https://github.com/otsaloma/gaupol/"
-SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE="spell"
-
-RDEPEND="
- app-text/iso-codes
- dev-python/charset-normalizer[${PYTHON_USEDEP}]
- dev-python/pygobject:3[${PYTHON_USEDEP}]
- x11-libs/gtk+:3[introspection]
- spell? ( app-text/gspell[introspection] )
-"
-BDEPEND="
- sys-devel/gettext
- test? (
- app-dicts/myspell-en
- app-text/enchant[hunspell]
- 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
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "The integrated video player requires media-plugins/gst-plugins-gtk."
- elog ""
- elog "External video previewing support requires MPV, MPlayer or VLC."
- if use spell; then
- 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."
- fi
- fi
-}
-
-pkg_postrm() {
- xdg_desktop_database_update
- xdg_icon_cache_update
-}
next reply other threads:[~2024-07-28 0:22 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-28 0:22 Louis Sautier [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-28 16:31 [gentoo-commits] repo/gentoo:master commit in: media-video/gaupol/ Jakov Smolić
2024-07-28 13:47 Louis Sautier
2024-07-28 0:22 Louis Sautier
2024-06-16 17:31 Louis Sautier
2024-04-07 14:25 Louis Sautier
2023-11-29 18:06 Michał Górny
2023-11-29 17:59 Michał Górny
2023-10-29 12:56 Louis Sautier
2023-10-29 12:56 Louis Sautier
2023-05-21 17:59 Sam James
2023-01-02 20:56 Andreas Sturmlechner
2022-11-12 17:48 Matt Turner
2022-07-02 12:20 Agostino Sarubbo
2022-04-26 12:00 Louis Sautier
2022-04-03 11:11 Louis Sautier
2022-04-03 11:11 Louis Sautier
2022-02-19 6:52 Agostino Sarubbo
2021-10-06 23:05 Louis Sautier
2021-10-02 21:46 Louis Sautier
2021-08-06 7:32 Agostino Sarubbo
2021-08-05 19:07 Louis Sautier
2021-08-05 19:07 Louis Sautier
2021-01-09 22:42 Louis Sautier
2020-11-08 21:33 Sam James
2020-11-08 21:33 Sam James
2020-09-05 0:20 Louis Sautier
2020-07-05 20:12 Michał Górny
2020-07-04 21:55 Mart Raudsepp
2020-05-24 15:44 Louis Sautier
2020-04-12 16:06 Louis Sautier
2020-04-12 16:06 Louis Sautier
2019-11-26 20:39 Aaron Bauman
2019-11-26 12:27 Agostino Sarubbo
2019-11-25 12:46 Louis Sautier
2019-08-05 13:05 Louis Sautier
2019-07-29 20:02 Aaron Bauman
2019-06-09 15:25 Louis Sautier
2019-06-09 15:25 Louis Sautier
2019-04-09 21:13 Mikle Kolyada
2019-04-01 19:58 Thomas Deutschmann
2019-03-11 21:03 Andreas Sturmlechner
2019-02-03 2:35 Louis Sautier
2018-07-28 21:20 Louis Sautier
2018-07-12 22:06 Louis Sautier
2018-07-12 22:06 Louis Sautier
2018-07-09 1:29 Thomas Deutschmann
2018-06-30 2:41 Louis Sautier
2018-06-28 19:18 Pacho Ramos
2018-06-28 19:18 Pacho Ramos
2018-06-25 9:53 Jason Zaman
2018-05-26 12:53 David Seifert
2018-05-26 12:53 David Seifert
2017-11-17 18:47 David Seifert
2017-11-17 18:47 David Seifert
2017-04-26 14:04 Michał Górny
2017-04-26 14:04 Michał Górny
2017-04-23 20:48 Michał Górny
2016-10-31 9:17 Michał Górny
2016-08-21 20:57 Patrice Clement
2016-08-21 20:57 Patrice Clement
2016-08-21 14:32 Patrice Clement
2016-08-05 15:17 Mike Gilbert
2016-08-05 15:17 Mike Gilbert
2016-02-01 0:49 Ian Delaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1722126037.a65501265ec21a62627d31c3fea705236bc21d04.sbraz@gentoo \
--to=sbraz@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox