From owner-svn-ports-all@FreeBSD.ORG Sun May 18 12:28:40 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85EAF467; Sun, 18 May 2014 12:28:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66EDA25F8; Sun, 18 May 2014 12:28:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4ICSeRx061052; Sun, 18 May 2014 12:28:40 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4ICSdA1061047; Sun, 18 May 2014 12:28:39 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201405181228.s4ICSdA1061047@svn.freebsd.org> From: Rusmir Dusko Date: Sun, 18 May 2014 12:28:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r354414 - in head/games/pythonchess: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2014 12:28:40 -0000 Author: nemysis Date: Sun May 18 12:28:39 2014 New Revision: 354414 URL: http://svnweb.freebsd.org/changeset/ports/354414 QAT: https://qat.redports.org/buildarchive/r354414/ Log: - Update to 0.7, announce message is here: http://yakinikuman.wordpress.com/2009/04/28/python-chess-v-07-lowering-pygames-cpu-usage/ - Change master sites, add icon - Transfer maintainership to games@ team - Add license (GPLv3) - Change USE_PYTHON=yes to USE_PYTHON=2 - Add USES dos2unix - Add files/pythonchess.in and Desktop entry file - Remove unnecessary Thumbs.db and pygame2exe_Chess.py - Fix the usage of 'python' to get rid of the implicit lang/python dependency - Change build and install - Change pkg-descr and add WWW Added: head/games/pythonchess/files/ head/games/pythonchess/files/pythonchess.in (contents, props changed) Modified: head/games/pythonchess/Makefile head/games/pythonchess/distinfo head/games/pythonchess/pkg-descr head/games/pythonchess/pkg-plist Modified: head/games/pythonchess/Makefile ============================================================================== --- head/games/pythonchess/Makefile Sun May 18 11:57:55 2014 (r354413) +++ head/games/pythonchess/Makefile Sun May 18 12:28:39 2014 (r354414) @@ -2,28 +2,55 @@ # $FreeBSD$ PORTNAME= pythonchess -PORTVERSION= 0.6 -PORTREVISION= 2 +PORTVERSION= 0.7 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= alepulver -EXTRACT_SUFX= .tgz +MASTER_SITES= http://sites.google.com/site/purplesaguaroinc/myfiles/ \ + SF/nemysisfreebsdp/games/:icons +DISTFILES= ${PORTNAME:S/p/P/:S/c/C/}_v${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}.png:icons +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME:S/p/P/:S/c/C/}_v${DISTVERSION}${EXTRACT_SUFX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Small program for playing chess against the computer +LICENSE= GPLv3 + RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter -USE_PYTHON= yes +WRKSRC= ${WRKDIR}/${PORTNAME:S/p/P/:S/c/C/} + +USES= dos2unix zip +DOS2UNIX_REGEX= .*.[^p][^n][^g]$ +USE_PYTHON= 2 + +SUB_FILES= ${PORTNAME} + +DESKTOP_ENTRIES="Python Chess" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;BoardGame;" "" + +post-patch: + @${FIND} ${WRKDIR} -name Thumbs.db -or -name pygame2exe_Chess.py | \ + ${XARGS} ${RM} -fr + @${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \ + ${WRKSRC}/*.py + @(cd ${WRKSRC} && ${RM} *.py.bak) do-build: - @(${ECHO_CMD} "#!${SH}"; \ - ${ECHO_CMD} "cd ${DATADIR} && ${PYTHON_CMD} board.py") \ - > ${WRKDIR}/${PORTNAME} + ${PYTHON_CMD} -m compileall ${WRKSRC} + @${PYTHON_CMD} -O -m compileall ${WRKSRC} do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${DATADIR} - (cd ${WRKSRC} && ${INSTALL_DATA} *.gif *.py *.txt ${STAGEDIR}${DATADIR}) + @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ + ${WRKDIR}/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + + @(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${STAGEDIR}${DATADIR}) +.for f in *.py *.pyc *.py + ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} +.endfor + + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ .include Modified: head/games/pythonchess/distinfo ============================================================================== --- head/games/pythonchess/distinfo Sun May 18 11:57:55 2014 (r354413) +++ head/games/pythonchess/distinfo Sun May 18 12:28:39 2014 (r354414) @@ -1,2 +1,4 @@ -SHA256 (pythonchess-0.6.tgz) = 944249decbd8699acb8749c268d8932bbfe2b89c1d1f3375e95ba52c7a926552 -SIZE (pythonchess-0.6.tgz) = 40919 +SHA256 (pythonchess/PythonChess_v0.7.zip) = ebf10767e6c83ea90e39ccee07064929f969862995daae439b6e5edb3def1526 +SIZE (pythonchess/PythonChess_v0.7.zip) = 160772 +SHA256 (pythonchess/pythonchess.png) = 5f4fb6ca2280935b7696bf48e4215c2dcd1c286cbd8fc04cff24524c9d0c9fc0 +SIZE (pythonchess/pythonchess.png) = 680 Added: head/games/pythonchess/files/pythonchess.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/pythonchess/files/pythonchess.in Sun May 18 12:28:39 2014 (r354414) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +cd "%%DATADIR%%" +exec %%PYTHON_CMD%% ./PythonChessMain.py "${@}" Modified: head/games/pythonchess/pkg-descr ============================================================================== --- head/games/pythonchess/pkg-descr Sun May 18 11:57:55 2014 (r354413) +++ head/games/pythonchess/pkg-descr Sun May 18 12:28:39 2014 (r354414) @@ -1,4 +1,7 @@ -pythonchess is a computer chess program for human vs. computer games. -pythonchess is a complete chess program with alpha-beta search, hashing, -pondering, iterative deepening, etc. implemented in Python programming -language. +Chess for player vs. player, player vs. AI, or AI vs. AI. +Uses Tkinter to get initial game parameters. +Uses Pygame to draw the board and pieces and to get user +mouse clicks. Run with the “-h” option to get full listing +of available command line flags. + +WWW: http://yakinikuman.wordpress.com/python-chess/ Modified: head/games/pythonchess/pkg-plist ============================================================================== --- head/games/pythonchess/pkg-plist Sun May 18 11:57:55 2014 (r354413) +++ head/games/pythonchess/pkg-plist Sun May 18 12:28:39 2014 (r354414) @@ -1,20 +1,54 @@ bin/pythonchess -%%DATADIR%%/bishopb.gif -%%DATADIR%%/bishopw.gif -%%DATADIR%%/board.py -%%DATADIR%%/chesspersonalities.py -%%DATADIR%%/empty.gif -%%DATADIR%%/kingb.gif -%%DATADIR%%/kingw.gif -%%DATADIR%%/knightb.gif -%%DATADIR%%/knightw.gif -%%DATADIR%%/nchess6.py -%%DATADIR%%/openinglibrary.py -%%DATADIR%%/openinglibrary.txt -%%DATADIR%%/pawnb.gif -%%DATADIR%%/pawnw.gif -%%DATADIR%%/queenb.gif -%%DATADIR%%/queenw.gif -%%DATADIR%%/rookb.gif -%%DATADIR%%/rookw.gif +share/pixmaps/pythonchess.png +%%DATADIR%%/ChessAI.py +%%DATADIR%%/ChessAI.pyc +%%DATADIR%%/ChessBoard.py +%%DATADIR%%/ChessBoard.pyc +%%DATADIR%%/ChessGUI_pygame.py +%%DATADIR%%/ChessGUI_pygame.pyc +%%DATADIR%%/ChessGUI_text.py +%%DATADIR%%/ChessGUI_text.pyc +%%DATADIR%%/ChessGameParams.py +%%DATADIR%%/ChessGameParams.pyc +%%DATADIR%%/ChessPlayer.py +%%DATADIR%%/ChessPlayer.pyc +%%DATADIR%%/ChessRules.py +%%DATADIR%%/ChessRules.pyc +%%DATADIR%%/PySetup.py +%%DATADIR%%/PySetup.pyc +%%DATADIR%%/PythonChessAIStats.py +%%DATADIR%%/PythonChessAIStats.pyc +%%DATADIR%%/PythonChessMain.py +%%DATADIR%%/PythonChessMain.pyc +%%DATADIR%%/ScrollingTextBox.py +%%DATADIR%%/ScrollingTextBox.pyc +%%DATADIR%%/images/Chess_tile_bd.png +%%DATADIR%%/images/Chess_tile_bl.png +%%DATADIR%%/images/Chess_tile_kd.png +%%DATADIR%%/images/Chess_tile_kl.png +%%DATADIR%%/images/Chess_tile_nd.png +%%DATADIR%%/images/Chess_tile_nl.png +%%DATADIR%%/images/Chess_tile_pd.png +%%DATADIR%%/images/Chess_tile_pl.png +%%DATADIR%%/images/Chess_tile_qd.png +%%DATADIR%%/images/Chess_tile_ql.png +%%DATADIR%%/images/Chess_tile_rd.png +%%DATADIR%%/images/Chess_tile_rl.png +%%DATADIR%%/images/blackBishop.png +%%DATADIR%%/images/blackKing.png +%%DATADIR%%/images/blackKnight.png +%%DATADIR%%/images/blackPawn.png +%%DATADIR%%/images/blackQueen.png +%%DATADIR%%/images/blackRook.png +%%DATADIR%%/images/brown_square.png +%%DATADIR%%/images/chess_icon.ico +%%DATADIR%%/images/cyan_square.png +%%DATADIR%%/images/whiteBishop.png +%%DATADIR%%/images/whiteKing.png +%%DATADIR%%/images/whiteKnight.png +%%DATADIR%%/images/whitePawn.png +%%DATADIR%%/images/whiteQueen.png +%%DATADIR%%/images/whiteRook.png +%%DATADIR%%/images/white_square.png +@dirrm %%DATADIR%%/images @dirrm %%DATADIR%%