Merge branch 'master' of git://git.assembla.com/fpdb.git

This commit is contained in:
Gerko de Roo 2010-08-28 18:16:04 +02:00
commit 0716b866a5
4 changed files with 98 additions and 87 deletions

View File

@ -1,6 +1,7 @@
# Copyright 1999-2010 Gentoo Foundation # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# created by Steffen Schaumburg, steffen@schaumburger.info and Erki Ferenc, erkiferenc@gmail.com # $Header: $
EAPI="2" EAPI="2"
inherit eutils inherit eutils

View File

@ -1,6 +1,7 @@
# Copyright 1999-2010 Gentoo Foundation # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# created by Steffen Schaumburg, steffen@schaumburger.info and Erki Ferenc, erkiferenc@gmail.com # $Header: $
EAPI="2" EAPI="2"
inherit eutils inherit eutils
@ -17,49 +18,53 @@ SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
#note: this should work on other architectures too, please send me your experiences #note: this should work on other architectures too, please send me your experiences
IUSE="graph mysql postgres sqlite linguas_hu" IUSE="graph mysql postgres sqlite linguas_hu linguas_it"
RDEPEND=" RDEPEND="
mysql? ( virtual/mysql mysql? ( virtual/mysql
dev-python/mysql-python ) dev-python/mysql-python )
postgres? ( dev-db/postgresql-server postgres? ( dev-db/postgresql-server
dev-python/psycopg ) dev-python/psycopg )
sqlite? ( dev-lang/python[sqlite] sqlite? ( dev-lang/python[sqlite]
dev-python/numpy ) dev-python/numpy )
>=x11-libs/gtk+-2.10 >=x11-libs/gtk+-2.10
dev-python/pygtk dev-python/pygtk
graph? ( dev-python/numpy graph? ( dev-python/numpy
dev-python/matplotlib[gtk] ) dev-python/matplotlib[gtk] )
dev-python/python-xlib dev-python/python-xlib
dev-python/pytz" dev-python/pytz"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_install() { src_install() {
insinto "${GAMES_DATADIR}"/${PN} insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx doins -r gfx
doins -r pyfpdb doins -r pyfpdb
if use linguas_hu; then if use linguas_hu; then
dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo
fi fi
doins readme.txt if use linguas_it; then
dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/it/LC_MESSAGES/${PN}.mo /usr/share/locale/it/LC_MESSAGES/${PN}.mo
fi
exeinto "${GAMES_DATADIR}"/${PN} doins readme.txt
doexe run_fpdb.py
dodir "${GAMES_BINDIR}" exeinto "${GAMES_DATADIR}"/${PN}
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} doexe run_fpdb.py
newicon gfx/fpdb-icon.png ${PN}.png dodir "${GAMES_BINDIR}"
make_desktop_entry ${PN} dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw newicon gfx/fpdb-icon.png ${PN}.png
prepgamesdirs make_desktop_entry ${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
prepgamesdirs
} }
pkg_postinst() { pkg_postinst() {
games_pkg_postinst games_pkg_postinst
elog "Note that if you really want to use mysql or postgresql you will have to create" 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 "the database and user yourself and enter it into the fpdb config."
elog "You can find the instructions on the project's website." elog "You can find the instructions on the project's website."
} }

View File

