2013-09-20 19:36:33 +02:00
|
|
|
# Created by: bruno
|
2004-07-14 16:08:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= childsplay
|
2015-05-07 12:04:43 +02:00
|
|
|
PORTVERSION= 2.6.5
|
2016-12-13 20:47:24 +01:00
|
|
|
PORTREVISION= 2
|
2004-07-14 16:08:47 +02:00
|
|
|
CATEGORIES= games
|
2014-08-31 16:34:08 +02:00
|
|
|
MASTER_SITES= SAVANNAH
|
2004-07-14 16:08:47 +02:00
|
|
|
|
2013-11-25 21:18:52 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-07-14 16:08:47 +02:00
|
|
|
COMMENT= Educative games for children
|
|
|
|
|
2014-12-24 12:58:26 +01:00
|
|
|
LICENSE= GPLv3 # only
|
|
|
|
LICENSE_FILE= ${WRKSRC}/gpl-3.0.txt
|
2013-12-19 19:37:10 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game
|
2016-12-13 20:47:24 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10 \
|
2016-04-01 16:00:51 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game
|
2004-07-14 16:08:47 +02:00
|
|
|
|
2005-05-07 23:32:55 +02:00
|
|
|
NO_BUILD= yes
|
2004-07-14 16:08:47 +02:00
|
|
|
|
2014-08-31 16:34:08 +02:00
|
|
|
USES= gettext shebangfix tar:tgz python:2
|
2013-12-19 19:37:10 +01:00
|
|
|
USE_GNOME= pygtk2
|
|
|
|
|
2013-11-25 21:18:52 +01:00
|
|
|
SHEBANG_FILES= childsplay.py
|
2014-08-31 16:34:08 +02:00
|
|
|
.for i in buttons funcs text dialogs gtk_widgets base
|
|
|
|
SHEBANG_FILES+= SPWidgets/$i.py
|
|
|
|
.endfor
|
2013-11-25 21:18:52 +01:00
|
|
|
|
2013-12-19 19:37:10 +01:00
|
|
|
DESKTOP_ENTRIES="Childsplay" "" "" "${PORTNAME}" "Game;Education;" ""
|
2004-07-14 16:08:47 +02:00
|
|
|
|
2014-08-31 16:34:08 +02:00
|
|
|
CHILDSPLAYDIR= ${PYTHONPREFIX_SITELIBDIR}/childsplay
|
|
|
|
|
2004-07-14 16:08:47 +02:00
|
|
|
post-patch:
|
2013-12-19 19:37:10 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/NoGtk/s|True|False|' ${WRKSRC}/SPConstants.py
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/local|${PREFIX}|' ${WRKSRC}/pangofont.py
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${ECHO_CMD} "#!${SH}" > ${WRKDIR}/childsplay.sh
|
|
|
|
@${ECHO_CMD} >> ${WRKDIR}/childsplay.sh
|
2014-08-31 16:34:08 +02:00
|
|
|
@${ECHO_CMD} 'cd "${CHILDSPLAYDIR}"' >> ${WRKDIR}/childsplay.sh
|
2016-10-17 06:00:20 +02:00
|
|
|
@${ECHO_CMD} 'exec ${PYTHON_CMD} childsplay.py "$$@"' \
|
|
|
|
>> ${WRKDIR}/childsplay.sh
|
2013-12-19 19:37:10 +01:00
|
|
|
|
|
|
|
do-install:
|
2016-10-17 06:00:20 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/childsplay.sh \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/childsplay
|
2014-08-31 16:34:08 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${CHILDSPLAYDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${CHILDSPLAYDIR}
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "SPWidgets alphabetsounds lib" \
|
|
|
|
${STAGEDIR}${CHILDSPLAYDIR})
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${STAGEDIR}${PREFIX}/share)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sp_content.db ${STAGEDIR}${CHILDSPLAYDIR}
|
2013-12-19 19:37:10 +01:00
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
|
|
|
|
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
|
2004-07-14 16:08:47 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|