Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2012 06:47:12 +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: r304260 - head/games/krank
Message-ID:  <201209140647.q8E6lCUx063033@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Fri Sep 14 06:47:12 2012
New Revision: 304260
URL: http://svn.freebsd.org/changeset/ports/304260

Log:
  - adjust run dependencies
  - DATA is required
  - adopt optionsNG for DOCS
  
  PR:		170732
  Submitted by:	maintainer, nemysis@gmx.ch

Modified:
  head/games/krank/Makefile

Modified: head/games/krank/Makefile
==============================================================================
--- head/games/krank/Makefile	Fri Sep 14 06:46:47 2012	(r304259)
+++ head/games/krank/Makefile	Fri Sep 14 06:47:12 2012	(r304260)
@@ -1,54 +1,51 @@
-# New Ports collection makefile for:	krank
-# Date created:		2012-04-20
-# Whom:			nemysis@gmx.ch
-#
 # $FreeBSD$
-#
 
 PORTNAME=	krank
 PORTVERSION=	07
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	nemysis@gmx.ch
-COMMENT=	Krank is a little casual game
+COMMENT=	A little casual game
 
 LICENSE=	GPLv2
 
-RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
-		${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}game>=0:${PORTSDIR}/devel/py-game \
+		${PYNUMPY}
 
 USE_BZIP2=	yes
 USE_PYTHON=	yes
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/krank \
-		share/pixmaps/Krank.png
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
 
 PORTDATA=	*
 PORTDOCS=	CHANGELOG.txt README
 
 post-patch:
-	${REINPLACE_CMD} -e 's|`dirname.*|${DATADIR}|' ${WRKSRC}/krank
+	${REINPLACE_CMD} -e 's|`dirname.*|${DATADIR}|' ${WRKSRC}/${PORTNAME}
+
+.include <bsd.port.options.mk>
 
 do-install:
-# Wrapper script
+# Scripts
 	${INSTALL_SCRIPT} ${WRKSRC}/krank ${PREFIX}/bin
 
-post-install:
 # Data
-.if !defined (NOPORTDATA)
 	${MKDIR} ${DATADIR}
 .  for d in art fonts html levels sounds src
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
 .  endfor
 	${INSTALL_DATA} ${WRKSRC}/krank.iss ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/logo.xcf ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png ${PREFIX}/share/pixmaps/Krank.png
-.endif
+
+# Pixmaps
+	${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
 
 # 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?201209140647.q8E6lCUx063033>