@ -1,6 +1,7 @@
# Copyright 1999-2010 Gentoo Foundation # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# created by Steffen Schaumburg, steffen@schaumburger.info and Erki Ferenc, erkiferenc@gmail.com # $Header: $
EAPI="2" EAPI="2"
inherit eutils inherit eutils
@ -18,53 +19,57 @@ SLOT="0"
KEYWORDS="" KEYWORDS=""
#note: this should work on other architectures too, please send me your experiences #note: this should work on other architectures too, please send me your experiences
IUSE="graph mysql postgres sqlite linguas_hu" IUSE="graph mysql postgres sqlite linguas_hu linguas_it"
RDEPEND=" RDEPEND="
mysql? ( virtual/mysql mysql? ( virtual/mysql
dev-python/mysql-python ) dev-python/mysql-python )
postgres? ( dev-db/postgresql-server postgres? ( dev-db/postgresql-server
dev-python/psycopg ) dev-python/psycopg )
sqlite? ( dev-lang/python[sqlite] sqlite? ( dev-lang/python[sqlite]
dev-python/numpy ) dev-python/numpy )
>=x11-libs/gtk+-2.10 >=x11-libs/gtk+-2.10
dev-python/pygtk dev-python/pygtk
graph? ( dev-python/numpy graph? ( dev-python/numpy
dev-python/matplotlib[gtk] ) dev-python/matplotlib[gtk] )
dev-python/python-xlib dev-python/python-xlib
dev-python/pytz" dev-python/pytz"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_unpack() { src_unpack() {
git_src_unpack git_src_unpack
} }
src_install() { src_install() {
insinto "${GAMES_DATADIR}"/${PN} insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx doins -r gfx
doins -r pyfpdb doins -r pyfpdb
if use linguas_hu; then if use linguas_hu; then
dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo
fi fi
doins readme.txt if use linguas_it; then
dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/it/LC_MESSAGES/${PN}.mo /usr/share/locale/it/LC_MESSAGES/${PN}.mo
fi
exeinto "${GAMES_DATADIR}"/${PN} doins readme.txt
doexe run_fpdb.py
dodir "${GAMES_BINDIR}" exeinto "${GAMES_DATADIR}"/${PN}
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} doexe run_fpdb.py
newicon gfx/fpdb-icon.png ${PN}.png dodir "${GAMES_BINDIR}"
make_desktop_entry ${PN} dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw newicon gfx/fpdb-icon.png ${PN}.png
prepgamesdirs make_desktop_entry ${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
prepgamesdirs
} }
pkg_postinst() { pkg_postinst() {
games_pkg_postinst games_pkg_postinst
elog "Note that if you really want to use mysql or postgresql you will have to create" 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 "the database and user yourself and enter it into the fpdb config."
elog "You can find the instructions on the project's website." elog "You can find the instructions on the project's website."
} }

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.20.905 plus git\n" "Project-Id-Version: 0.20.905 plus git\n"
"POT-Creation-Date: 2010-08-26 18:52+CEST\n" "POT-Creation-Date: 2010-08-26 18:52+CEST\n"
"PO-Revision-Date: 2010-08-26 01:40+0200\n" "PO-Revision-Date: 2010-08-28 12:32+0200\n"
"Last-Translator: Ferenc Erki <erkiferenc@gmail.com>\n" "Last-Translator: Ferenc Erki <erkiferenc@gmail.com>\n"
"Language-Team: Hungarian <erkiferenc@gmail.com>\n" "Language-Team: Hungarian <erkiferenc@gmail.com>\n"
"Language: hu\n" "Language: hu\n"
@ -156,7 +156,7 @@ msgstr "A %s konfigurációs fájl nem található. Alapértelmezések használa
#: Configuration.py:690 #: Configuration.py:690
msgid "Reading configuration file %s" msgid "Reading configuration file %s"
msgstr "%s konfigurációs fájl használata" msgstr "%s konfigurációs fájl olvasása"
#: Configuration.py:691 #: Configuration.py:691
msgid "" msgid ""
@ -164,11 +164,11 @@ msgid ""
"Reading configuration file %s\n" "Reading configuration file %s\n"
msgstr "" msgstr ""
"\n" "\n"
"%s konfigurációs fájl használata\n" "%s konfigurációs fájl olvasása\n"
#: Configuration.py:696 #: Configuration.py:696
msgid "Error parsing %s. See error log file." msgid "Error parsing %s. See error log file."
msgstr "Hiba a(z) %s olvasása közben. Nézz bele a naplófájlba." msgstr "Hiba a(z) %s értelmezése közben. Nézz bele a hibanaplóba."
#: Database.py:74 #: Database.py:74
msgid "Not using sqlalchemy connection pool." msgid "Not using sqlalchemy connection pool."
@ -232,11 +232,11 @@ msgstr "ERROR: a(z) %s lekérdezés eredményének nem a player_id az első oszl
#: Database.py:907 #: Database.py:907
msgid "getLastInsertId(): problem fetching insert_id? ret=%d" msgid "getLastInsertId(): problem fetching insert_id? ret=%d"
msgstr "getLastInsertId(): probléma insert_id lekérdezése közben? ret=%d" msgstr "getLastInsertId(): probléma az insert_id lekérdezése közben? ret=%d"
#: Database.py:919 #: Database.py:919
msgid "getLastInsertId(%s): problem fetching lastval? row=%d" msgid "getLastInsertId(%s): problem fetching lastval? row=%d"
msgstr "getLastInsertId(%s): probléma lastval lekérdezése közben? sor=%d" msgstr "getLastInsertId(%s): probléma a lastval lekérdezése közben? sor=%d"
#: Database.py:926 #: Database.py:926
msgid "getLastInsertId(): unknown backend: %d" msgid "getLastInsertId(): unknown backend: %d"
@ -398,7 +398,7 @@ msgstr "Hiba analyze közben:"
#: Database.py:1563 #: Database.py:1563
msgid "Analyze took %.1f seconds" msgid "Analyze took %.1f seconds"
msgstr "Analyze %1.f másodpercig tartott" msgstr "Analyze %.1f másodpercig tartott"
#: Database.py:1573 Database.py:1579 #: Database.py:1573 Database.py:1579
msgid "Error during vacuum:" msgid "Error during vacuum:"
@ -854,8 +854,8 @@ msgid ""
"GuiBulkImport done: Stored: %d \tDuplicates: %d \tPartial: %d \tErrors: %d " "GuiBulkImport done: Stored: %d \tDuplicates: %d \tPartial: %d \tErrors: %d "
"in %s seconds - %.0f/sec" "in %s seconds - %.0f/sec"
msgstr "" msgstr ""
"GuiBulkImport kész: Tárolt: %d \tDuplikáció: %d \tRészleges: %d \tHibák: %d " "GuiBulkImport kész: Tárolt: %d \tDuplikáció: %d \tRészleges: %d \tHibák: %d %"
"%s másodperc alatt - %.0f/mp" "s másodperc alatt - %.0f/mp"
#: GuiDatabase.py:106 GuiLogView.py:96 #: GuiDatabase.py:106 GuiLogView.py:96
msgid "Refresh" msgid "Refresh"
@ -1242,7 +1242,7 @@ msgstr "A naplófájl "
#: HUD_main.pyw:90 #: HUD_main.pyw:90
msgid "HUD_main starting: using db name = %s" msgid "HUD_main starting: using db name = %s"
msgstr "HUD_main indítás: " msgstr "HUD_main indítás: %s adatbázis használata"
#: HUD_main.pyw:95 #: HUD_main.pyw:95
msgid "Note: error output is being diverted to:\n" msgid "Note: error output is being diverted to:\n"
@ -1306,15 +1306,15 @@ msgstr "\"%s\" nevű asztal már nem létezik\n"
#: HUD_main.pyw:321 #: HUD_main.pyw:321
msgid "" msgid ""
"HUD_main.read_stdin: hand read in %4.3f seconds (%4.3f,%4.3f,%4.3f,%4.3f," "HUD_main.read_stdin: hand read in %4.3f seconds (%4.3f,%4.3f,%4.3f,%4.3f,%"
"%4.3f,%4.3f)" "4.3f,%4.3f)"
msgstr "" msgstr ""
"HUD_main.read_stdin: leosztás beolvasva %4.3f mp alatt (%4.3f,%4.3f,%4.3f," "HUD_main.read_stdin: leosztás beolvasva %4.3f mp alatt (%4.3f,%4.3f,%4.3f,%"
"%4.3f,%4.3f,%4.3f)" "4.3f,%4.3f,%4.3f)"
#: HUD_run_me.py:45 #: HUD_run_me.py:45
msgid "HUD_main starting\n" msgid "HUD_main starting\n"
msgstr "HUD_main indítása\n" msgstr "HUD_main indítás\n"
#: HUD_run_me.py:51 TournamentTracker.py:317 #: HUD_run_me.py:51 TournamentTracker.py:317
msgid "Using db name = %s\n" msgid "Using db name = %s\n"
@ -1772,7 +1772,7 @@ msgstr "utcTime:"
#: HandHistoryConverter.py:685 #: HandHistoryConverter.py:685
msgid "Unable to create output directory %s for HHC!" msgid "Unable to create output directory %s for HHC!"
msgstr "A %s kimeneti könyvtár nem hozható létre a feldolgozó számára'" msgstr "A %s kimeneti könyvtár nem hozható létre a feldolgozó számára!"
#: HandHistoryConverter.py:686 #: HandHistoryConverter.py:686
msgid "*** ERROR: UNABLE TO CREATE OUTPUT DIRECTORY" msgid "*** ERROR: UNABLE TO CREATE OUTPUT DIRECTORY"
@ -3136,8 +3136,8 @@ msgstr ""
"GPL2 vagy újabb licensszel.\n" "GPL2 vagy újabb licensszel.\n"
"A Windows telepítő csomag tartalmaz MIT licensz hatálya alá eső részeket " "A Windows telepítő csomag tartalmaz MIT licensz hatálya alá eső részeket "
"is.\n" "is.\n"
"A licenszek szövegét megtalálod az fpdb főkönyvtárában az agpl-3.0.txt, " "A licenszek szövegét megtalálod az fpdb főkönyvtárában az agpl-3.0.txt, gpl-"
"gpl-2.0.txt, gpl-3.0.txt és mit.txt fájlokban." "2.0.txt, gpl-3.0.txt és mit.txt fájlokban."
#: fpdb.pyw:1078 #: fpdb.pyw:1078
msgid "Help" msgid "Help"
@ -3265,7 +3265,7 @@ msgid ""
"Error No.%s please send the hand causing this to fpdb-main@lists.sourceforge." "Error No.%s please send the hand causing this to fpdb-main@lists.sourceforge."
"net so we can fix the problem." "net so we can fix the problem."
msgstr "" msgstr ""
"%s számú hiba. Kérlek küldd el az ezt okozo leosztást az fpdb-main@lists." "%s számú hiba. Kérlek küldd el az ezt okozó leosztást az fpdb-main@lists."
"sourceforge.net címre, hogy ki tudjuk javítani a hibát." "sourceforge.net címre, hogy ki tudjuk javítani a hibát."
#: fpdb_import.py:520 #: fpdb_import.py:520