Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2019 21:24:02 +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: r502236 - in head/x11-wm/hikari: . files
Message-ID:  <201905212124.x4LLO2CL041911@repo.freebsd.org>

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

Log:
  Add hikari.desktop for display/login managers.
  
  While here:
  - Include bsd.port.pre.mk before checking the value of WITH_DEBUG so that
    WITH_DEBUG_PORTS is respected.
  - Mention that the format of config.h may change across versions.
  
  PR:		238019
  Submitted by:	Alexander Sieg <alex@xanderio.de>

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

Modified: head/x11-wm/hikari/Makefile
==============================================================================
--- head/x11-wm/hikari/Makefile	Tue May 21 21:02:30 2019	(r502235)
+++ head/x11-wm/hikari/Makefile	Tue May 21 21:24:02 2019	(r502236)
@@ -2,6 +2,7 @@
 
 PORTNAME=	hikari
 DISTVERSION=	0.1.2
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	https://acmelabs.space/~raichoo/
 
@@ -20,11 +21,16 @@ USE_XORG=	xcb x11
 
 NO_WRKSUBDIR=	yes
 
+SUB_FILES=	hikari.desktop
+SUB_LIST=	COMMENT="${COMMENT}"
 PLIST_FILES=	bin/hikari \
-		man/man1/hikari.1.gz
+		man/man1/hikari.1.gz \
+		share/xsessions/hikari.desktop
 PORTDATA=	config.def.h
 PORTDOCS=	README.md
 
+.include <bsd.port.pre.mk>
+
 .if defined(WITH_DEBUG)
 ALL_TARGET=	debug
 .else
@@ -36,6 +42,7 @@ OPTIONS_DEFINE=	DOCS
 pre-everything::
 	@${ECHO_MSG} "You can build hikari with your own config.h using the HIKARI_CONF knob:"
 	@${ECHO_MSG} "make HIKARI_CONF=/path/to/hikari/config.h install clean"
+	@${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h files may not work."
 
 post-patch:
 .if defined(HIKARI_CONF)
@@ -50,9 +57,11 @@ do-install:
 	${INSTALL_MAN} ${WRKSRC}/hikari.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTDATA} ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions
+	${INSTALL_DATA} ${WRKDIR}/hikari.desktop ${STAGEDIR}${PREFIX}/share/xsessions
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

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



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