git: 8e1e44088b99 - main - multimedia/subtitlecomposer: update to 0.7.1

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Sun, 10 Oct 2021 14:27:26 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e1e44088b997e2f132502fed26be6c9628eb718

commit 8e1e44088b997e2f132502fed26be6c9628eb718
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2021-05-11 20:06:13 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2021-10-10 14:26:14 +0000

    multimedia/subtitlecomposer: update to 0.7.1
    
    The project is hosted by KDE, update WWW and MASTER_SITES accordingly.
    Remove all options, ffmpeg is now the only supported backend.
---
 multimedia/subtitlecomposer/Makefile               | 42 +++-------------------
 multimedia/subtitlecomposer/distinfo               |  6 ++--
 .../files/patch-src_CMakeLists.txt                 | 11 ++++++
 .../files/patch-src_formats_CMakeLists.txt         | 11 ------
 multimedia/subtitlecomposer/pkg-descr              |  8 +++--
 multimedia/subtitlecomposer/pkg-plist              | 36 +++++++------------
 6 files changed, 36 insertions(+), 78 deletions(-)

diff --git a/multimedia/subtitlecomposer/Makefile b/multimedia/subtitlecomposer/Makefile
index 561cffe54178..26903189d9ac 100644
--- a/multimedia/subtitlecomposer/Makefile
+++ b/multimedia/subtitlecomposer/Makefile
@@ -1,11 +1,10 @@
 PORTNAME=	subtitlecomposer
-PORTVERSION=	0.7.0
-DISTVERSIONPREFIX=	v
-PORTREVISION=	10
+PORTVERSION=	0.7.1
 CATEGORIES=	multimedia kde
+MASTER_SITES=	KDE/stable/${PORTNAME}
 
 MAINTAINER=	makc@FreeBSD.org
-COMMENT=	Subtitle editor
+COMMENT=	Advanced FFmpeg-based subtitle editor
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -14,51 +13,18 @@ LIB_DEPENDS=	libicui18n.so:devel/icu \
 		libavcodec.so:multimedia/ffmpeg
 
 USES=		compiler:c++11-lang cmake desktop-file-utils gettext \
-		kde:5 pkgconfig qt:5 shared-mime-info
+		kde:5 openal pkgconfig qt:5 shared-mime-info tar:xz
 USE_KDE=	auth codecs config configwidgets coreaddons ecm_build i18n \
 		kio kross sonnet textwidgets widgetsaddons xmlgui \
 		doctools_build
 USE_QT=		buildtools_build qmake_build testlib_build core gui widgets
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	maxrd2
-GH_PROJECT=	SubtitleComposer
-
-PORTSCOUT=	ignore:1
-
-OPTIONS_GROUP=	VIDEO
-VIDEO_DESC=	Video players
-OPTIONS_GROUP_VIDEO=	GSTREAMER MPLAYER MPV PHONON XINE
-OPTIONS_DEFAULT=	PHONON
-OPTIONS_SUB=	yes
-
 # Requires PocketSphinx-5prealpha
 SPHINX_DESC=	Speech recognition via PocketSphinx
 SPHINX_LIB_DEPENDS=	libpocketsphinx.so:audio/pocketsphinx
 CMAKE_ARGS=	-DCMAKE_DISABLE_FIND_PACKAGE_PocketSphinx=ON
 
-GSTREAMER_USES=	gnome
-GSTREAMER_USE=	GNOME=glib20 GSTREAMER1=yes
-GSTREAMER_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON
-
-MPLAYER_DESC=	Install MPlayer
-MPLAYER_RUN_DEPENDS=	mplayer:multimedia/mplayer
-
-MPV_DESC=	Multimedia support via MPV
-MPV_LIB_DEPENDS=	libmpv.so:multimedia/mpv
-MPV_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_MPV=ON
-
-PHONON_USE=	QT=phonon4
-PHONON_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_Phonon4Qt5=ON
-
-XINE_LIB_DEPENDS=	libxine.so:multimedia/libxine
-XINE_USES=	xorg
-XINE_USE=	XORG=x11,xcb
-XINE_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_Xine=ON
-
 post-patch:
 	${RM} ${WRKSRC}/cmake/FindICU.cmake
