pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gerbera: re-introduce the desktop file from mediatomb



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Mon Aug 31 21:27:27 2020 +0200
Changeset:	07d1d8d1930a8c8bba5a3a66c30671c607636b90

Modified Files:
	gerbera/Makefile
	gerbera/PLIST
Added Files:
	gerbera/files/gerbera.desktop.in

Log Message:
gerbera: re-introduce the desktop file from mediatomb

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=07d1d8d1930a8c8bba5a3a66c30671c607636b90

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gerbera/Makefile                 | 8 ++++++--
 gerbera/PLIST                    | 1 +
 gerbera/files/gerbera.desktop.in | 9 +++++++++
 3 files changed, 16 insertions(+), 2 deletions(-)

diffs:
diff --git a/gerbera/Makefile b/gerbera/Makefile
index 40dd409c1b..c044d75b90 100644
--- a/gerbera/Makefile
+++ b/gerbera/Makefile
@@ -40,17 +40,20 @@ FILES_SUBST+=		PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 GERBERA_HOME=		${PKG_HOME.${GERBERA_USER}}
 
 SUBST_CLASSES+=		config
-SUBST_FILES.config=	config.xml
+SUBST_FILES.config=	config.xml gerbera.desktop
 SUBST_VARS.config=	GERBERA_HOME PREFIX OPSYS
 SUBST_STAGE.config=	pre-configure
 
-INSTALLATION_DIRS+=	share/examples/gerbera
+INSTALLATION_DIRS+=	share/applications share/examples/gerbera
 
 post-extract:
 	${CP} ${FILESDIR}/config.xml.in ${WRKSRC}/config.xml
+	${CP} ${FILESDIR}/gerbera.desktop.in ${WRKSRC}/gerbera.desktop
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/config.xml ${DESTDIR}${EGDIR}/config.xml
+	${INSTALL_DATA} ${WRKSRC}/gerbera.desktop \
+		${DESTDIR}${PREFIX}/share/applications/gerbera.desktop
 
 .include "options.mk"
 
@@ -68,4 +71,5 @@ post-install:
 .include "../../www/curl/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/gerbera/PLIST b/gerbera/PLIST
index fffadf3bdf..bb527b13be 100644
--- a/gerbera/PLIST
+++ b/gerbera/PLIST
@@ -1,5 +1,6 @@
 @comment $NetBSD$
 bin/gerbera
+share/applications/gerbera.desktop
 share/examples/gerbera/config.xml
 share/gerbera/js/common.js
 share/gerbera/js/import.js
diff --git a/gerbera/files/gerbera.desktop.in b/gerbera/files/gerbera.desktop.in
new file mode 100644
index 0000000000..9fdfe5ab98
--- /dev/null
+++ b/gerbera/files/gerbera.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Gerbera
+Comment=Gerbera UPnP Media Server web interface
+Exec=@PREFIX@/bin/gnome-open @GERBERA_HOME@/gerbera.html
+Icon=@PREFIX@/share/gerbera/web/icons/mt-icon120.png
+Terminal=false
+Categories=Application;AudioVideo;
+Type=Application
+Encoding=UTF-8


Home | Main Index | Thread Index | Old Index