ebuild: added support for IUSE="linguas_hu"

For now we just symlinking the mo file to its proper place under /usr/share/locale/hu
This commit is contained in:
Erki Ferenc 2010-08-25 23:17:30 +02:00
parent de9d48cc6a
commit f07a16cee4
2 changed files with 69 additions and 59 deletions

View File

@ -17,44 +17,49 @@ 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" IUSE="graph mysql postgres sqlite linguas_hu"
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
doins readme.txt
exeinto "${GAMES_DATADIR}"/${PN} if use linguas_hu; then
doexe run_fpdb.py dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo
fi
dodir "${GAMES_BINDIR}" doins readme.txt
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png exeinto "${GAMES_DATADIR}"/${PN}
make_desktop_entry ${PN} doexe run_fpdb.py
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw dodir "${GAMES_BINDIR}"
prepgamesdirs dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png
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

@ -18,48 +18,53 @@ 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" IUSE="graph mysql postgres sqlite linguas_hu"
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
doins readme.txt
exeinto "${GAMES_DATADIR}"/${PN} if use linguas_hu; then
doexe run_fpdb.py dosym "${GAMES_DATADIR}"/${PN}/pyfpdb/locale/hu/LC_MESSAGES/${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${PN}.mo
fi
dodir "${GAMES_BINDIR}" doins readme.txt
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png exeinto "${GAMES_DATADIR}"/${PN}
make_desktop_entry ${PN} doexe run_fpdb.py
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw dodir "${GAMES_BINDIR}"
prepgamesdirs dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png
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."
} }