Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2013 00:30:27 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333458 - head/games/seabattle
Message-ID:  <201311110030.rAB0URPe008854@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Nov 11 00:30:27 2013
New Revision: 333458
URL: http://svnweb.freebsd.org/changeset/ports/333458

Log:
  - Add stage support
  - Add DOCS option

Modified:
  head/games/seabattle/Makefile
  head/games/seabattle/pkg-plist

Modified: head/games/seabattle/Makefile
==============================================================================
--- head/games/seabattle/Makefile	Sun Nov 10 23:31:45 2013	(r333457)
+++ head/games/seabattle/Makefile	Mon Nov 11 00:30:27 2013	(r333458)
@@ -12,18 +12,13 @@ MASTER_SITE_SUBDIR=	games/strategy
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Curses based battleship type game
 
-PORTDOCS=	readme.txt
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/seabattle ${PREFIX}/bin
-	@${MKDIR} ${PREFIX}/share/seabattle
-	${INSTALL_DATA} ${WRKSRC}/*.au ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/seabattle ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/seabattle
+	${INSTALL_DATA} ${WRKSRC}/*.au ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/seabattle/pkg-plist
==============================================================================
--- head/games/seabattle/pkg-plist	Sun Nov 10 23:31:45 2013	(r333457)
+++ head/games/seabattle/pkg-plist	Mon Nov 11 00:30:27 2013	(r333458)
@@ -1,8 +1,10 @@
 bin/seabattle
+%%PORTDOCS%%%%DOCSDIR%%/readme.txt
 %%DATADIR%%/hit1.au
 %%DATADIR%%/hit2.au
 %%DATADIR%%/miss1.au
 %%DATADIR%%/miss2.au
 %%DATADIR%%/opening.au
 %%DATADIR%%/sunkit.au
-@dirrm %%DATADIR%%
+@dirrmtry %%DATADIR%%
+@dirrmtry %%PORTDOCS%%%%DOCSDIR%%



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