View | Details | Raw Unified | Return to bug 245379 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-50 / +14 lines)
Lines 2-64 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	pychess
4
PORTNAME=	pychess
5
PORTVERSION=	0.10.1
5
PORTVERSION=	1.0.0
6
PORTREVISION=	1
7
CATEGORIES=	games python
6
CATEGORIES=	games python
8
MASTER_SITES=	http://www.pychess.org/download/
7
MASTER_SITES=	https://github.com/pychess/pychess/releases/download/${PORTVERSION}/
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
8
11
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	mi@aldan.algebra.com
12
COMMENT=	GTK chess client written in Python
10
COMMENT=	GTK chess client written in Python
13
11
14
LICENSE=	GPLv2 # (or later)
12
LICENSE=	GPLv3
15
13
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=3-2.5.1_1:${PORTSDIR}/databases/py-sqlite3
14
COMMON_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}sqlalchemy*>1.:databases/py-sqlalchemy13@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}psutil*>0.:sysutils/py-psutil@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}websockets*>7.:devel/py-websockets@${PY_FLAVOR}
18
RUN_DEPENDS=	${COMMON_DEPENDS}
19
BUILD_DEPENDS=	${COMMON_DEPENDS}
17
20
18
USES=		desktop-file-utils gettext python
21
USES=		desktop-file-utils display gettext python:3.3+
19
USE_GNOME=	pygnomedesktop
22
USE_GSTREAMER1=	yes
20
USE_PYTHON=	distutils autoplist
23
USE_PYTHON=	distutils autoplist
24
USE_GNOME=	gtksourceview3:run glib20 gtk30 librsvg2 introspection
21
INSTALLS_ICONS=	yes
25
INSTALLS_ICONS=	yes
26
PYDISTUTILS_INSTALLNOSINGLE=	nope
22
27
23
OPTIONS_DEFINE=		PYGSTREAMER
24
OPTIONS_GROUP=		ENGINES
25
OPTIONS_GROUP_ENGINES=	CRAFTY GNUCHESS PHALANX SJENG STOCKFISH
26
27
CRAFTY_DESC=		Use crafty
28
CRAFTY_RUN_DEPENDS=	crafty:${PORTSDIR}/games/crafty
29
ENGINES_DESC=		Chess Engines
30
GNUCHESS_DESC=		Use gnuchess
31
GNUCHESS_RUN_DEPENDS=	gnuchess:${PORTSDIR}/games/gnuchess
32
PHALANX_DESC=		Use phalanx
33
PHALANX_RUN_DEPENDS=	phalanx:${PORTSDIR}/games/phalanx
34
SJENG_DESC=		Use sjeng
35
SJENG_RUN_DEPENDS+=	sjeng:${PORTSDIR}/games/sjeng
36
STOCKFISH_DESC=		Use stockfish
37
STOCKFISH_RUN_DEPENDS=	stockfish:${PORTSDIR}/games/stockfish
38
PYGSTREAMER_DESC=	Install gst-python for audio support
39
PYGSTREAMER_USE=	gstreamer=python
40
41
post-patch:
42
	@${REINPLACE_CMD} -e \
43
		's|share/man|man|' ${WRKSRC}/setup.py
44
	@${REINPLACE_CMD} -e \
45
		's|gtk.gdk.threads_init()|gobject.threads_init()|' \
46
		${WRKSRC}/lib/pychess/Main.py
47
	@${REINPLACE_CMD} -e \
48
		'/^#!/d' ${WRKSRC}/lib/pychess/Players/PyChess.py
49
	@${REINPLACE_CMD} -e \
50
		's|"games"|""| ; \
51
		 s|"share/games"|""| ; \
52
		 s|"local/share"|""| ; \
53
		 s|"local/games"|""| ; \
54
		 s|"local/share/games"|""|' \
55
		${WRKSRC}/lib/pychess/System/prefix.py
56
	@${REINPLACE_CMD} -e \
57
		's|/usr/share|${PREFIX}/share|' \
58
		${WRKSRC}/lib/pychess/widgets/newGameDialog.py
59
	@${REINPLACE_CMD} -e \
60
		's|"/usr/share/sounds",|| ; \
61
		 s|/usr/local/share|${LOCALBASE}/share|' \
62
		${WRKSRC}/lib/pychess/widgets/preferencesDialog.py
63
64
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (pychess-0.10.1.tar.gz) = 8a8ac9fc6a4605d189a9728f55183130b6a304cbf2dc5b2e923297303fe4ae8a
1
TIMESTAMP = 1586042912
2
SIZE (pychess-0.10.1.tar.gz) = 1939605
2
SHA256 (pychess-1.0.0.tar.gz) = cf6c326068b11287cb656eb30ad99a3026b7827d33e6a73b7d2cc09317dddabc
3
SIZE (pychess-1.0.0.tar.gz) = 12853354

Return to bug 245379