summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-10-31 18:05:12 +0100
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-11-03 19:14:54 +0100
commit96993445565c5abfcd64c8c71a626a4422cd2ef9 (patch)
treee284fa99cffe6908980a39a66c3c6e1e2ae6073c /app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild
parentapp-office/libreoffice: Version bump to 4.4.6.3 final release (diff)
downloadgentoo-96993445565c5abfcd64c8c71a626a4422cd2ef9.tar.gz
gentoo-96993445565c5abfcd64c8c71a626a4422cd2ef9.tar.bz2
gentoo-96993445565c5abfcd64c8c71a626a4422cd2ef9.zip
app-office/libreoffice-l10n: Version bump, die
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild')
-rw-r--r--app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild b/app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild
index 90fc1a5d2563..d22c2b54140a 100644
--- a/app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild
+++ b/app-office/libreoffice-l10n/libreoffice-l10n-5.0.3.2.ebuild
@@ -45,11 +45,11 @@ RESTRICT="strip"
S="${WORKDIR}"
-src_unpack() {
- default
+src_prepare() {
+ local lang dir rpmdir
- local lang dir rpmdir i
- local ooextused=()
+ # First remove dictionaries, we want to use system ones.
+ find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
for lang in ${LANGUAGES}; do
# break away if not enabled; paludis support
@@ -60,21 +60,18 @@ src_unpack() {
# for english we provide just helppack, as translation is always there
if [[ ${lang} != en ]]; then
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
- [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
- # First remove dictionaries, we want to use system ones.
- rm -rf "${S}/${rpmdir}/"*dict*.rpm
- rpm_unpack "./${rpmdir}/"*.rpm
+ [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
+ rpm_unpack ./${rpmdir}/*.rpm
fi
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
[[ ${lang} == en ]] && dir="en-US"
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
- [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
- rpm_unpack ./"${rpmdir}/"*.rpm
+ [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
+ rpm_unpack ./${rpmdir}/*.rpm
fi
done
}
-src_prepare() { :; }
src_configure() { :; }
src_compile() { :; }
@@ -87,5 +84,6 @@ src_install() {
doins -r "${dir}"/*
fi
# remove extensions that are in the l10n for some weird reason
- rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
+ rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
+ die "Failed to remove extensions"
}