svn commit: r531116 - in head/games/py-pychess: . files
Mikhail Teterin
mi at FreeBSD.org
Wed Apr 8 13:39:45 UTC 2020
Author: mi
Date: Wed Apr 8 13:39:43 2020
New Revision: 531116
URL: https://svnweb.freebsd.org/changeset/ports/531116
Log:
Bring pychess -- new version -- back from the void.
Take maintainership.
PR: 245379
Submitted by: self
Added:
head/games/py-pychess/
- copied from r371287, head/games/py-pychess/
head/games/py-pychess/files/
head/games/py-pychess/files/patch-setup (contents, props changed)
head/games/py-pychess/pkg-message (contents, props changed)
Modified:
head/games/py-pychess/Makefile
head/games/py-pychess/distinfo
Modified: head/games/py-pychess/Makefile
==============================================================================
--- head/games/py-pychess/Makefile Mon Oct 20 17:36:02 2014 (r371287)
+++ head/games/py-pychess/Makefile Wed Apr 8 13:39:43 2020 (r531116)
@@ -2,63 +2,27 @@
# $FreeBSD$
PORTNAME= pychess
-PORTVERSION= 0.10.1
-PORTREVISION= 1
+PORTVERSION= 1.0.0
CATEGORIES= games python
-MASTER_SITES= http://www.pychess.org/download/
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+MASTER_SITES= https://github.com/pychess/pychess/releases/download/${PORTVERSION}/
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= mi at aldan.algebra.com
COMMENT= GTK chess client written in Python
-LICENSE= GPLv2 # (or later)
+LICENSE= GPLv3
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=3-2.5.1_1:${PORTSDIR}/databases/py-sqlite3
+COMMON_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sqlalchemy*>1.:databases/py-sqlalchemy13@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}psutil*>0.:sysutils/py-psutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}websockets*>7.:devel/py-websockets@${PY_FLAVOR}
+RUN_DEPENDS= ${COMMON_DEPENDS}
+BUILD_DEPENDS= ${COMMON_DEPENDS}
-USES= desktop-file-utils gettext python
-USE_GNOME= pygnomedesktop
+USES= desktop-file-utils display gettext python:3.3+
+USE_GSTREAMER1= yes
USE_PYTHON= distutils autoplist
+USE_GNOME= gtksourceview3:run glib20 gtk30 librsvg2 introspection
INSTALLS_ICONS= yes
-
-OPTIONS_DEFINE= PYGSTREAMER
-OPTIONS_GROUP= ENGINES
-OPTIONS_GROUP_ENGINES= CRAFTY GNUCHESS PHALANX SJENG STOCKFISH
-
-CRAFTY_DESC= Use crafty
-CRAFTY_RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty
-ENGINES_DESC= Chess Engines
-GNUCHESS_DESC= Use gnuchess
-GNUCHESS_RUN_DEPENDS= gnuchess:${PORTSDIR}/games/gnuchess
-PHALANX_DESC= Use phalanx
-PHALANX_RUN_DEPENDS= phalanx:${PORTSDIR}/games/phalanx
-SJENG_DESC= Use sjeng
-SJENG_RUN_DEPENDS+= sjeng:${PORTSDIR}/games/sjeng
-STOCKFISH_DESC= Use stockfish
-STOCKFISH_RUN_DEPENDS= stockfish:${PORTSDIR}/games/stockfish
-PYGSTREAMER_DESC= Install gst-python for audio support
-PYGSTREAMER_USE= gstreamer=python
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|share/man|man|' ${WRKSRC}/setup.py
- @${REINPLACE_CMD} -e \
- 's|gtk.gdk.threads_init()|gobject.threads_init()|' \
- ${WRKSRC}/lib/pychess/Main.py
- @${REINPLACE_CMD} -e \
- '/^#!/d' ${WRKSRC}/lib/pychess/Players/PyChess.py
- @${REINPLACE_CMD} -e \
- 's|"games"|""| ; \
- s|"share/games"|""| ; \
- s|"local/share"|""| ; \
- s|"local/games"|""| ; \
- s|"local/share/games"|""|' \
- ${WRKSRC}/lib/pychess/System/prefix.py
- @${REINPLACE_CMD} -e \
- 's|/usr/share|${PREFIX}/share|' \
- ${WRKSRC}/lib/pychess/widgets/newGameDialog.py
- @${REINPLACE_CMD} -e \
- 's|"/usr/share/sounds",|| ; \
- s|/usr/local/share|${LOCALBASE}/share|' \
- ${WRKSRC}/lib/pychess/widgets/preferencesDialog.py
+PYDISTUTILS_INSTALLNOSINGLE= nope
.include <bsd.port.mk>
Modified: head/games/py-pychess/distinfo
==============================================================================
--- head/games/py-pychess/distinfo Mon Oct 20 17:36:02 2014 (r371287)
+++ head/games/py-pychess/distinfo Wed Apr 8 13:39:43 2020 (r531116)
@@ -1,2 +1,3 @@
-SHA256 (pychess-0.10.1.tar.gz) = 8a8ac9fc6a4605d189a9728f55183130b6a304cbf2dc5b2e923297303fe4ae8a
-SIZE (pychess-0.10.1.tar.gz) = 1939605
+TIMESTAMP = 1586042912
+SHA256 (pychess-1.0.0.tar.gz) = cf6c326068b11287cb656eb30ad99a3026b7827d33e6a73b7d2cc09317dddabc
+SIZE (pychess-1.0.0.tar.gz) = 12853354
Added: head/games/py-pychess/files/patch-setup
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/py-pychess/files/patch-setup Wed Apr 8 13:39:43 2020 (r531116)
@@ -0,0 +1,9 @@
+--- setup.py 2019-03-10 06:22:01.000000000 -0400
++++ setup.py 2020-04-05 12:09:51.478233000 -0400
+@@ -343,5 +343,4 @@
+ scripts=['pychess'],
+ options={"build_exe": build_exe_options,
+- "bdist_msi": bdist_msi_options},
+- executables=executables
++ "bdist_msi": bdist_msi_options}
+ )
Added: head/games/py-pychess/pkg-message
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/py-pychess/pkg-message Wed Apr 8 13:39:43 2020 (r531116)
@@ -0,0 +1,10 @@
+PyChess can let you play against others online.
+
+To play against your own computer, install one or more of the
+game-engines:
+
+ * games/crafty
+ * games/gnuchess
+ * games/phalanx
+ * games/sjeng
+ * games/stockfish
More information about the svn-ports-head
mailing list