2010-08-11 15:04:58 +02:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# created by Steffen Schaumburg, steffen@schaumburger.info
|
2010-08-17 20:59:51 +02:00
|
|
|
EAPI="2"
|
2010-08-11 15:04:58 +02:00
|
|
|
|
|
|
|
inherit eutils
|
|
|
|
inherit games
|
|
|
|
inherit git
|
|
|
|
|
|
|
|
NEED_PYTHON=2.5
|
|
|
|
|
|
|
|
DESCRIPTION="A free/open source tracker/HUD for use with online poker"
|
|
|
|
HOMEPAGE="http://fpdb.wiki.sourceforge.net/"
|
|
|
|
EGIT_REPO_URI="git://git.assembla.com/fpdb.git"
|
|
|
|
|
|
|
|
LICENSE="AGPL-3"
|
|
|
|
SLOT="0"
|
2010-08-17 21:15:22 +02:00
|
|
|
KEYWORDS=""
|
2010-08-11 15:04:58 +02:00
|
|
|
#note: this should work on other architectures too, please send me your experiences
|
|
|
|
|
|
|
|
IUSE="graph mysql postgres sqlite"
|
|
|
|
RDEPEND="
|
2010-08-17 20:56:36 +02:00
|
|
|
mysql? ( virtual/mysql
|
|
|
|
dev-python/mysql-python )
|
|
|
|
postgres? ( dev-db/postgresql-server
|
|
|
|
dev-python/psycopg )
|
|
|
|
sqlite? ( dev-lang/python[sqlite]
|
|
|
|
dev-python/numpy )
|
|
|
|
>=x11-libs/gtk+-2.10
|
|
|
|
dev-python/pygtk
|
|
|
|
graph? ( dev-python/numpy
|
|
|
|
dev-python/matplotlib[gtk] )
|
|
|
|
dev-python/python-xlib
|
|
|
|
dev-python/pytz"
|
2010-08-11 15:04:58 +02:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
src_unpack() {
|
2010-08-17 20:56:36 +02:00
|
|
|
git_src_unpack
|
2010-08-11 15:04:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2010-08-17 20:56:36 +02:00
|
|
|
insinto "${GAMES_DATADIR}"/${PN}
|
|
|
|
doins -r gfx
|
|
|
|
doins -r pyfpdb
|
|
|
|
doins readme.txt
|
2010-08-11 15:04:58 +02:00
|
|
|
|
2010-08-17 20:56:36 +02:00
|
|
|
exeinto "${GAMES_DATADIR}"/${PN}
|
|
|
|
doexe run_fpdb.py
|
2010-08-11 15:04:58 +02:00
|
|
|
|
2010-08-17 20:56:36 +02:00
|
|
|
dodir "${GAMES_BINDIR}"
|
|
|
|
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
|
2010-08-11 15:04:58 +02:00
|
|
|
|
2010-08-17 20:56:36 +02:00
|
|
|
newicon gfx/fpdb-icon.png ${PN}.png
|
|
|
|
make_desktop_entry ${PN}
|
2010-08-12 18:50:21 +02:00
|
|
|
|
2010-08-17 20:56:36 +02:00
|
|
|
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
|
|
|
|
prepgamesdirs
|
2010-08-11 15:04:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2010-08-17 20:56:36 +02:00
|
|
|
games_pkg_postinst
|
|
|
|
elog "Note that if you really want to use mysql or postgresql you will have to create"
|
|
|
|
elog "the database and user yourself and enter it into the fpdb config."
|
|
|
|
elog "You can find the instructions on the project's website."
|
2010-08-11 15:04:58 +02:00
|
|
|
}
|