diff options
author | scheidell <scheidell@FreeBSD.org> | 2012-08-23 17:12:26 +0800 |
---|---|---|
committer | scheidell <scheidell@FreeBSD.org> | 2012-08-23 17:12:26 +0800 |
commit | a2aa68d8e838bf0a6a84f277abd2a695ee88be84 (patch) | |
tree | cd5a6199a1d791b857e4215ecb6fa8f410ededde /misc | |
parent | 98deb07720a4657998cca2437b0eaaff3d884cc9 (diff) | |
download | freebsd-ports-gnome-a2aa68d8e838bf0a6a84f277abd2a695ee88be84.tar.gz freebsd-ports-gnome-a2aa68d8e838bf0a6a84f277abd2a695ee88be84.tar.zst freebsd-ports-gnome-a2aa68d8e838bf0a6a84f277abd2a695ee88be84.zip |
- Makefile changed
- OptionsNG
- Removed script from Makefile
PR: ports/170755
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/xdg-menu/Makefile | 20 | ||||
-rw-r--r-- | misc/xdg-menu/files/xdg-menu.in | 7 |
2 files changed, 18 insertions, 9 deletions
diff --git a/misc/xdg-menu/Makefile b/misc/xdg-menu/Makefile index c0d76ea2b184..17d787b26f59 100644 --- a/misc/xdg-menu/Makefile +++ b/misc/xdg-menu/Makefile @@ -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} diff --git a/misc/xdg-menu/files/xdg-menu.in b/misc/xdg-menu/files/xdg-menu.in new file mode 100644 index 000000000000..c485e187cafa --- /dev/null +++ b/misc/xdg-menu/files/xdg-menu.in @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ + +echo "XDG-Menu: Starting up..." +cd "%%DATADIR%%" +./AppRun |