Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2019 08:01:35 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502192 - in head/x11-wm/dwm: . files
Message-ID:  <201905210801.x4L81Zhx017422@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Tue May 21 08:01:35 2019
New Revision: 502192
URL: https://svnweb.freebsd.org/changeset/ports/502192

Log:
  Add dwm.desktop for display managers like xdm or SLiM.

Added:
  head/x11-wm/dwm/files/dwm.desktop.in   (contents, props changed)
Modified:
  head/x11-wm/dwm/Makefile

Modified: head/x11-wm/dwm/Makefile
==============================================================================
--- head/x11-wm/dwm/Makefile	Tue May 21 06:25:21 2019	(r502191)
+++ head/x11-wm/dwm/Makefile	Tue May 21 08:01:35 2019	(r502192)
@@ -3,6 +3,7 @@
 
 PORTNAME=	dwm
 DISTVERSION=	6.2
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://dl.suckless.org/${PORTNAME}/
 
@@ -27,8 +28,11 @@ MAKE_ARGS=	CC="${CC}" \
 		X11INC="${LOCALBASE}/include" \
 		X11LIB="${LOCALBASE}/lib"
 
+SUB_FILES=	dwm.desktop
+SUB_LIST=	COMMENT="${COMMENT}"
 PLIST_FILES=	bin/dwm \
-		man/man1/dwm.1.gz
+		man/man1/dwm.1.gz \
+		share/xsessions/dwm.desktop
 PORTDOCS=	README
 
 OPTIONS_DEFINE=	DMENUANDSTERM DOCS SUPERASMODKEY VOLUMECONTROL XINERAMA
@@ -67,6 +71,8 @@ post-configure:
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwm
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions
+	${INSTALL_DATA} ${WRKDIR}/dwm.desktop ${STAGEDIR}${PREFIX}/share/xsessions
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}

Added: head/x11-wm/dwm/files/dwm.desktop.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/dwm/files/dwm.desktop.in	Tue May 21 08:01:35 2019	(r502192)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+[Desktop Entry]
+Name=dwm
+Comment=%%COMMENT%%
+TryExec=dwm
+Exec=dwm
+Type=Application



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905210801.x4L81Zhx017422>