git: 711c037731a5 - main - multimedia/deforaos-player: update to version 0.2.0

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Mon, 21 Oct 2024 23:22:23 UTC
The branch main has been updated by olivier:

URL: https://cgit.FreeBSD.org/ports/commit/?id=711c037731a5b1285449e0c13dba79e35221aeec

commit 711c037731a5b1285449e0c13dba79e35221aeec
Author:     Pierre Pronchery <khorben@defora.org>
AuthorDate: 2024-10-14 15:29:09 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2024-10-21 23:20:11 +0000

    multimedia/deforaos-player: update to version 0.2.0
    
    Sponsored by:   The FreeBSD Foundation
---
 multimedia/deforaos-player/Makefile                | 40 +++++++++++++++-------
 multimedia/deforaos-player/distinfo                |  5 +--
 .../deforaos-player/files/patch-doc_Makefile       | 23 +++++++++++++
 .../deforaos-player/files/patch-doc__Makefile      | 23 -------------
 multimedia/deforaos-player/pkg-descr               |  3 ++
 multimedia/deforaos-player/pkg-plist               |  9 ++---
 6 files changed, 62 insertions(+), 41 deletions(-)

diff --git a/multimedia/deforaos-player/Makefile b/multimedia/deforaos-player/Makefile
index 152fb994eeeb..ef425ad814f6 100644
--- a/multimedia/deforaos-player/Makefile
+++ b/multimedia/deforaos-player/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	player
-PORTVERSION=	0.1.6
-PORTREVISION=	6
+PORTVERSION=	0.2.0
 CATEGORIES=	multimedia
-MASTER_SITES=	http://www.defora.org/os/download/download/4297/
+MASTER_SITES=	https://ftp.defora.org/pub/DeforaOS/Apps/Desktop/src/Player/
 PKGNAMEPREFIX=	deforaos-
 DISTNAME=	Player-${PORTVERSION}
 
@@ -10,20 +9,37 @@ MAINTAINER=	khorben@defora.org
 COMMENT=	DeforaOS desktop media player
 WWW=		https://www.defora.org/
 
