import ports/games/py-chess, ok kmos@

Python-chess is a pure Python chess library with move generation and validation,
Polyglot opening book probing, PGN reading and writing, Gaviota tablebase
probing, Syzygy tablebase probing and XBoard/UCI engine communication.

Major port tweaks by kmos@
This commit is contained in:
tracey 2020-09-14 20:21:25 +00:00
parent 7e38ad44cf
commit df3ae2ee85
4 changed files with 60 additions and 0 deletions

28
games/py-chess/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/09/14 20:21:25 tracey Exp $
COMMENT = pure Python chess library
MODPY_EGG_VERSION = 0.31.4
DISTNAME = python-chess-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/^python-/py-/}
CATEGORIES = games
HOMEPAGE = https://github.com/niklasf/python-chess
# GPLv3+
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR = python3
# Tests not included in PyPI tarball
NO_TEST = Yes
.include <bsd.port.mk>

2
games/py-chess/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (python-chess-0.31.4.tar.gz) = H7Rrn9eRkzL8/jTfcoTljprblXnvRPJu2eM0POmzDQc=
SIZE (python-chess-0.31.4.tar.gz) = 157042

4
games/py-chess/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
A pure Python chess library with move generation and validation,
Polyglot opening book probing, PGN reading and writing, Gaviota
tablebase probing, Syzygy tablebase probing and XBoard/UCI engine
communication.

26
games/py-chess/pkg/PLIST Normal file
View File

@ -0,0 +1,26 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/09/14 20:21:25 tracey Exp $
lib/python${MODPY_VERSION}/site-packages/chess/
lib/python${MODPY_VERSION}/site-packages/chess/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}engine.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}gaviota.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}pgn.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}polyglot.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}svg.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}syzygy.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/${MODPY_PYCACHE}variant.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/chess/engine.py
lib/python${MODPY_VERSION}/site-packages/chess/gaviota.py
lib/python${MODPY_VERSION}/site-packages/chess/pgn.py
lib/python${MODPY_VERSION}/site-packages/chess/polyglot.py
lib/python${MODPY_VERSION}/site-packages/chess/py.typed
lib/python${MODPY_VERSION}/site-packages/chess/svg.py
lib/python${MODPY_VERSION}/site-packages/chess/syzygy.py
lib/python${MODPY_VERSION}/site-packages/chess/variant.py
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/python_chess-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt