commit:     f7c56f93021e3b1c4c357377779742787144a4cd
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 12 06:03:26 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Mar 12 10:11:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c56f93

media-video/subtitlecomposer: use ffmpeg-compat

It is possible fixes already exist for ffmpeg-7 on this package,
but not planning to look into that myself.

Given no code changes, plans are to sync keywords back with stable
when ready.

Bug: https://bugs.gentoo.org/948852
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../subtitlecomposer-0.8.1-r1.ebuild               | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/media-video/subtitlecomposer/subtitlecomposer-0.8.1-r1.ebuild 
b/media-video/subtitlecomposer/subtitlecomposer-0.8.1-r1.ebuild
new file mode 100644
index 000000000000..5f07e28dfc2a
--- /dev/null
+++ b/media-video/subtitlecomposer/subtitlecomposer-0.8.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="forceoptional"
+KFMIN=5.106.0
+QTMIN=5.15.9
+inherit ecm ffmpeg-compat kde.org
+
+DESCRIPTION="Text-based subtitles editor"
+HOMEPAGE="https://subtitlecomposer.kde.org/";
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+       PATCHSET="${PN}-0.7.1-patchset-1"
+       SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz
+       https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}.tar.xz";
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="5"
+IUSE="unicode"
+
+DEPEND="
+       dev-libs/openssl:=
+       >=dev-qt/qtdeclarative-${QTMIN}:5
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtnetwork-${QTMIN}:5
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=kde-frameworks/kcodecs-${KFMIN}:5
+       >=kde-frameworks/kcompletion-${KFMIN}:5
+       >=kde-frameworks/kconfig-${KFMIN}:5
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/ktextwidgets-${KFMIN}:5
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+       >=kde-frameworks/kxmlgui-${KFMIN}:5
+       >=kde-frameworks/sonnet-${KFMIN}:5
+       media-libs/openal
+       media-video/ffmpeg-compat:6=
+       unicode? ( dev-libs/icu:= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       sys-devel/gettext
+       virtual/pkgconfig
+"
+
+# TODO: upstream
+PATCHES=( "${WORKDIR}/${PATCHSET}/${PN}-0.7.1-tests-optional.patch" )
+
+src_configure() {
+       # TODO: fix with >=ffmpeg-7 then drop compat (bug #948852)
+       ffmpeg_compat_setup 6
+
+       local mycmakeargs=(
+               -DCMAKE_DISABLE_FIND_PACKAGE_PocketSphinx=ON # bugs 616706, 
610434
+               $(cmake_use_find_package unicode ICU)
+       )
+
+       ecm_src_configure
+}

Reply via email to