Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2012 00:50:44 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303266 - head/games/cutemaze
Message-ID:  <201208280050.q7S0oigN083726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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}



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