summaryrefslogtreecommitdiff
path: root/app-office/lyx/lyx-2.1.5-r1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-office/lyx/lyx-2.1.5-r1.ebuild')
-rw-r--r--app-office/lyx/lyx-2.1.5-r1.ebuild17
1 files changed, 5 insertions, 12 deletions
diff --git a/app-office/lyx/lyx-2.1.5-r1.ebuild b/app-office/lyx/lyx-2.1.5-r1.ebuild
index 3e4ad4766551..13dd28fd8d63 100644
--- a/app-office/lyx/lyx-2.1.5-r1.ebuild
+++ b/app-office/lyx/lyx-2.1.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -19,14 +19,7 @@ SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/${MY_P}.tar.xz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos"
-IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant"
-
-LANGS="ar ca cs de da el en es eu fi fr gl he hu ia id it ja nb nn pl pt ro ru sk sr sv tr uk zh_CN zh_TW"
-
-for X in ${LANGS}; do
- IUSE="${IUSE} linguas_${X}"
-done
-
+IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant l10n_he"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
@@ -66,7 +59,7 @@ RDEPEND="${COMMONDEPEND}
app-text/unrtf
dev-tex/html2latex
)
- linguas_he? ( dev-tex/culmus-latex )
+ l10n_he? ( dev-tex/culmus-latex )
docbook? ( app-text/sgmltools-lite )
dot? ( media-gfx/graphviz )
dia? ( app-office/dia )
@@ -112,7 +105,7 @@ src_configure() {
src_install() {
default
- if use linguas_he ; then
+ if use l10n_he ; then
echo "\bind_file cua" > "${T}"/hebrew.bind
echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
@@ -155,7 +148,7 @@ pkg_postinst() {
fi
# instructions for RTL support. See also bug 168331.
- if use linguas_he || use linguas_ar; then
+ if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then
elog
elog "Enabling RTL support in LyX:"
elog "If you intend to use a RTL language (such as Hebrew or Arabic)"