From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E6674159C96 for ; Sun, 28 Jul 2024 00:22:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FC17E2B0F; Sun, 28 Jul 2024 00:22:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3192E2B0F for ; Sun, 28 Jul 2024 00:22:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E23B3340DE6 for ; Sun, 28 Jul 2024 00:22:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3D2CC1E67 for ; Sun, 28 Jul 2024 00:22:26 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1722126037.a65501265ec21a62627d31c3fea705236bc21d04.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gaupol/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/gaupol/gaupol-1.15-r1.ebuild media-video/gaupol/gaupol-1.15.ebuild X-VCS-Directories: media-video/gaupol/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: a65501265ec21a62627d31c3fea705236bc21d04 X-VCS-Branch: master Date: Sun, 28 Jul 2024 00:22:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 99d1be4a-ed9f-40b5-b985-9492372f44a5 X-Archives-Hash: 5213d873c77e611c3658416767a015c0 commit: a65501265ec21a62627d31c3fea705236bc21d04 Author: gentoo-setan protonmail com> AuthorDate: Mon Jun 17 13:15:46 2024 +0000 Commit: Louis Sautier gentoo 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 protonmail.com> Signed-off-by: Louis Sautier gentoo.org> Co-authored-by: Louis Sautier 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 -}