commit: b3884925015a347337f384147202650bd841e9ef
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Mon May 25 13:06:33 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed May 27 12:07:04 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=b3884925
[kde-apps/kde-l10n] Fix LINGUAS=sr
Package-Manager: portage-2.2.18
kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild
b/kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild
index 98eb79e..890095b 100644
--- a/kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild
+++ b/kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild
@@ -55,14 +55,24 @@ src_prepare() {
DIR="${PN}-${LNG}-${PV}"
if [[ -d "${DIR}" ]] ; then
echo "add_subdirectory( ${DIR} )" >>
"${S}"/CMakeLists.txt
+
# Drop KDE4-based part
sed -e '/add_subdirectory(4)/ s/^/#/'\
-i "${S}"/${DIR}/CMakeLists.txt || die
+
# Handbook optional
sed -e '/KF5DocTools/ s/ REQUIRED//'\
-i
"${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die
- use handbook || sed -e
'/add_subdirectory(docs)/ s/^/#/'\
- -i
"${S}"/${DIR}/5/${LNG}/CMakeLists.txt || dies
+ if ! use handbook ; then
+ sed -e '/add_subdirectory(docs)/
s/^/#/'\
+ -i
"${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die
+ fi
+
+ # Fix broken LINGUAS=sr (KDE4 leftover)
+ if [[ ${LNG} = "sr" ]] ; then
+ sed -e '/add_subdirectory(lokalize)/
s/^/#/'\
+ -i
"${S}"/${DIR}/5/${LNG}/data/kdesdk/CMakeLists.txt || die
+ fi
fi
done
fi