2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2006-03-15 11:45:00 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pysycache
|
|
|
|
PORTVERSION= 2.0
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 8
|
2006-03-15 11:45:00 +01:00
|
|
|
CATEGORIES= games python
|
|
|
|
MASTER_SITES= http://download.gna.org/py4childs/${PORTNAME}/v${PORTVERSION}/
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2014-07-02 20:22:39 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-03-15 11:45:00 +01:00
|
|
|
COMMENT= Educational software made in python
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
|
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= zip
|
2006-03-15 11:45:00 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
NO_BUILD= yes
|
2014-07-09 17:22:03 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-03-15 11:45:00 +01:00
|
|
|
SUB_FILES= pkg-message
|
2014-07-09 17:22:03 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2006-03-15 11:45:00 +01:00
|
|
|
|
|
|
|
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} -name '*.orig' -delete
|
|
|
|
@${FIND} ${WRKSRC} -name '*.bak' -delete
|
|
|
|
|
|
|
|
do-install:
|
2014-07-09 17:22:03 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/pysycache.py ${STAGEDIR}${PREFIX}/bin/pysycache.py
|
2006-03-15 11:45:00 +01:00
|
|
|
@${RM} ${WRKSRC}/pysycache.py
|
|
|
|
.for DIRE in fonts help images sounds themes-buttons themes-click themes-move
|
2014-07-09 17:22:03 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
|
2006-03-15 11:45:00 +01:00
|
|
|
@cd ${WRKSRC}/${DIRE} && \
|
2014-07-09 17:22:03 +02:00
|
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
|
2006-03-15 11:45:00 +01:00
|
|
|
.endfor
|
|
|
|
.for FILE in *.py *.pyc *.txt *.png
|
2014-07-09 17:22:03 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
|
2006-03-15 11:45:00 +01:00
|
|
|
.endfor
|
2014-07-09 17:22:03 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2006-03-15 11:45:00 +01:00
|
|
|
.for FILE in AUTHORS ChangeLog NEWS README
|
2014-07-09 17:22:03 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
2006-03-15 11:45:00 +01:00
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC}/doc/pysycache && \
|
2014-07-09 17:22:03 +02:00
|
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
|
2006-03-15 11:45:00 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|