From 806b71b963fb27ebd639e592c69bc28a2c8a6f97 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 25 Jun 2010 07:17:32 +0200 Subject: [PATCH] Updated and improved ebuild. It doesnt actually install fpdb atm, I'll bring that back another time. --- packaging/gentoo/fpdb-0.10.ebuild | 62 --------------------------- packaging/gentoo/fpdb-0.20_rc1.ebuild | 53 +++++++++++++++++++++++ 2 files changed, 53 insertions(+), 62 deletions(-) delete mode 100644 packaging/gentoo/fpdb-0.10.ebuild create mode 100644 packaging/gentoo/fpdb-0.20_rc1.ebuild diff --git a/packaging/gentoo/fpdb-0.10.ebuild b/packaging/gentoo/fpdb-0.10.ebuild deleted file mode 100644 index a41f653b..00000000 --- a/packaging/gentoo/fpdb-0.10.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Gentoo had nothing to do with the production of this ebuild, but I'm pre-emptively transferring all copyrights (as far as legally possible under my local jurisdiction) to them. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-0.10.ebuild,v 1.0 2009/1/30 steffen@sycamoretest.info Exp $ - -NEED_PYTHON=2.3 - -#inherit distutils - -MY_P="fpdb-${PV}" -DESCRIPTION="A database program to track your online poker games" -HOMEPAGE="https://sourceforge.net/projects/fpdb/" -SRC_URI="mirror://sourceforge/fpdb/${MY_P}.tar.bz2" - -LICENSE="AGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -#note: this should work on other architectures too, please send me your experiences -IUSE="" - -RDEPEND="virtual/mysql - dev-python/mysql-python - >=x11-libs/gtk+-2.10 - dev-python/pygtk - dev-python/numpy - dev-python/matplotlib" - -DEPEND="${RDEPEND}" - -src_install() { - DIRINST="${D}usr/share/games/fpdb/" - mkdir -p "${DIRINST}" - cp -R * "${DIRINST}" || die - - DIRBIN="${D}usr/games/bin/" - mkdir -p "${DIRBIN}" - #echo "pathes" - #echo "${DIRINST}pyfpdb/fpdb.py" - #echo "${DIRBIN}fpdb.py" - #echo - echo "cd /usr/share/games/fpdb/pyfpdb/ && python fpdb.py" > "${DIRBIN}fpdb" || die - chmod 755 "${DIRBIN}fpdb" || die -} - -#src_test() { -#} - -pkg_postinst() { - elog "Fpdb has been installed and can be called by executing /usr/games/bin/fpdb" - elog "You need to perform a couple more steps manually." - elog "Please also make sure you followed instructions from previous emerges, in particular make sure you configured mysql and set a root pw for it" - elog "Now run this command to connect to MySQL: mysql --user=root --password=yourPassword" - elog "In the mysql command line interface you need to type these two lines (make sure you get the ; at the end)" - elog "In the second line replace \"newPassword\" with a password of your choice" - elog "CREATE DATABASE fpdb;" - elog "GRANT ALL PRIVILEGES ON fpdb.* TO 'fpdb'@'localhost' IDENTIFIED BY 'newPassword' WITH GRANT OPTION;" - elog "Finally copy the default config file from ${DIRINST}docs/default.conf to ~/.fpdb/ for every user that is to use fpdb." - elog "You will need to edit the default.conf, in particular you need to replace the password with what you entered in the \"GRANT ALL...\"" - elog "Finally run the GUI and click the menu database -> recreate tables" - elog "That's it! See our webpage at http://fpdb.sourceforge.net for more documentation" - elog " " -} diff --git a/packaging/gentoo/fpdb-0.20_rc1.ebuild b/packaging/gentoo/fpdb-0.20_rc1.ebuild new file mode 100644 index 00000000..cfff9fac --- /dev/null +++ b/packaging/gentoo/fpdb-0.20_rc1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# created by Steffen Schaumburg, steffen@schaumburger.info + +EAPI="2" +NEED_PYTHON=2.5 + +#inherit distutils + +DESCRIPTION="A database program to track your online poker games" +HOMEPAGE="http://fpdb.sourceforge.net/" +#SRC_URI="mirror://sourceforge/fpdb/${MY_P}.tar.bz2" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#note: this should work on other architectures too, please send me your experiences + +IUSE="mysql postgres graphing" +RDEPEND=" + mysql? ( virtual/mysql + dev-python/mysql-python ) + postgres? ( dev-db/postgresql-server + dev-python/psycopg ) + >=x11-libs/gtk+-2.10 + dev-python/pygtk + graphing? ( dev-python/numpy + dev-python/matplotlib[gtk] ) + dev-python/python-xlib" +DEPEND="${RDEPEND}" + +#src_install() { +# DIRINST="${D}usr/share/games/fpdb/" +# mkdir -p "${DIRINST}" +# cp -R * "${DIRINST}" || die +# +# DIRBIN="${D}usr/games/bin/" +# mkdir -p "${DIRBIN}" +# #echo "pathes" +# #echo "${DIRINST}pyfpdb/fpdb.py" +# #echo "${DIRBIN}fpdb.py" +# #echo +# echo "cd /usr/share/games/fpdb/pyfpdb/ && python fpdb.py" > "${DIRBIN}fpdb" || die +# chmod 755 "${DIRBIN}fpdb" || die +#} + +#src_test() { +#} + +pkg_postinst() { + elog "Fpdb's dependencies have been installed. Please visit fpdb.sourceforge.net and download and unpack the archive." + elog "You can then start fpdb by running run_fpdb.py. Good luck!" +}