Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 20:51:43 +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: r333789 - in head/games/xmines: . files
Message-ID:  <201311142051.rAEKphET084181@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Thu Nov 14 20:51:43 2013
New Revision: 333789
URL: http://svnweb.freebsd.org/changeset/ports/333789

Log:
  - Add stage support
  - Add DOCS option

Modified:
  head/games/xmines/Makefile
  head/games/xmines/files/patch-aa
  head/games/xmines/pkg-plist

Modified: head/games/xmines/Makefile
==============================================================================
--- head/games/xmines/Makefile	Thu Nov 14 20:36:55 2013	(r333788)
+++ head/games/xmines/Makefile	Thu Nov 14 20:51:43 2013	(r333789)
@@ -17,13 +17,10 @@ CFLAGS+=	-Wno-error=return-type
 
 PORTDOCS=	README
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/xmines/files/patch-aa
==============================================================================
--- head/games/xmines/files/patch-aa	Thu Nov 14 20:36:55 2013	(r333788)
+++ head/games/xmines/files/patch-aa	Thu Nov 14 20:51:43 2013	(r333789)
@@ -36,6 +36,6 @@
  install:
 -	install -g games -o games -m 0664  scores/scores $(SCOREFILES)/xbomb-scores
 -	install -g games -o games -m 2755 xbombs $(BIN) 
-+	mkdir -p $(SCOREFILES)
-+	${INSTALL} -g games -o games -m 0666 scores/scores $(SCOREFILES)/scores
-+	${INSTALL} -s -g games -o games -m 0755 xmines $(BIN)
++	mkdir -p ${DESTDIR}$(SCOREFILES)
++	${INSTALL} -m 0666 scores/scores ${DESTDIR}$(SCOREFILES)/scores
++	${INSTALL} -s -m 0755 xmines ${DESTDIR}$(BIN)

Modified: head/games/xmines/pkg-plist
==============================================================================
--- head/games/xmines/pkg-plist	Thu Nov 14 20:36:55 2013	(r333788)
+++ head/games/xmines/pkg-plist	Thu Nov 14 20:51:43 2013	(r333789)
@@ -1,3 +1,7 @@
+@group games
+@owner games
 bin/xmines
 %%DATADIR%%/scores
+@owner
+@group
 @dirrm %%DATADIR%%



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