Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2016 02:50:54 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415372 - head/misc/xdg-menu
Message-ID:  <201605170250.u4H2osK5048775@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue May 17 02:50:53 2016
New Revision: 415372
URL: https://svnweb.freebsd.org/changeset/ports/415372

Log:
  - Simplify MASTER_SITES
  - Clarify LICENSE
  - Add LICENSE_FILE
  - Add NO_ARCH
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/misc/xdg-menu/Makefile

Modified: head/misc/xdg-menu/Makefile
==============================================================================
--- head/misc/xdg-menu/Makefile	Tue May 17 02:45:35 2016	(r415371)
+++ head/misc/xdg-menu/Makefile	Tue May 17 02:50:53 2016	(r415372)
@@ -5,7 +5,7 @@ PORTNAME=	xdg-menu
 PORTVERSION=	1.5
 PORTREVISION=	3
 CATEGORIES=	misc
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
+MASTER_SITES=	SF \
 		SF/nemysisfreebsdp/${CATEGORIES}/:icons
 DISTFILES=	XDG-Menu-${DISTVERSION}.tgz \
 		${PORTNAME}.png:icons
@@ -15,7 +15,8 @@ EXTRACT_ONLY=	XDG-Menu-${DISTVERSION}.tg
 MAINTAINER=	horia@racoviceanu.com
 COMMENT=	ROX panel applet that displays an applications menu button
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/Help/COPYING
 
 RUN_DEPENDS=	${LOCALBASE}/bin/rox:x11-fm/rox-filer \
 		${PYTHON_PKGNAMEPREFIX}xdg>=0:devel/py-xdg \
@@ -26,6 +27,7 @@ DATADIR=	${PREFIX}/apps/XDG-Menu
 
 USES=		python
 INSTALLS_ICONS=	yes
+NO_ARCH=	yes
 
 PORTDOCS=	*
 
@@ -37,19 +39,16 @@ ROX_DESC=	Enable ROX panel applet suppor
 
 SUB_FILES=	${PORTNAME}
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -i '' 's|/usr/lib|../../lib|' ${WRKSRC}/findrox.py
 
-.if ! ${PORT_OPTIONS:MROX}
+post-patch-ROX-off:
 	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' \
 		${WRKSRC}/AppRun
 	@${ECHO_MSG}
 	@${ECHO_MSG} "You have not enabled ROX panel applet support"
 	@${ECHO_MSG}
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
-.endif
 
 do-build:
 	@${PYTHON_CMD} -m compileall ${WRKSRC}
@@ -64,6 +63,7 @@ do-install:
 
 	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
 
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/Help/|} ${STAGEDIR}${DOCSDIR}
 



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