git: 98816358fdd2 - main - multimedia/mediaelch: New port

From: Joel Bodenmann <jbo_at_FreeBSD.org>
Date: Sun, 04 Feb 2024 20:13:54 UTC
The branch main has been updated by jbo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98816358fdd22f1d58a71b25f0b357314901a022

commit 98816358fdd22f1d58a71b25f0b357314901a022
Author:     Lexi Winter <lexi@le-fay.org>
AuthorDate: 2023-12-27 12:17:18 +0000
Commit:     Joel Bodenmann <jbo@FreeBSD.org>
CommitDate: 2024-02-04 20:13:19 +0000

    multimedia/mediaelch: New port
    
    Desktop utility to manage metadata and artwork for Kodi and Jellyfin.
    
    PR:                     275962
    Approved by:            tcberner (mentor)
    Differential Revision:  https://reviews.freebsd.org/D43477
---
 multimedia/Makefile            |  1 +
 multimedia/mediaelch/Makefile  | 42 ++++++++++++++++++++++++++++++++++++++++++
 multimedia/mediaelch/distinfo  |  3 +++
 multimedia/mediaelch/pkg-descr |  5 +++++
 4 files changed, 51 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index 1a5e107af707..f0141502a0b4 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -214,6 +214,7 @@
     SUBDIR += lsdvd
     SUBDIR += m2vrequantiser
     SUBDIR += makemkv
+    SUBDIR += mediaelch
     SUBDIR += mediainfo
     SUBDIR += mencoder
     SUBDIR += minisatip
diff --git a/multimedia/mediaelch/Makefile b/multimedia/mediaelch/Makefile
new file mode 100644
index 000000000000..979120f48e62
--- /dev/null
+++ b/multimedia/mediaelch/Makefile
@@ -0,0 +1,42 @@
+PORTNAME=		mediaelch
+DISTVERSIONPREFIX=	v
+DISTVERSION=		2.10.6
+CATEGORIES=		multimedia
+PKGNAMESUFFIX=		-${FLAVOR}
+
+MAINTAINER=	lexi.freebsd@le-fay.org
+COMMENT=	Desktop utility to manage metadata and artwork for Kodi and Jellyfin
+WWW=		https://www.mediaelch.de/mediaelch/
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libmediainfo.so:multimedia/libmediainfo	\
+		libcurl.so:ftp/curl			\
+		libquazip1-${FLAVOR}.so:archivers/quazip@${FLAVOR}
+
+FLAVORS=	qt6 qt5
+FLAVOR?=	qt6
+
+USES=		cmake gl localbase:ldflags qt:${FLAVOR:S/qt//}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Komet
+GH_PROJECT=	MediaElch
+
+USE_GL=		opengl
+
+_USE_QT_qt5=	buildtools:build qmake:build linguisttools:build \
+		concurrent core gui multimedia network opengl qmake sql svg \
+		widgets xml
+_USE_QT_qt6=	5compat base multimedia svg tools
+USE_QT=		${_USE_QT_${FLAVOR}}
+
+CMAKE_ON=	USE_EXTERN_QUAZIP MEDIAELCH_FORCE_QT${FLAVOR:S/qt//}
+
+PLIST_FILES=	bin/MediaElch \
+		share/applications/MediaElch.desktop \
+		share/metainfo/com.kvibes.MediaElch.metainfo.xml \
+		share/pixmaps/MediaElch.png
+
+.include <bsd.port.mk>
diff --git a/multimedia/mediaelch/distinfo b/multimedia/mediaelch/distinfo
new file mode 100644
index 000000000000..82413e3359cd
--- /dev/null
+++ b/multimedia/mediaelch/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1705330582
+SHA256 (Komet-MediaElch-v2.10.6_GH0.tar.gz) = c37464e4cf956e9abec14126eb681633988f31ba2b0f937817c7829c25737e22
+SIZE (Komet-MediaElch-v2.10.6_GH0.tar.gz) = 3300733
diff --git a/multimedia/mediaelch/pkg-descr b/multimedia/mediaelch/pkg-descr
new file mode 100644
index 000000000000..f624c5472ee0
--- /dev/null
+++ b/multimedia/mediaelch/pkg-descr
@@ -0,0 +1,5 @@
+MediaElch is a desktop media metadata manager for Kodi and Jellyfin.
+
+It can automatically download information about movies, TV shows and music,
+including artwork, and create ".nfo" files which are used by the Kodi/Jellyfin
+user interface.