svn commit: r303266 - head/games/cutemaze

Jason Helfman jgh at FreeBSD.org
Tue Aug 28 00:50:44 UTC 2012


Author: jgh
Date: Tue Aug 28 00:50:44 2012
New Revision: 303266
URL: http://svn.freebsd.org/changeset/ports/303266

Log:
  - data is required
  - use optionsNG for DOCS
  
  PR:	170725
  Submitted by:	maintainer, nemysis at gmx.ch

Modified:
  head/games/cutemaze/Makefile   (contents, props changed)

Modified: head/games/cutemaze/Makefile
==============================================================================
--- head/games/cutemaze/Makefile	Tue Aug 28 00:11:36 2012	(r303265)
+++ head/games/cutemaze/Makefile	Tue Aug 28 00:50:44 2012	(r303266)
@@ -7,13 +7,13 @@
 
 PORTNAME=	cutemaze
 PORTVERSION=	1.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	http://gottcode.org/${PORTNAME}/
 EXTRACT_SUFX=	-src.tar.bz2
 
 MAINTAINER=	nemysis at gmx.ch
-COMMENT=	Is a simple, top-down game in which mazes are randomly generated
+COMMENT=	A simple, top-down game in which mazes are randomly generated
 
 LICENSE=	GPLv3
 
@@ -26,6 +26,8 @@ MAKE_JOBS_SAFE=	yes
 PORTDATA=	*
 PORTDOCS=	ChangeLog README
 
+.include <bsd.port.options.mk>
+
 do-configure:
 	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
 		${QMAKE} ${QMAKEFLAGS}
@@ -34,6 +36,10 @@ do-install:
 # Executable
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 
+# Data
+	${MKDIR} ${DATADIR}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "preview themes" ${DATADIR})
+
 # Icons
 	${MKDIR} ${PREFIX}/share/icons/oxygen
 .for d in icons
@@ -46,14 +52,8 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop \
 		${PREFIX}/share/applications/
 
-# Data
-.if !defined (NOPORTDATA)
-	${MKDIR} ${DATADIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "preview themes" ${DATADIR})
-.endif
-
 # Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 .  for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}



More information about the svn-ports-all mailing list