openbsd-ports/games/pysol/Makefile
sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

41 lines
991 B
Makefile

# $OpenBSD: Makefile,v 1.13 2021/02/23 19:39:23 sthen Exp $
COMMENT = solitaire card games collection
MODPY_EGG_VERSION = 2.6.4
DISTNAME = PySolFC-${MODPY_EGG_VERSION}
PKGNAME = pysol-${MODPY_EGG_VERSION}
CATEGORIES = games
REVISION = 2
HOMEPAGE = http://pysolfc.sourceforge.net/
# GPLv3+
PERMIT_PACKAGE = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pysolfc/}
EXTRACT_SUFX = .tar.xz
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
PySolFC-Cardsets-2.0.tar.bz2
MODULES = lang/python \
x11/gnome
MODGNOME_TOOLS = desktop-file-utils gtk-update-icon-cache
RUN_DEPENDS = ${MODPY_TKINTER_DEPENDS} \
devel/py-six${MODPY_FLAVOR} \
devel/pygame${MODPY_FLAVOR} \
graphics/py-Pillow${MODPY_FLAVOR}
# needs pycotap (not ported), p5-Moo, py-gtk - and gmake
NO_TEST = Yes
#USE_GMAKE = Yes
#pre-test:
# ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
post-install:
mv ${PREFIX}/bin/pysol{.py,}
mv ${WRKDIR}/PySolFC-Cardsets-2.0/* ${PREFIX}/share/PySolFC/
.include <bsd.port.mk>