38308bbce8
- Remove FLAVOR from py-docutils dependency in comms/uhd, in this case it needs the rst2html command, not the docutils module - Mark some ports as not compatible with python3
75 lines
2.3 KiB
Makefile
75 lines
2.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pysolfc
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 7
|
|
CATEGORIES= games python
|
|
MASTER_SITES= SF/${PORTNAME}/PySolFC/PySolFC-${PORTVERSION} \
|
|
SF/${PORTNAME}/PySolFC-Cardsets/PySolFC-Cardsets-${PORTVERSION}:cardsets
|
|
DISTFILES= PySolFC-${DISTVERSION}${EXTRACT_SUFX}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Solitaire game, written in Python and the successor of PySol
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR}
|
|
|
|
USES= python:2.7 shebangfix tar:bzip2
|
|
USE_PYTHON= autoplist distutils
|
|
NO_ARCH= yes
|
|
SHEBANG_FILES= data/themes/clearlooks/create_imgs.py
|
|
|
|
PLIST_FILES= share/pixmaps/pysolfc.png
|
|
DATADIR= ${PREFIX}/share/PySolFC
|
|
WRKSRC= ${WRKDIR}/PySolFC-${PORTVERSION}
|
|
PORTDOCS= README
|
|
|
|
CARDSET_DUPS= 2000 crystal-mahjongg dashavatara-ganjifa dondorf \
|
|
gnome-mahjongg-1 hexadeck kintengu matrix mughal-ganjifa \
|
|
oxymoron standard tuxedo vienna-2k
|
|
|
|
OPTIONS_DEFINE= CARDSETS DOCS NLS
|
|
CARDSETS_DESC= Install additional cardsets
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
CARDSETS_DISTFILES= PySolFC-Cardsets-${DISTVERSION}${EXTRACT_SUFX}:cardsets
|
|
NLS_USES= gettext
|
|
|
|
post-patch:
|
|
@${MV} ${WRKSRC}/pysol.py ${WRKSRC}/pysolfc
|
|
@${REINPLACE_CMD} -e 's|pysol.py|pysolfc|' ${WRKSRC}/setup.py
|
|
@${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \
|
|
-e 's|^Exec.*|Exec=${PORTNAME}|' \
|
|
${WRKSRC}/data/pysol.desktop
|
|
@${FIND} ${WRKDIR} -name .thumbnails -or -name .xvpics | \
|
|
${XARGS} ${RM} -r
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
post-patch-NLS-off:
|
|
@${REINPLACE_CMD} -e "s|for l in ('ru', 'ru_RU')|for l in ()|" \
|
|
${WRKSRC}/setup.py
|
|
|
|
post-install:
|
|
${LN} -s ${PREFIX}/share/icons/pysol01.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
post-install-CARDSETS-on:
|
|
.for cdir in ${CARDSET_DUPS}
|
|
@${RM} -r ${WRKDIR}/PySolFC-Cardsets-${PORTVERSION}/cardset-${cdir}
|
|
.endfor
|
|
@cd ${WRKDIR}/PySolFC-Cardsets-${PORTVERSION} && \
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
|
|
@cd ${WRKDIR}/PySolFC-Cardsets-${PORTVERSION} && \
|
|
${FIND} . -type f | ${SED} -e 's|^./|${DATADIR_REL}/|' >> ${TMPPLIST}
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|