summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-01-09 02:10:03 +0100
committerUlrich Müller <ulm@gentoo.org>2018-01-09 02:10:03 +0100
commit5c5fb385de94eda4cadb2ca5b4c079752ad6e625 (patch)
tree2de3a665b4ff94ebfc2d6e8c7966bfcfd8601ebc /sci-visualization/zhu3d
parentsci-visualization/zhu3d: Drop old (diff)
downloadgentoo-5c5fb385de94eda4cadb2ca5b4c079752ad6e625.tar.gz
gentoo-5c5fb385de94eda4cadb2ca5b4c079752ad6e625.tar.bz2
gentoo-5c5fb385de94eda4cadb2ca5b4c079752ad6e625.zip
sci-visualization/zhu3d: Migrate from LINGUAS to L10N.
Call explicit dodoc rather than einstalldocs, in order to be selective on languages. Replace dohtml by insinto and dodoc. Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'sci-visualization/zhu3d')
-rw-r--r--sci-visualization/zhu3d/zhu3d-4.2.6-r1.ebuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/sci-visualization/zhu3d/zhu3d-4.2.6-r1.ebuild b/sci-visualization/zhu3d/zhu3d-4.2.6-r1.ebuild
index bbd09ac9b8e..ac1712166ff 100644
--- a/sci-visualization/zhu3d/zhu3d-4.2.6-r1.ebuild
+++ b/sci-visualization/zhu3d/zhu3d-4.2.6-r1.ebuild
@@ -12,7 +12,9 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+
+LANGS=(cs de es fr zh)
+IUSE="${LANGS[@]/#/l10n_}"
DEPEND="
dev-qt/qtcore:5
@@ -25,9 +27,6 @@ DEPEND="
"
RDEPEND="${DEPEND}"
-DOCS=( {readme,src/changelog}.txt )
-HTML_DOCS=( doc/. )
-
PATCHES=( "${FILESDIR}"/${P}-qt5.patch )
src_prepare() {
@@ -54,18 +53,17 @@ src_install() {
# not working: emake install INSTALL_ROOT="${D}" || die
dobin zhu3d
- einstalldocs
+ dodoc readme.txt src/changelog.txt
- local lang
- for lang in ${LANGS} ; do
- if use linguas_${lang} ; then
+ docinto html
+ dodoc doc/*.png doc/${PN}_en.html
- insinto /usr/share/${PN}/system/languages
+ local lang
+ insinto /usr/share/${PN}/system/languages
+ for lang in "${LANGS[@]}" ; do
+ if use l10n_${lang} ; then
doins system/languages/${PN}_${lang}.qm
-
- if [ -e doc/${PN}_${lang}.html ] ; then
- dohtml doc/${PN}_${lang}.html
- fi
+ [[ -e doc/${PN}_${lang}.html ]] && dodoc doc/${PN}_${lang}.html
fi
done