summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-24 22:27:02 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-24 23:19:37 +0200
commit4bce39d9586e85e57be5a5e48a120c48a38a9061 (patch)
tree64277909ff227212167e89180964bbb4e7b266ad /dev-tex/serienbrief
parentmedia-fonts/source-han-sans: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-4bce39d9586e85e57be5a5e48a120c48a38a9061.tar.gz
gentoo-4bce39d9586e85e57be5a5e48a120c48a38a9061.tar.bz2
gentoo-4bce39d9586e85e57be5a5e48a120c48a38a9061.zip
dev-tex/serienbrief: Prepare for removal of LINGUAS USE_EXPAND.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-tex/serienbrief')
-rw-r--r--dev-tex/serienbrief/serienbrief-0.2.5.ebuild19
1 files changed, 6 insertions, 13 deletions
diff --git a/dev-tex/serienbrief/serienbrief-0.2.5.ebuild b/dev-tex/serienbrief/serienbrief-0.2.5.ebuild
index c2c8087858a2..279e59167509 100644
--- a/dev-tex/serienbrief/serienbrief-0.2.5.ebuild
+++ b/dev-tex/serienbrief/serienbrief-0.2.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -8,16 +8,10 @@ DESCRIPTION="Easy creation of form letters written in LaTeX"
HOMEPAGE="http://nasauber.de/opensource/serienbrief/"
SRC_URI="http://nasauber.de/opensource/serienbrief/${P}.tar.gz"
-LICENSE="GPL-2"
+LICENSE="GPL-2" # GPLv2 only
SLOT="0"
-IUSE=""
-LINS=("de")
-
-for ((i=0; i<${#LINS[@]}; i++)) do
- IUSE="${IUSE} linguas_${LINS[$i]}"
-done
-
KEYWORDS="~amd64 ~x86"
+IUSE="linguas_de"
DEPEND=""
RDEPEND=">=dev-lang/perl-5.8.6
@@ -29,10 +23,9 @@ RDEPEND=">=dev-lang/perl-5.8.6
src_install() {
dobin bin/serienbrief
doman doc/serienbrief.1
- if use linguas_de; then
- mv po/de.mo serienbrief.mo
- insinto /usr/share/locale/de/LC_MESSAGES
- doins serienbrief.mo
+ # install if LINGUAS is unset, or if it contains the language code
+ if [[ -z ${LINGUAS+set} ]] || has de ${LINGUAS}; then
+ domo po/de.mo
fi
dodoc ChangeLog doc/example/*
}