Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2013 02:51:32 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333052 - head/games/krank
Message-ID:  <201311070251.rA72pWdC065057@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Thu Nov  7 02:51:32 2013
New Revision: 333052
URL: http://svnweb.freebsd.org/changeset/ports/333052

Log:
  - Change Makefile header
  - Change maintainer email to @FreeBSD.org
  - Support STAGEDIR
  - Simplify post-extract
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/krank/Makefile

Modified: head/games/krank/Makefile
==============================================================================
--- head/games/krank/Makefile	Thu Nov  7 02:04:11 2013	(r333051)
+++ head/games/krank/Makefile	Thu Nov  7 02:51:32 2013	(r333052)
@@ -1,3 +1,4 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	krank
@@ -6,7 +7,7 @@ PORTREVISION=	4
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Little casual game
 
 LICENSE=	GPLv2
@@ -23,30 +24,24 @@ PORTDOCS=	CHANGELOG.txt README
 DESKTOP_ENTRIES="Krank" "${COMMENT}" "${PORTNAME}" \
 		"${PORTNAME}" "Game;ArcadeGame;" false
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-extract:
-	@${FIND} ${WRKSRC} -name .cvsignore -type f -print0 -or -name .DS_Store -type f -print0 | \
-		${XARGS} -0 ${RM} -rf
+	@${FIND} ${WRKSRC} -name .cvsignore -delete -or -name .DS_Store -delete
 
 post-patch:
 	${REINPLACE_CMD} -e 's|`dirname.*|${DATADIR}|' ${WRKSRC}/${PORTNAME}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/krank ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/krank ${STAGEDIR}${PREFIX}/bin/
 
-	${MKDIR} ${DATADIR}
 .for d in art fonts html levels sounds src
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/krank.iss ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/logo.xcf ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	${INSTALL_DATA} ${WRKSRC}/krank.iss ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/logo.xcf ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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