From 0b369ad8539b52f17f5c1c141bf10312b8c29aea Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 00:02:58 +0200 Subject: [PATCH] update ebuilds for pt and zh --- packaging/gentoo/current.ebuild | 10 +++++++++- packaging/gentoo/fpdb-9999.ebuild | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/packaging/gentoo/current.ebuild b/packaging/gentoo/current.ebuild index 66c07db4..76c2c86d 100644 --- a/packaging/gentoo/current.ebuild +++ b/packaging/gentoo/current.ebuild @@ -17,7 +17,7 @@ SLOT="0" KEYWORDS="~amd64 ~x86" #note: fpdb has only been tested on x86 and amd64, but should work on other arches, too -IUSE="graph mysql postgres sqlite linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_pl linguas_ru" +IUSE="graph mysql postgres sqlite linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_pl linguas_pt linguas_ru linguas_zh" RDEPEND=" mysql? ( virtual/mysql dev-python/mysql-python ) @@ -63,10 +63,18 @@ src_install() { msgfmt pyfpdb/locale/fpdb-pl_PL.po -o pyfpdb/locale/pl.mo || die "failed to create Polish mo file" fi + if use linguas_pt; then + msgfmt pyfpdb/locale/fpdb-pt_BR.po -o pyfpdb/locale/pt.mo || die "failed to create Portugese mo file" + fi + if use linguas_ru; then msgfmt pyfpdb/locale/fpdb-ru_RU.po -o pyfpdb/locale/ru.mo || die "failed to create Russian mo file" fi + if use linguas_zh; then + msgfmt pyfpdb/locale/fpdb-zh_CN.po -o pyfpdb/locale/zh.mo || die "failed to create Chinese mo file" + fi + domo pyfpdb/locale/*.mo || die "failed to install mo files" doins readme.txt || die "failed to install readme.txt file" diff --git a/packaging/gentoo/fpdb-9999.ebuild b/packaging/gentoo/fpdb-9999.ebuild index f65255eb..d5596f92 100644 --- a/packaging/gentoo/fpdb-9999.ebuild +++ b/packaging/gentoo/fpdb-9999.ebuild @@ -17,7 +17,7 @@ SLOT="0" KEYWORDS="" #note: fpdb has only been tested on x86 and amd64, but should work on other arches, too -IUSE="graph mysql postgres sqlite linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_pl linguas_ru" +IUSE="graph mysql postgres sqlite linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_pl linguas_pt linguas_ru linguas_zh" RDEPEND=" mysql? ( virtual/mysql dev-python/mysql-python ) @@ -66,10 +66,18 @@ src_install() { msgfmt pyfpdb/locale/fpdb-pl_PL.po -o pyfpdb/locale/pl.mo || die "failed to create Polish mo file" fi + if use linguas_pt; then + msgfmt pyfpdb/locale/fpdb-pt_BR.po -o pyfpdb/locale/pt.mo || die "failed to create Portugese mo file" + fi + if use linguas_ru; then msgfmt pyfpdb/locale/fpdb-ru_RU.po -o pyfpdb/locale/ru.mo || die "failed to create Russian mo file" fi + if use linguas_zh; then + msgfmt pyfpdb/locale/fpdb-zh_CN.po -o pyfpdb/locale/zh.mo || die "failed to create Chinese mo file" + fi + domo pyfpdb/locale/*.mo || die "failed to install mo files" doins readme.txt || die "failed to install readme.txt file"