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
|
|
|
# $FreeBSD$
|
|
|
|
|
2009-03-14 18:20:35 +01:00
|
|
|
PORTNAME= pysolfc
|
2018-06-24 21:22:02 +02:00
|
|
|
DISTVERSION= 2.4.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} \
|
|
|
|
SF/${PORTNAME}/PySolFC-Cardsets/${CARDSETDIR}:cardsets
|
|
|
|
DISTFILES= ${PYSOLFCDIST} \
|
|
|
|
${CARDSETDIST}:cardsets
|
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
|
|
|
|
2018-04-29 04:28:52 +02:00
|
|
|
MAINTAINER= freebsd_ports@k-worx.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Solitaire game, written in Python and the successor of PySol
|
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
|
|
|
|
2018-04-29 04:28:52 +02:00
|
|
|
LICENSE= GPLv2+ GPLv3+ MIT PCW PD UCP UCJ ULG
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}random2>=0:math/py-random2@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
|
|
|
|
|
|
|
|
LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING
|
|
|
|
LICENSE_DISTFILES_GPLv3+ = ${PYSOLFCDIST}
|
|
|
|
|
|
|
|
LICENSE_FILE_MIT= ${WRKDIR}/${CARDSETDIR}/cardset-spider/COPYRIGHT
|
|
|
|
LICENSE_DISTFILES_MIT= ${CARDSETDIST}
|
|
|
|
|
|
|
|
# This applies also to following cardsets:
|
|
|
|
# - ${WRKDIR}/${CARDSETDIR}/cardset-rangoon-e/COPYRIGHT
|
|
|
|
# - ${WRKDIR}/${CARDSETDIR}/cardset-rangoon-r/COPYRIGHT
|
|
|
|
LICENSE_FILE_PCW= ${WRKDIR}/${CARDSETDIR}/cardset-rangoon-d/COPYRIGHT
|
|
|
|
LICENSE_NAME_PCW= Postcardware
|
|
|
|
LICENSE_PERMS_PCW= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
|
|
|
|
LICENSE_DISTFILES_PCW= ${CARDSETDIST}
|
|
|
|
|
|
|
|
LICENSE_FILE_PD= ${WRKDIR}/${CARDSETDIR}/cardset-tksol/COPYRIGHT
|
|
|
|
LICENSE_DISTFILES_PD= ${CARDSETDIST}
|
|
|
|
|
|
|
|
LICENSE_FILE_UCP= ${WRKDIR}/${CARDSETDIR}/cardset-patience/COPYRIGHT
|
|
|
|
LICENSE_NAME_UCP= Unknown Copyright / Cardset "Patience"
|
|
|
|
LICENSE_PERMS_UCP= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
|
|
|
LICENSE_DISTFILES_UCP= ${CARDSETDIST}
|
|
|
|
|
|
|
|
LICENSE_FILE_UCJ= ${WRKDIR}/${CARDSETDIR}/cardset-jacoby/COPYRIGHT
|
|
|
|
LICENSE_NAME_UCJ= Unknown Copyright / Cardset "Jacoby"
|
|
|
|
LICENSE_PERMS_UCJ= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
|
|
|
LICENSE_DISTFILES_UCJ= ${CARDSETDIST}
|
|
|
|
|
|
|
|
LICENSE_FILE_ULG= ${WRKDIR}/${CARDSETDIR}/cardset-greywyvern/COPYRIGHT
|
|
|
|
LICENSE_NAME_ULG= Unknown License / Cardset "Greywyvern"
|
|
|
|
LICENSE_PERMS_ULG= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
|
|
|
LICENSE_DISTFILES_ULG= ${CARDSETDIST}
|
|
|
|
|
|
|
|
# The rest of the cardsets are licensed with the GPLv+2
|
|
|
|
LICENSE_FILE_GPLv2+ = ${WRKDIR}/${CARDSETDIR}/cardset-1567/COPYRIGHT
|
|
|
|
LICENSE_DISTFILES_GPLv2+ = ${CARDSETDIST}
|
|
|
|
|
|
|
|
USES= python shebangfix tar:xz
|
|
|
|
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
|
|
|
|
2018-06-24 21:22:02 +02:00
|
|
|
OPTIONS_DEFINE= NLS
|
2014-01-17 22:22:05 +01:00
|
|
|
OPTIONS_SUB= yes
|
2018-04-29 04:28:52 +02:00
|
|
|
NLS_USES= gettext
|
2012-12-15 11:49:04 +01:00
|
|
|
|
2018-04-29 04:28:52 +02:00
|
|
|
PYSOLFCDIR= PySolFC-${DISTVERSION}
|
|
|
|
PYSOLFCDIST= ${PYSOLFCDIR}${EXTRACT_SUFX}
|
|
|
|
CARDSETDIR= PySolFC-Cardsets-2.0
|
|
|
|
CARDSETDIST= ${CARDSETDIR}.tar.bz2
|
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
|
|
|
|
|
2016-01-17 13:46:43 +01:00
|
|
|
post-patch-NLS-off:
|
|
|
|
@${REINPLACE_CMD} -e "s|for l in ('ru', 'ru_RU')|for l in ()|" \
|
|
|
|
${WRKSRC}/setup.py
|
|
|
|
|
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:
|
2014-01-17 22:22:05 +01:00
|
|
|
${LN} -s ${PREFIX}/share/icons/pysol01.png \
|
|
|
|
${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
|
|
|
|
2012-12-15 11:49:04 +01:00
|
|
|
.include <bsd.port.mk>
|