Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2012 09:12:26 +0000 (UTC)
From:      Michael Scheidell <scheidell@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302986 - in head/misc/xdg-menu: . files
Message-ID:  <201208230912.q7N9CQMI094087@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: scheidell
Date: Thu Aug 23 09:12:26 2012
New Revision: 302986
URL: http://svn.freebsd.org/changeset/ports/302986

Log:
  - Makefile changed
  - OptionsNG
  - Removed script from Makefile
  
  PR:		ports/170755
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)

Added:
  head/misc/xdg-menu/files/
  head/misc/xdg-menu/files/xdg-menu.in   (contents, props changed)
Modified:
  head/misc/xdg-menu/Makefile   (contents, props changed)

Modified: head/misc/xdg-menu/Makefile
==============================================================================
--- head/misc/xdg-menu/Makefile	Thu Aug 23 09:08:52 2012	(r302985)
+++ head/misc/xdg-menu/Makefile	Thu Aug 23 09:12:26 2012	(r302986)
@@ -5,12 +5,12 @@
 # $FreeBSD$
 #
 
-PORTNAME=	menu
+PORTNAME=	xdg-menu
 PORTVERSION=	1.5
+PORTREVISION=	1
 CATEGORIES=	misc
-MASTER_SITES=	SF/xdg-menu/xdg-menu/${PORTVERSION}
-PKGNAMEPREFIX=	xdg-
-DISTNAME=	XDG-Menu-${PORTVERSION}
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+DISTNAME=	XDG-Menu-${DISTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	nemysis@gmx.ch
@@ -30,11 +30,14 @@ USE_PYTHON=	yes
 ALL_TARGET=
 NO_BUILD=	yes
 
-OPTIONS=	ROX	"Enable ROX panel applet support" no
+OPTIONS_DEFINE=	ROX
+ROX_DESC=	Enable ROX panel applet support
+
+SUB_FILES=	${PORTNAME}
 
 .include <bsd.port.options.mk>
 
-.if defined(WITHOUT_ROX)
+.if !${PORT_OPTIONS:MROX}
 post-patch:
 	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun
 	@${ECHO_MSG}
@@ -45,9 +48,8 @@ post-patch:
 
 do-install:
 # Scripts
-	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
-		./AppRun\n" > ${WRKDIR}/xdg-menu.sh
-	@${INSTALL_SCRIPT} ${WRKDIR}/xdg-menu.sh ${PREFIX}/bin/xdg-menu
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
+
 # Executable and Data
 	${MKDIR} ${DATADIR}
 	@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR}

Added: head/misc/xdg-menu/files/xdg-menu.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/xdg-menu/files/xdg-menu.in	Thu Aug 23 09:12:26 2012	(r302986)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "XDG-Menu: Starting up..."
+cd "%%DATADIR%%"
+./AppRun



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