Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 00:50:01 +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: r334467 - head/games/pyawale
Message-ID:  <201311210050.rAL0o1lC044812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Thu Nov 21 00:50:01 2013
New Revision: 334467
URL: http://svnweb.freebsd.org/changeset/ports/334467

Log:
  - Change maintainer email to @FreeBSD.org
  - Use pkg-plist instead of PLIST_FILES, PLIST_DIRS and PORTDATA
  - Add DOCS Option
  - Support STAGEDIR
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/pyawale/pkg-plist   (contents, props changed)
Modified:
  head/games/pyawale/Makefile

Modified: head/games/pyawale/Makefile
==============================================================================
--- head/games/pyawale/Makefile	Thu Nov 21 00:40:10 2013	(r334466)
+++ head/games/pyawale/Makefile	Thu Nov 21 00:50:01 2013	(r334467)
@@ -7,7 +7,7 @@ PORTREVISION=	4
 CATEGORIES=	games python
 MASTER_SITES=	http://download.gna.org/pyawale/
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	African board game
 
 LICENSE=	GPLv2
@@ -16,11 +16,8 @@ RUN_DEPENDS=	${PYGAME}
 
 USE_PYTHON=	yes
 
-PLIST_FILES=	bin/${PORTNAME} \
-		share/applications/${PORTNAME}.desktop \
-		share/pixmaps/${PORTNAME}.png
+SUB_FILES=	${PORTNAME}
 
-PORTDATA=	*
 PORTDOCS=	*
 
 DOCSRCDIR1=	${WRKSRC}
@@ -30,9 +27,8 @@ DOCSRCDIR2=	${WRKSRC}/docs
 DOCSDIR2=	${DOCSDIR}/docs
 DOC_FILES2=	*.rest *.html *.jpg
 
-SUB_FILES=	${PORTNAME}
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 post-patch:
@@ -45,15 +41,15 @@ do-build:
 	@${PYTHON_CMD} -O -m compileall ${WRKSRC}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-	${MKDIR} ${DATADIR}
-	@(cd ${WRKSRC}/src && ${COPYTREE_SHARE} \* ${DATADIR})
-	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.png ${PREFIX}/share/pixmaps
-	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.desktop ${PREFIX}/share/applications
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
-	${MKDIR} ${DOCSDIR2}
-	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-.endif
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@(cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+	@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
 .include <bsd.port.mk>

Added: head/games/pyawale/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pyawale/pkg-plist	Thu Nov 21 00:50:01 2013	(r334467)
@@ -0,0 +1,85 @@
+bin/pyawale
+share/applications/pyawale.desktop
+share/pixmaps/pyawale.png
+%%DATADIR%%/__init__.py
+%%DATADIR%%/__init__.pyc
+%%DATADIR%%/__init__.pyo
+%%DATADIR%%/awale.py
+%%DATADIR%%/awale.pyc
+%%DATADIR%%/awale.pyo
+%%DATADIR%%/images/awale_board_closed.png
+%%DATADIR%%/images/awale_board_empty.png
+%%DATADIR%%/images/awale_north_0.png
+%%DATADIR%%/images/awale_north_1.png
+%%DATADIR%%/images/awale_north_10.png
+%%DATADIR%%/images/awale_north_11.png
+%%DATADIR%%/images/awale_north_12.png
+%%DATADIR%%/images/awale_north_13.png
+%%DATADIR%%/images/awale_north_14.png
+%%DATADIR%%/images/awale_north_15.png
+%%DATADIR%%/images/awale_north_16.png
+%%DATADIR%%/images/awale_north_17.png
+%%DATADIR%%/images/awale_north_18.png
+%%DATADIR%%/images/awale_north_19.png
+%%DATADIR%%/images/awale_north_2.png
+%%DATADIR%%/images/awale_north_20.png
+%%DATADIR%%/images/awale_north_21.png
+%%DATADIR%%/images/awale_north_22.png
+%%DATADIR%%/images/awale_north_23.png
+%%DATADIR%%/images/awale_north_24.png
+%%DATADIR%%/images/awale_north_25.png
+%%DATADIR%%/images/awale_north_3.png
+%%DATADIR%%/images/awale_north_4.png
+%%DATADIR%%/images/awale_north_5.png
+%%DATADIR%%/images/awale_north_6.png
+%%DATADIR%%/images/awale_north_7.png
+%%DATADIR%%/images/awale_north_8.png
+%%DATADIR%%/images/awale_north_9.png
+%%DATADIR%%/images/awale_seed_0.png
+%%DATADIR%%/images/awale_seed_10d.png
+%%DATADIR%%/images/awale_seed_11d.png
+%%DATADIR%%/images/awale_seed_12d.png
+%%DATADIR%%/images/awale_seed_12d_13.png
+%%DATADIR%%/images/awale_seed_14d.png
+%%DATADIR%%/images/awale_seed_15d.png
+%%DATADIR%%/images/awale_seed_1d.png
+%%DATADIR%%/images/awale_seed_2c.png
+%%DATADIR%%/images/awale_seed_3b.png
+%%DATADIR%%/images/awale_seed_4D.png
+%%DATADIR%%/images/awale_seed_5d.png
+%%DATADIR%%/images/awale_seed_6c.png
+%%DATADIR%%/images/awale_seed_7b.png
+%%DATADIR%%/images/awale_seed_8e.png
+%%DATADIR%%/images/awale_seed_9d.png
+%%DATADIR%%/images/awale_south_0.png
+%%DATADIR%%/images/awale_south_1.png
+%%DATADIR%%/images/awale_south_10.png
+%%DATADIR%%/images/awale_south_11.png
+%%DATADIR%%/images/awale_south_12.png
+%%DATADIR%%/images/awale_south_13.png
+%%DATADIR%%/images/awale_south_14.png
+%%DATADIR%%/images/awale_south_15.png
+%%DATADIR%%/images/awale_south_16.png
+%%DATADIR%%/images/awale_south_17.png
+%%DATADIR%%/images/awale_south_18.png
+%%DATADIR%%/images/awale_south_19.png
+%%DATADIR%%/images/awale_south_2.png
+%%DATADIR%%/images/awale_south_20.png
+%%DATADIR%%/images/awale_south_21.png
+%%DATADIR%%/images/awale_south_22.png
+%%DATADIR%%/images/awale_south_23.png
+%%DATADIR%%/images/awale_south_24.png
+%%DATADIR%%/images/awale_south_25.png
+%%DATADIR%%/images/awale_south_3.png
+%%DATADIR%%/images/awale_south_4.png
+%%DATADIR%%/images/awale_south_5.png
+%%DATADIR%%/images/awale_south_6.png
+%%DATADIR%%/images/awale_south_7.png
+%%DATADIR%%/images/awale_south_8.png
+%%DATADIR%%/images/awale_south_9.png
+%%DATADIR%%/images/freesansbold.ttf
+%%DATADIR%%/pyawale.py
+%%DATADIR%%/pyawale.pyc
+%%DATADIR%%/pyawale.pyo
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%



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