Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2014 04:15:49 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373745 - head/games/pysycache
Message-ID:  <201412020415.sB24FnMs063210@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Dec  2 04:15:49 2014
New Revision: 373745
URL: https://svnweb.freebsd.org/changeset/ports/373745
QAT: https://qat.redports.org/buildarchive/r373745/

Log:
  - Add LICENSE
  - Simplify installation
  - Drop @dirrm* from plist

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

Modified: head/games/pysycache/Makefile
==============================================================================
--- head/games/pysycache/Makefile	Tue Dec  2 04:15:39 2014	(r373744)
+++ head/games/pysycache/Makefile	Tue Dec  2 04:15:49 2014	(r373745)
@@ -11,40 +11,35 @@ DIST_SUBDIR=	${PORTNAME}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Educational software made in python
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
 
 USES=		python zip
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}
 SUB_FILES=	pkg-message
+
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/datas.py ${WRKSRC}/datas.py \
 		${WRKSRC}/datasclass.py ${WRKSRC}/pysybuttons.py ${WRKSRC}/pysyclick.py ${WRKSRC}/pysymove.py \
 		${WRKSRC}/pysycache.py
-	@${FIND} ${WRKSRC} -type d -name CVS -type d -print0 | ${XARGS} -0 ${RM} -R
+	@${FIND} ${WRKSRC} -type d -name CVS -print0 | ${XARGS} -0 ${RM} -R
 	@${FIND} ${WRKSRC} -name '*.orig' -delete
 	@${FIND} ${WRKSRC} -name '*.bak' -delete
 
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/pysycache.py ${STAGEDIR}${PREFIX}/bin/pysycache.py
+	${INSTALL_SCRIPT} ${WRKSRC}/pysycache.py ${STAGEDIR}${PREFIX}/bin/pysycache.py
 	@${RM} ${WRKSRC}/pysycache.py
-.for DIRE in fonts help images sounds themes-buttons themes-click themes-move
-	@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
-	@cd ${WRKSRC}/${DIRE} && \
-		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
-		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
-.endfor
-.for FILE in *.py *.pyc *.txt *.png
-	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
-.endfor
+	cd ${WRKSRC} && ${COPYTREE_SHARE} " \
+			fonts help images sounds themes-buttons themes-click themes-move \
+			*.py *.pyc *.txt *.png \
+		" ${STAGEDIR}${DATADIR}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for FILE in AUTHORS ChangeLog NEWS README
-	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
-.endfor
-	@cd ${WRKSRC}/doc/pysycache && \
-		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
-		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
+	cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog NEWS README ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc/pysycache && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/pysycache/pkg-plist
==============================================================================
--- head/games/pysycache/pkg-plist	Tue Dec  2 04:15:39 2014	(r373744)
+++ head/games/pysycache/pkg-plist	Tue Dec  2 04:15:49 2014	(r373745)
@@ -400,30 +400,3 @@ bin/pysycache.py
 %%PORTDOCS%%%%DOCSDIR%%/style.css
 %%PORTDOCS%%%%DOCSDIR%%/xxxx-off.png
 %%PORTDOCS%%%%DOCSDIR%%/xxxx-on.png
-@dirrm %%DATADIR%%/fonts
-@dirrm %%DATADIR%%/help/en_EN
-@dirrm %%DATADIR%%/help/fr_FR
-@dirrm %%DATADIR%%/help/it_IT
-@dirrm %%DATADIR%%/help/de
-@dirrm %%DATADIR%%/help/es_ES
-@dirrm %%DATADIR%%/help/pt_PT
-@dirrm %%DATADIR%%/help
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/themes-buttons/ice
-@dirrm %%DATADIR%%/themes-buttons/wolf
-@dirrm %%DATADIR%%/themes-buttons
-@dirrm %%DATADIR%%/themes-click/dinosaurs
-@dirrm %%DATADIR%%/themes-click
-@dirrm %%DATADIR%%/themes-move/number-en/cache
-@dirrm %%DATADIR%%/themes-move/number-en
-@dirrm %%DATADIR%%/themes-move/alphabet-en/cache
-@dirrm %%DATADIR%%/themes-move/alphabet-en
-@dirrm %%DATADIR%%/themes-move
-@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/en
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/fr
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/images/regles
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/images/faq
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
-%%PORTDOCS%%@dirrm %%DOCSDIR%%



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