-LICENSE=	GPLv3
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	xsltproc:textproc/libxslt \
-		${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
-LIB_DEPENDS=	libSystem.so:devel/deforaos-libsystem \
-		libDesktop.so:x11/deforaos-libdesktop
-RUN_DEPENDS=	mplayer:multimedia/mplayer
+BUILD_DEPENDS=	${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
+		xsltproc:textproc/libxslt
+LIB_DEPENDS=	libDesktop.so:x11/deforaos-libdesktop \
+		libSystem.so:devel/deforaos-libsystem \
+		libX11.so:x11/libX11
+RUN_DEPENDS=	mpv:multimedia/mpv
 
-MAKE_ARGS+=	PREFIX=${PREFIX}
-USE_GNOME=	gtk20
-USES=		desktop-file-utils gettext gnome pkgconfig
+USES=		desktop-file-utils gnome pkgconfig xorg
+USE_GNOME=	gtk30
+USE_XORG=	x11
 
+MAKE_ARGS+=	PREFIX=${PREFIX}
 MAKE_ENV+=	MANDIR=${STAGEDIR}${PREFIX}/share/man
 
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+NLS_USES=	gettext
+
 post-install: compress-man
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/player \
+		${STAGEDIR}${PREFIX}/bin/playerctl
+
+post-patch-DOCS-off:
+	${REINPLACE_CMD} 's|data doc include|data include|' \
+	${WRKSRC}/Makefile
+
+post-patch-NLS-off:
+	${REINPLACE_CMD} 's|include po src|include src|' \
+		${WRKSRC}/Makefile
 
 .include <bsd.port.mk>
diff --git a/multimedia/deforaos-player/distinfo b/multimedia/deforaos-player/distinfo
index 90a94871fabf..517682873c13 100644
--- a/multimedia/deforaos-player/distinfo
+++ b/multimedia/deforaos-player/distinfo
@@ -1,2 +1,3 @@
-SHA256 (Player-0.1.6.tar.gz) = ac208e9d07b56b55d3085bd0637ad26e17e25c927e1a7b577a9f96e6ae1da7df
-SIZE (Player-0.1.6.tar.gz) = 41827
+TIMESTAMP = 1728600930
+SHA256 (Player-0.2.0.tar.gz) = 2906fd47d0799a7c77707e471eb52f9dacee80d0da55a1bdccc3b79461f86bfd
+SIZE (Player-0.2.0.tar.gz) = 47822
diff --git a/multimedia/deforaos-player/files/patch-doc_Makefile b/multimedia/deforaos-player/files/patch-doc_Makefile
new file mode 100644
index 000000000000..8a07b4464cf0
--- /dev/null
+++ b/multimedia/deforaos-player/files/patch-doc_Makefile
@@ -0,0 +1,23 @@
+--- doc/Makefile.orig	2024-10-10 22:59:16 UTC
++++ doc/Makefile
+@@ -1,4 +1,4 @@
+-TARGETS	= $(OBJDIR)index.html $(OBJDIR)player.1 $(OBJDIR)player.html $(OBJDIR)playerctl.1 $(OBJDIR)playerctl.html
++TARGETS	= $(OBJDIR)player.1 $(OBJDIR)playerctl.1
+ OBJDIR	=
+ PREFIX	= /usr/local
+ DESTDIR	=
+@@ -37,14 +37,10 @@ install: all
+ 
+ install: all
+ 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)player.1"
+-	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)player.html"
+ 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)playerctl.1"
+-	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)playerctl.html"
+ 
+ uninstall:
+ 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "player.1"
+-	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "player.html"
+ 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "playerctl.1"
+-	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "playerctl.html"
+ 
+ .PHONY: all clean distclean install uninstall
diff --git a/multimedia/deforaos-player/files/patch-doc__Makefile b/multimedia/deforaos-player/files/patch-doc__Makefile
deleted file mode 100644
index 850f7a35aeb0..000000000000
--- a/multimedia/deforaos-player/files/patch-doc__Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
---- doc/Makefile.orig	2013-11-01 13:11:04.895668592 +0100
-+++ doc/Makefile	2013-11-01 13:12:00.005665722 +0100
-@@ -1,4 +1,4 @@
--TARGETS	= index.html player.1 player.html playerctl.1 playerctl.html
-+TARGETS	= player.1 playerctl.1
- PREFIX	= /usr/local
- DESTDIR	=
- RM	= rm -f
-@@ -33,14 +33,10 @@
- 
- install: $(TARGETS)
- 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "player.1"
--	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "player.html"
- 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "playerctl.1"
--	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "playerctl.html"
- 
- uninstall:
- 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "player.1"
--	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "player.html"
- 	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "playerctl.1"
--	./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "playerctl.html"
- 
- .PHONY: all clean distclean install uninstall
diff --git a/multimedia/deforaos-player/pkg-descr b/multimedia/deforaos-player/pkg-descr
index 858cb5baf4b6..12947204a3bb 100644
--- a/multimedia/deforaos-player/pkg-descr
+++ b/multimedia/deforaos-player/pkg-descr
@@ -1 +1,4 @@
 DeforaOS Desktop multimedia player
+
+Player is a media player, part of the DeforaOS Project. It is currently
+implemented as a Gtk+ front-end for mpv.
diff --git a/multimedia/deforaos-player/pkg-plist b/multimedia/deforaos-player/pkg-plist
index 47358fe46f1a..ba4e18a57a2b 100644
--- a/multimedia/deforaos-player/pkg-plist
+++ b/multimedia/deforaos-player/pkg-plist
@@ -1,8 +1,9 @@
 bin/player
 bin/playerctl
 include/Desktop/Player.h
-share/man/man1/player.1.gz
-share/man/man1/playerctl.1.gz
+%%PORTDOCS%%share/man/man1/player.1.gz
+%%PORTDOCS%%share/man/man1/playerctl.1.gz
 share/Player/splash.png
-share/applications/player.desktop
-share/locale/fr/LC_MESSAGES/Player.mo
+share/applications/deforaos-player.desktop
+%%NLS%%share/locale/es/LC_MESSAGES/Player.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/Player.mo