aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2006-12-15 00:03:08 +0800
committerijliao <ijliao@FreeBSD.org>2006-12-15 00:03:08 +0800
commit050094c75cab1b460fbf4ff3cdd67deff4f7ddf4 (patch)
treeaa0821382c9e87ae8b431d7b2205229818468151 /games
parent49e16abab4f0e856fd3b07b85d074b2267f955a2 (diff)
downloadfreebsd-ports-gnome-050094c75cab1b460fbf4ff3cdd67deff4f7ddf4.tar.gz
freebsd-ports-gnome-050094c75cab1b460fbf4ff3cdd67deff4f7ddf4.tar.zst
freebsd-ports-gnome-050094c75cab1b460fbf4ff3cdd67deff4f7ddf4.zip
add poker-engine
A python library that implements poker rules
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/poker-engine/Makefile39
-rw-r--r--games/poker-engine/distinfo3
-rw-r--r--games/poker-engine/pkg-descr6
-rw-r--r--games/poker-engine/pkg-plist183
5 files changed, 232 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index cae8aa5a53a7..e9553b43e792 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -540,6 +540,7 @@
SUBDIR += plonx
SUBDIR += pmars
SUBDIR += pmars-sdl
+ SUBDIR += poker-engine
SUBDIR += poker-eval
SUBDIR += polypuzzle
SUBDIR += pongix
diff --git a/games/poker-engine/Makefile b/games/poker-engine/Makefile
new file mode 100644
index 000000000000..07752b72285b
--- /dev/null
+++ b/games/poker-engine/Makefile
@@ -0,0 +1,39 @@
+# ex:ts=8
+# Ports collection Makefile for: poker-engine
+# Date created: Dec 14, 2006
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= poker-engine
+PORTVERSION= 1.0.20
+CATEGORIES= games
+MASTER_SITES= http://download.gna.org/pokersource/sources/
+
+MAINTAINER= ijliao@FreeBSD.org
+COMMENT= Development libraries for poker simulation
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
+ ${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt \
+ ${PYTHON_SITELIBDIR}/pokereval.py:${PORTSDIR}/games/py-poker-eval \
+ ${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+USE_GNOME= gnometarget pkgconfig
+USE_PYTHON= 2.3+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
+USE_GMAKE= yes
+
+MAN8= pokerconfigupgrade.8
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|{datadir}/pkgconfig|(prefix)/libdata/pkgconfig|g' \
+ ${WRKSRC}/Makefile.in
+
+test:
+ @cd ${WRKSRC} && ${GMAKE} check
+
+.include <bsd.port.mk>
diff --git a/games/poker-engine/distinfo b/games/poker-engine/distinfo
new file mode 100644
index 000000000000..3059c53eaaf8
--- /dev/null
+++ b/games/poker-engine/distinfo
@@ -0,0 +1,3 @@
+MD5 (poker-engine-1.0.20.tar.gz) = 89a7b157572ffdf5df22bde5991e04ff
+SHA256 (poker-engine-1.0.20.tar.gz) = 9fac3fd7325a0234bef1bcbd7c26ad5d529591e7a3215303e6bfb217fe64d351
+SIZE (poker-engine-1.0.20.tar.gz) = 205356
diff --git a/games/poker-engine/pkg-descr b/games/poker-engine/pkg-descr
new file mode 100644
index 000000000000..fcac96932d38
--- /dev/null
+++ b/games/poker-engine/pkg-descr
@@ -0,0 +1,6 @@
+poker-engine is a python library that implements poker rules according
+to variants and betting structures specified in configuration files.
+It designed to be used by a multiplayer poker server, a poker AI or a
+poker client.
+
+WWW: http://www.pokersource.org/poker-engine.php
diff --git a/games/poker-engine/pkg-plist b/games/poker-engine/pkg-plist
new file mode 100644
index 000000000000..140074bfa266
--- /dev/null
+++ b/games/poker-engine/pkg-plist
@@ -0,0 +1,183 @@
+etc/poker-engine/ante-limit.template
+etc/poker-engine/limit.template
+etc/poker-engine/no-limit.template
+etc/poker-engine/poker..01-.02-no-limit.xml
+etc/poker-engine/poker..01-.02-pot-limit.xml
+etc/poker-engine/poker..02-.04-limit.xml
+etc/poker-engine/poker..02-.04-no-limit.xml
+etc/poker-engine/poker..02-.04-pot-limit.xml
+etc/poker-engine/poker..02..04-limit.xml
+etc/poker-engine/poker..05-.10-limit.xml
+etc/poker-engine/poker..05-.10-no-limit.xml
+etc/poker-engine/poker..05-.10-pot-limit.xml
+etc/poker-engine/poker..05..10-limit.xml
+etc/poker-engine/poker..10-.25-limit.xml
+etc/poker-engine/poker..10-.25-no-limit.xml
+etc/poker-engine/poker..10-.25-pot-limit.xml
+etc/poker-engine/poker..25-.50-limit.xml
+etc/poker-engine/poker..25-.50-no-limit.xml
+etc/poker-engine/poker..25-.50-pot-limit.xml
+etc/poker-engine/poker..25..50-limit.xml
+etc/poker-engine/poker..50-1-limit.xml
+etc/poker-engine/poker..50-1-no-limit.xml
+etc/poker-engine/poker..50-1-pot-limit.xml
+etc/poker-engine/poker..50.1-limit.xml
+etc/poker-engine/poker.0-0-limit.xml
+etc/poker-engine/poker.1-2-limit.xml
+etc/poker-engine/poker.1-2-no-limit.xml
+etc/poker-engine/poker.1-2-pot-limit.xml
+etc/poker-engine/poker.10-15-limit.xml
+etc/poker-engine/poker.10-15-pot-limit.xml
+etc/poker-engine/poker.10-20-limit.xml
+etc/poker-engine/poker.10-20-no-limit.xml
+etc/poker-engine/poker.10-20-pot-limit.xml
+etc/poker-engine/poker.100-200-limit.xml
+etc/poker-engine/poker.100-200-no-limit.xml
+etc/poker-engine/poker.100-200-pot-limit.xml
+etc/poker-engine/poker.15-30-limit.xml
+etc/poker-engine/poker.150-300-limit.xml
+etc/poker-engine/poker.2-4-limit.xml
+etc/poker-engine/poker.2-4-no-limit.xml
+etc/poker-engine/poker.2-4-pot-limit.xml
+etc/poker-engine/poker.200-400-limit.xml
+etc/poker-engine/poker.3-6-limit.xml
+etc/poker-engine/poker.3-6-no-limit.xml
+etc/poker-engine/poker.3-6-pot-limit.xml
+etc/poker-engine/poker.30-60-limit.xml
+etc/poker-engine/poker.30-60-no-limit.xml
+etc/poker-engine/poker.30-60-pot-limit.xml
+etc/poker-engine/poker.4-8-limit.xml
+etc/poker-engine/poker.5-10-limit.xml
+etc/poker-engine/poker.5-10-no-limit.xml
+etc/poker-engine/poker.5-10-pot-limit.xml
+etc/poker-engine/poker.50-100-limit.xml
+etc/poker-engine/poker.50-100-no-limit.xml
+etc/poker-engine/poker.50-100-pot-limit.xml
+etc/poker-engine/poker.7stud.xml
+etc/poker-engine/poker.ante-.04-.08-limit.xml
+etc/poker-engine/poker.ante-.10-.20-limit.xml
+etc/poker-engine/poker.ante-.25-.50-limit.xml
+etc/poker-engine/poker.ante-.50-1-limit.xml
+etc/poker-engine/poker.ante-1-2-limit.xml
+etc/poker-engine/poker.ante-10-20-limit.xml
+etc/poker-engine/poker.ante-2-4-limit.xml
+etc/poker-engine/poker.ante-3-6-limit.xml
+etc/poker-engine/poker.ante-30-60-limit.xml
+etc/poker-engine/poker.ante-5-10-limit.xml
+etc/poker-engine/poker.holdem.xml
+etc/poker-engine/poker.level-10-15-pot-limit.xml
+etc/poker-engine/poker.level-10-20-no-limit.xml
+etc/poker-engine/poker.level-15-30-no-limit.xml
+etc/poker-engine/poker.level-2-4-limit.xml
+etc/poker-engine/poker.level-no-limit.xml
+etc/poker-engine/poker.levels-blinds.xml
+etc/poker-engine/poker.omaha.xml
+etc/poker-engine/poker.omaha8.xml
+etc/poker-engine/poker.payouts.xml
+etc/poker-engine/poker.razz.xml
+etc/poker-engine/pot-limit.template
+@dirrm etc/poker-engine
+libdata/pkgconfig/poker-engine.pc
+sbin/pokerconfigupgrade
+%%DATADIR%%/conf/poker..01-.02-no-limit.xml
+%%DATADIR%%/conf/poker..01-.02-pot-limit.xml
+%%DATADIR%%/conf/poker..02-.04-limit.xml
+%%DATADIR%%/conf/poker..02-.04-no-limit.xml
+%%DATADIR%%/conf/poker..02-.04-pot-limit.xml
+%%DATADIR%%/conf/poker..02..04-limit.xml
+%%DATADIR%%/conf/poker..05-.10-limit.xml
+%%DATADIR%%/conf/poker..05-.10-no-limit.xml
+%%DATADIR%%/conf/poker..05-.10-pot-limit.xml
+%%DATADIR%%/conf/poker..05..10-limit.xml
+%%DATADIR%%/conf/poker..10-.25-limit.xml
+%%DATADIR%%/conf/poker..10-.25-no-limit.xml
+%%DATADIR%%/conf/poker..10-.25-pot-limit.xml
+%%DATADIR%%/conf/poker..25-.50-limit.xml
+%%DATADIR%%/conf/poker..25-.50-no-limit.xml
+%%DATADIR%%/conf/poker..25-.50-pot-limit.xml
+%%DATADIR%%/conf/poker..25..50-limit.xml
+%%DATADIR%%/conf/poker..50-1-limit.xml
+%%DATADIR%%/conf/poker..50-1-no-limit.xml
+%%DATADIR%%/conf/poker..50-1-pot-limit.xml
+%%DATADIR%%/conf/poker..50.1-limit.xml
+%%DATADIR%%/conf/poker.0-0-limit.xml
+%%DATADIR%%/conf/poker.1-2-limit.xml
+%%DATADIR%%/conf/poker.1-2-no-limit.xml
+%%DATADIR%%/conf/poker.1-2-pot-limit.xml
+%%DATADIR%%/conf/poker.10-15-limit.xml
+%%DATADIR%%/conf/poker.10-15-pot-limit.xml
+%%DATADIR%%/conf/poker.10-20-limit.xml
+%%DATADIR%%/conf/poker.10-20-no-limit.xml
+%%DATADIR%%/conf/poker.10-20-pot-limit.xml
+%%DATADIR%%/conf/poker.100-200-limit.xml
+%%DATADIR%%/conf/poker.100-200-no-limit.xml
+%%DATADIR%%/conf/poker.100-200-pot-limit.xml
+%%DATADIR%%/conf/poker.15-30-limit.xml
+%%DATADIR%%/conf/poker.150-300-limit.xml
+%%DATADIR%%/conf/poker.2-4-limit.xml
+%%DATADIR%%/conf/poker.2-4-no-limit.xml
+%%DATADIR%%/conf/poker.2-4-pot-limit.xml
+%%DATADIR%%/conf/poker.200-400-limit.xml
+%%DATADIR%%/conf/poker.3-6-limit.xml
+%%DATADIR%%/conf/poker.3-6-no-limit.xml
+%%DATADIR%%/conf/poker.3-6-pot-limit.xml
+%%DATADIR%%/conf/poker.30-60-limit.xml
+%%DATADIR%%/conf/poker.30-60-no-limit.xml
+%%DATADIR%%/conf/poker.30-60-pot-limit.xml
+%%DATADIR%%/conf/poker.4-8-limit.xml
+%%DATADIR%%/conf/poker.5-10-limit.xml
+%%DATADIR%%/conf/poker.5-10-no-limit.xml
+%%DATADIR%%/conf/poker.5-10-pot-limit.xml
+%%DATADIR%%/conf/poker.50-100-limit.xml
+%%DATADIR%%/conf/poker.50-100-no-limit.xml
+%%DATADIR%%/conf/poker.50-100-pot-limit.xml
+%%DATADIR%%/conf/poker.7stud.xml
+%%DATADIR%%/conf/poker.ante-.04-.08-limit.xml
+%%DATADIR%%/conf/poker.ante-.10-.20-limit.xml
+%%DATADIR%%/conf/poker.ante-.25-.50-limit.xml
+%%DATADIR%%/conf/poker.ante-.50-1-limit.xml
+%%DATADIR%%/conf/poker.ante-1-2-limit.xml
+%%DATADIR%%/conf/poker.ante-10-20-limit.xml
+%%DATADIR%%/conf/poker.ante-2-4-limit.xml
+%%DATADIR%%/conf/poker.ante-3-6-limit.xml
+%%DATADIR%%/conf/poker.ante-30-60-limit.xml
+%%DATADIR%%/conf/poker.ante-5-10-limit.xml
+%%DATADIR%%/conf/poker.holdem.xml
+%%DATADIR%%/conf/poker.level-10-15-pot-limit.xml
+%%DATADIR%%/conf/poker.level-10-20-no-limit.xml
+%%DATADIR%%/conf/poker.level-15-30-no-limit.xml
+%%DATADIR%%/conf/poker.level-2-4-limit.xml
+%%DATADIR%%/conf/poker.level-no-limit.xml
+%%DATADIR%%/conf/poker.levels-blinds.xml
+%%DATADIR%%/conf/poker.omaha.xml
+%%DATADIR%%/conf/poker.omaha8.xml
+%%DATADIR%%/conf/poker.payouts.xml
+%%DATADIR%%/conf/poker.razz.xml
+@dirrm %%DATADIR%%/upgrades
+@dirrm %%DATADIR%%/conf
+@dirrm %%DATADIR%%
+%%PYTHON_SITELIBDIR%%/pokerengine/__init__.py
+%%PYTHON_SITELIBDIR%%/pokerengine/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokercards.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokercards.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokercards.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerchips.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerchips.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerchips.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerengineconfig.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerengineconfig.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerengineconfig.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokergame.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokergame.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokergame.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerrake.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerrake.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokerrake.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/pokertournament.py
+%%PYTHON_SITELIBDIR%%/pokerengine/pokertournament.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/pokertournament.pyo
+%%PYTHON_SITELIBDIR%%/pokerengine/version.py
+%%PYTHON_SITELIBDIR%%/pokerengine/version.pyc
+%%PYTHON_SITELIBDIR%%/pokerengine/version.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/pokerengine