summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-05-25 15:06:33 +0200
committerMichael Palimaka <kensington@gentoo.org>2015-05-27 22:07:04 +1000
commitb3884925015a347337f384147202650bd841e9ef (patch)
tree6044411aff8052a970ee3ad9497b69148c33e3b6
parentfa7e9cc191104fe35af76bff252291062e1bcae0 (diff)
downloadkde-b3884925015a347337f384147202650bd841e9ef.tar.gz
kde-b3884925015a347337f384147202650bd841e9ef.tar.bz2
kde-b3884925015a347337f384147202650bd841e9ef.zip
[kde-apps/kde-l10n] Fix LINGUAS=sr
Package-Manager: portage-2.2.18
-rw-r--r--kde-apps/kde-l10n/kde-l10n-15.04.1.ebuild14
1 files 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 98eb79ebfcd..890095b1303 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