2009-03-14 18:20:35 +01:00
|
|
|
PORTNAME= pysolfc
|
2022-10-14 07:47:56 +02:00
|
|
|
DISTVERSION= 2.18.0
|
2012-12-15 11:49:04 +01:00
|
|
|
CATEGORIES= games python
|
2018-04-29 04:28:52 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/PySolFC/${PYSOLFCDIR} \
|
2021-09-01 20:37:17 +02:00
|
|
|
SF/${PORTNAME}/PySolFC-Cardsets/minimal/:cardsets \
|
|
|
|
SF/${PORTNAME}/PySol-Music/${MUSICDIR}/:music
|
2018-04-29 04:28:52 +02:00
|
|
|
DISTFILES= ${PYSOLFCDIST} \
|
2021-09-01 20:37:17 +02:00
|
|
|
${CARDSETDIST}:cardsets \
|
|
|
|
${MUSICDIST}:music
|
2012-12-15 11:49:04 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
|
2019-02-01 19:55:18 +01:00
|
|
|
MAINTAINER= kai@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Solitaire game, written in Python and the successor of PySol
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://pysolfc.sourceforge.io/
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
LICENSE= GPLv2+ GPLv3+
|
2018-04-29 04:28:52 +02:00
|
|
|
LICENSE_COMB= multi
|
2021-09-22 19:33:16 +02:00
|
|
|
LICENSE_FILE_GPLv2+ = ${WRKDIR}/${CARDSETDIR}/cardset-2000/COPYRIGHT
|
|
|
|
LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING
|
|
|
|
LICENSE_DISTFILES_GPLv2+ = ${CARDSETDIST} ${MUSICDIST}
|
|
|
|
LICENSE_DISTFILES_GPLv3+ = ${PYSOLFCDIST}
|
2018-04-29 04:28:52 +02:00
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pysol-cards>0:games/py-pysol-cards@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}random2>=0:math/py-random2@${PY_FLAVOR} \
|
2018-04-29 04:28:52 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
|
2021-09-01 20:37:17 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
|
2018-04-29 04:28:52 +02:00
|
|
|
|
2021-01-05 21:53:59 +01:00
|
|
|
USES= python:3.6+ shebangfix tar:xz
|
2018-04-29 04:28:52 +02:00
|
|
|
USE_PYTHON= distutils noflavors autoplist
|
|
|
|
SHEBANG_FILES= data/themes/clearlooks/convert_imgs.sh
|
2016-01-17 13:46:43 +01:00
|
|
|
NO_ARCH= yes
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
|
2014-01-17 22:22:05 +01:00
|
|
|
PLIST_FILES= share/pixmaps/pysolfc.png
|
2009-03-14 18:20:35 +01:00
|
|
|
DATADIR= ${PREFIX}/share/PySolFC
|
2018-04-29 04:28:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PYSOLFCDIR}
|
2012-12-15 11:49:04 +01:00
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
OPTIONS_DEFINE= NLS PILLOW SOUND
|
|
|
|
OPTIONS_DEFAULT= PILLOW SOUND
|
2014-01-17 22:22:05 +01:00
|
|
|
OPTIONS_SUB= yes
|
2021-09-01 20:37:17 +02:00
|
|
|
|
|
|
|
PILLOW_DESC= Enhanced graphics support
|
|
|
|
|
2018-04-29 04:28:52 +02:00
|
|
|
NLS_USES= gettext
|
2012-12-15 11:49:04 +01:00
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
PILLOW_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
|
|
|
|
SOUND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game@${PY_FLAVOR}
|
|
|
|
|
2018-04-29 04:28:52 +02:00
|
|
|
PYSOLFCDIR= PySolFC-${DISTVERSION}
|
|
|
|
PYSOLFCDIST= ${PYSOLFCDIR}${EXTRACT_SUFX}
|
2022-05-14 06:41:09 +02:00
|
|
|
CARDSETDIR= PySolFC-Cardsets--Minimal-2.1.0
|
2021-09-01 20:37:17 +02:00
|
|
|
CARDSETDIST= ${CARDSETDIR}.tar.xz
|
|
|
|
MUSICDIR= PySol-Music-4.50
|
|
|
|
MUSICDIST= ${MUSICDIR:tl}.tar.xz
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/pysol.py ${WRKSRC}/pysolfc
|
|
|
|
@${REINPLACE_CMD} -e 's|pysol.py|pysolfc|' ${WRKSRC}/setup.py
|
2012-12-15 11:49:04 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \
|
|
|
|
-e 's|^Exec.*|Exec=${PORTNAME}|' \
|
|
|
|
${WRKSRC}/data/pysol.desktop
|
|
|
|
@${FIND} ${WRKDIR} -name .thumbnails -or -name .xvpics | \
|
2016-10-21 14:51:40 +02:00
|
|
|
${XARGS} ${RM} -r
|
2012-12-15 11:49:04 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
post-patch-NLS-on:
|
|
|
|
@${REINPLACE_CMD} -e 's|^#%%NLS%%||' ${WRKSRC}/setup.py
|
2016-01-17 13:46:43 +01:00
|
|
|
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
post-install:
|
2021-09-01 20:37:17 +02:00
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/pysol.png \
|
2014-01-17 22:22:05 +01:00
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
2018-06-24 21:22:02 +02:00
|
|
|
(cd ${WRKDIR}/${CARDSETDIR} && \
|
|
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
|
|
|
|
(cd ${WRKDIR}/${CARDSETDIR} && \
|
|
|
|
${FIND} . -type f | ${SED} -e 's|^./|${DATADIR_REL}/|' >> ${TMPPLIST})
|
PySolFC is a fork of PySol Solitaire containing more than 1000 solitaire
card games. Its features include modern look and feel, multiple cardsets
and tableau backgrounds, sound, unlimited undo, player statistics, a
hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.
WWW: http://pysolfc.sourceforge.net
Approved by: miwi (mentor)
2009-03-14 16:23:45 +01:00
|
|
|
|
2021-09-01 20:37:17 +02:00
|
|
|
post-install-SOUND-on:
|
|
|
|
(cd ${WRKDIR}/${MUSICDIR:tl}/data && \
|
|
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
|
|
|
|
(cd ${WRKDIR}/${MUSICDIR:tl}/data && \
|
|
|
|
${FIND} . -type f | ${SED} -e 's|^./|${DATADIR_REL}/|' >> ${TMPPLIST})
|
|
|
|
|
2020-03-24 20:54:57 +01:00
|
|
|
.include <bsd.port.mk>
|