-	${REINPLACE_CMD} '/include <locale>/s,locale,clocale,' \
-		${WRKSRC}/src/videoplayerplugins/mpv/mpvbackend.cpp
 
 .include <bsd.port.mk>
diff --git a/multimedia/subtitlecomposer/distinfo b/multimedia/subtitlecomposer/distinfo
index f4a6daff85c1..dfe2f70ad4e2 100644
--- a/multimedia/subtitlecomposer/distinfo
+++ b/multimedia/subtitlecomposer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1562185497
-SHA256 (maxrd2-SubtitleComposer-v0.7.0_GH0.tar.gz) = 90dee806df0ee57f4098d417f62014b4533dbf5598d5535c9da1066536c1ed41
-SIZE (maxrd2-SubtitleComposer-v0.7.0_GH0.tar.gz) = 1649840
+TIMESTAMP = 1633635127
+SHA256 (subtitlecomposer-0.7.1.tar.xz) = ef9cb3c0c1fe1f40cf9d8e795859b9b28adf2da3be77a076d46bc28df4cd0255
+SIZE (subtitlecomposer-0.7.1.tar.xz) = 636808
diff --git a/multimedia/subtitlecomposer/files/patch-src_CMakeLists.txt b/multimedia/subtitlecomposer/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..d8a3b1d16d0f
--- /dev/null
+++ b/multimedia/subtitlecomposer/files/patch-src_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/CMakeLists.txt.orig	2020-12-15 09:57:06 UTC
++++ src/CMakeLists.txt
+@@ -24,7 +24,7 @@ add_definitions(-D_DEFAULT_SOURCE)
+ 
+ find_package(FFmpeg 57.83.100 REQUIRED)
+ find_package(OpenAL REQUIRED)
+-find_package(ICU)
++find_package(ICU REQUIRED COMPONENTS i18n uc data)
+ 
+ set(SC_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_LIBDIR}/subtitlecomposer" CACHE STRING EXPORTEDVARIABLE)
+ message(STATUS "Subtitle Composer plugin path: ${SC_PLUGIN_INSTALL_DIR}")
diff --git a/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt b/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt
deleted file mode 100644
index 436d59371e26..000000000000
--- a/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/formats/CMakeLists.txt.orig	2018-10-25 20:45:54 UTC
-+++ src/formats/CMakeLists.txt
-@@ -68,7 +68,7 @@ set(formats_UIS
- 	CACHE INTERNAL EXPORTEDVARIABLE
- )
- 
--find_package(ICU)
-+find_package(ICU REQUIRED COMPONENTS i18n uc data)
- if(ICU_FOUND)
- 	message(STATUS "ICU Library will be used for charset detection.")
- 
diff --git a/multimedia/subtitlecomposer/pkg-descr b/multimedia/subtitlecomposer/pkg-descr
index 2740e74c4084..697959143629 100644
--- a/multimedia/subtitlecomposer/pkg-descr
+++ b/multimedia/subtitlecomposer/pkg-descr
@@ -1,4 +1,6 @@
-Subtitle editor that supports basic operations (text, time, and
-style edition, live preview, spell checking and more.
+Subtitle Composer is a cross-platform subtitle editor with lots of features,
+including live preview in integrated video player, smart language and text
+encoding detection, spell checking, side-by-side subtitle translations,
+timing errors detection in subtitles and more.
 
-WWW: https://github.com/maxrd2/subtitlecomposer
+WWW: https://subtitlecomposer.kde.org
diff --git a/multimedia/subtitlecomposer/pkg-plist b/multimedia/subtitlecomposer/pkg-plist
index 57d1658ef829..f8fd0dd0320d 100644
--- a/multimedia/subtitlecomposer/pkg-plist
+++ b/multimedia/subtitlecomposer/pkg-plist
@@ -1,49 +1,39 @@
 bin/subtitlecomposer
 etc/xdg/subtitlecomposerrc
-%%GSTREAMER%%lib/subtitlecomposer/gstplayer.so
-lib/subtitlecomposer/mplayer.so
-%%MPV%%lib/subtitlecomposer/mpvplayer.so
-%%PHONON%%lib/subtitlecomposer/phononplayer.so
-%%XINE%%lib/subtitlecomposer/xineplayer.so
-share/applications/subtitlecomposer.desktop
+share/applications/org.kde.subtitlecomposer.desktop
 share/icons/hicolor/128x128/apps/subtitlecomposer.png
 share/icons/hicolor/16x16/apps/subtitlecomposer.png
 share/icons/hicolor/256x256/apps/subtitlecomposer.png
 share/icons/hicolor/32x32/apps/subtitlecomposer.png
 share/kxmlgui5/subtitlecomposer/subtitlecomposerui.rc
 share/locale/bg/LC_MESSAGES/subtitlecomposer.mo
+share/locale/ca/LC_MESSAGES/subtitlecomposer.mo
+share/locale/ca@valencia/LC_MESSAGES/subtitlecomposer.mo
 share/locale/cs/LC_MESSAGES/subtitlecomposer.mo
 share/locale/de/LC_MESSAGES/subtitlecomposer.mo
 share/locale/el/LC_MESSAGES/subtitlecomposer.mo
+share/locale/en_GB/LC_MESSAGES/subtitlecomposer.mo
 share/locale/es/LC_MESSAGES/subtitlecomposer.mo
+share/locale/et/LC_MESSAGES/subtitlecomposer.mo
+share/locale/fi/LC_MESSAGES/subtitlecomposer.mo
 share/locale/fr/LC_MESSAGES/subtitlecomposer.mo
 share/locale/hr/LC_MESSAGES/subtitlecomposer.mo
 share/locale/hu/LC_MESSAGES/subtitlecomposer.mo
 share/locale/it/LC_MESSAGES/subtitlecomposer.mo
+share/locale/nl/LC_MESSAGES/subtitlecomposer.mo
 share/locale/pl/LC_MESSAGES/subtitlecomposer.mo
+share/locale/pt/LC_MESSAGES/subtitlecomposer.mo
 share/locale/pt_BR/LC_MESSAGES/subtitlecomposer.mo
 share/locale/ru/LC_MESSAGES/subtitlecomposer.mo
+share/locale/sk/LC_MESSAGES/subtitlecomposer.mo
+share/locale/sl/LC_MESSAGES/subtitlecomposer.mo
 share/locale/sr/LC_MESSAGES/subtitlecomposer.mo
 share/locale/sr@latin/LC_MESSAGES/subtitlecomposer.mo
+share/locale/sv/LC_MESSAGES/subtitlecomposer.mo
 share/locale/uk/LC_MESSAGES/subtitlecomposer.mo
-share/metainfo/subtitlecomposer.desktop.appdata.xml
+share/locale/zh_TW/LC_MESSAGES/subtitlecomposer.mo
+share/metainfo/org.kde.subtitlecomposer.appdata.xml
 share/mime/packages/subtitlecomposer.xml
-%%DATADIR%%/icons/hicolor/128x128/categories/waveform.png
-%%DATADIR%%/icons/hicolor/16x16/actions/select_stream.png
-%%DATADIR%%/icons/hicolor/16x16/actions/time_from_video.png
-%%DATADIR%%/icons/hicolor/48x48/actions/audio_extract.png
-%%DATADIR%%/icons/hicolor/48x48/apps/gstreamer.png
-%%DATADIR%%/icons/hicolor/48x48/apps/mediaplayer.png
-%%DATADIR%%/icons/hicolor/48x48/apps/mplayer.png
-%%DATADIR%%/icons/hicolor/48x48/apps/xine.png
-%%DATADIR%%/icons/hicolor/64x64/apps/mpv.png
-%%DATADIR%%/icons/hicolor/64x64/apps/pocketsphinx.png
-%%DATADIR%%/icons/hicolor/scalable/actions/anchor.svg
-%%DATADIR%%/icons/hicolor/scalable/actions/current_line_follows_video.svg
-%%DATADIR%%/icons/hicolor/scalable/actions/playrate_minus.svg
-%%DATADIR%%/icons/hicolor/scalable/actions/playrate_plus.svg
-%%DATADIR%%/icons/hicolor/scalable/actions/set_hide_time.svg
-%%DATADIR%%/icons/hicolor/scalable/actions/set_show_time.svg
 %%DATADIR%%/scripts/README
 %%DATADIR%%/scripts/api/scripting_list.h
 %%DATADIR%%/scripts/api/scripting_range.h