mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pysycache
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 8
|
|
CATEGORIES= games python
|
|
MASTER_SITES= http://download.gna.org/py4childs/${PORTNAME}/v${PORTVERSION}/
|
|
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: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 -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
|
|
@${RM} ${WRKSRC}/pysycache.py
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} " \
|
|
fonts help images sounds themes-buttons themes-click themes-move \
|
|
*.py *.pyc *.txt *.png \
|
|
" ${STAGEDIR}${DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog NEWS README ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/doc/pysycache && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|