* [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-l10n: metadata.xml ChangeLog libreoffice-l10n-3.4.3.ebuild
@ 2011-09-03 11:45 Tomas Chvatal (scarabeus)
0 siblings, 0 replies; only message in thread
From: Tomas Chvatal (scarabeus) @ 2011-09-03 11:45 UTC (permalink / raw
To: gentoo-commits
scarabeus 11/09/03 11:45:52
Added: metadata.xml ChangeLog
libreoffice-l10n-3.4.3.ebuild
Log:
Add new package to contain split languages and helppack for libreoffice. Fixes bug #381155.
(Portage version: 2.2.0_alpha52/cvs/Linux x86_64)
Revision Changes Path
1.1 app-office/libreoffice-l10n/metadata.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/metadata.xml?rev=1.1&content-type=text/plain
Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>openoffice</herd>
<use>
<flag name="offlinehelp">Install help files locally instead of
using the LibreOffice Wiki</flag>
</use>
</pkgmetadata>
1.1 app-office/libreoffice-l10n/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.1&content-type=text/plain
Index: ChangeLog
===================================================================
# ChangeLog for app-office/libreoffice-l10n
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.1 2011/09/03 11:45:52 scarabeus Exp $
*libreoffice-l10n-3.4.3 (03 Sep 2011)
03 Sep 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+libreoffice-l10n-3.4.3.ebuild, +metadata.xml:
Add new package to contain split languages and helppack for libreoffice.
Fixes bug #381155.
1.1 app-office/libreoffice-l10n/libreoffice-l10n-3.4.3.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.3.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.3.ebuild?rev=1.1&content-type=text/plain
Index: libreoffice-l10n-3.4.3.ebuild
===================================================================
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.3.ebuild,v 1.1 2011/09/03 11:45:52 scarabeus Exp $
EAPI=4
RC_VERSION="rc2" # CHECK ME WITH EVERY BUMP!
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${PV}/rpm/"
inherit rpm eutils versionator
DESCRIPTION="Translations for the Libreoffice suite."
HOMEPAGE="http://www.libreoffice.org"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="offlinehelp"
LANGUAGES="af ar as ast be bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el
en en_GB en_ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km
kn kok ko ks ku lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc or
pa_IN pl pt pt_BR ro ru rw sat sd sh sk sl sq sr ss st sv sw_TZ ta te tg
th tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu"
# Only some languages have the translations availible.
# This is always subset of the above, so no need to add it again to IUSE.
LANGUAGES_HELP="bg bn bo bs ca ca_XV cs da de dz el en en_GB en_ZA eo es et eu
fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt pt_BR ru si
sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
for lang in ${LANGUAGES}; do
helppack=""
langpack=""
if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]]; then
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
helppack=" offlinehelp? ( ${BASE_SRC_URI}/x86/LibO_${PV}_Linux_x86_helppack-rpm_${lang2/_/-}.tar.gz ) "
fi
[[ ${lang} == en ]] \
|| langpack=" ${BASE_SRC_URI}/x86/LibO_${PV}_Linux_x86_langpack-rpm_${lang/_/-}.tar.gz "
SRC_URI+=" linguas_${lang}? (
${langpack}
${helppack}
)"
IUSE+=" linguas_${lang}"
done
unset lang helppack langpack lang2
# dictionaries
SPELL_DICTS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk
nb nl nn pl pt ru sk sl sv tn zu"
for X in ${SPELL_DICTS} ; do
SPELL_DICTS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
done
unset X
RDEPEND="${SPELL_DICTS_DEPEND}"
unset X SPELL_DICTS SPELL_DICTS_DEPEND
RESTRICT="strip"
S="${WORKDIR}"
src_unpack() {
default
local lang dir rpmdir
for lang in ${LINGUAS}; do
dir=${lang/_/-}
# for english we provide just helppack, as translation is always there
if [[ ${lang} != en ]]; then
rpmdir="LibO_${PV}${RC_VERSION}_Linux_x86_langpack-rpm_${dir}/RPMS/"
rpm_unpack "./${rpmdir}/"*.rpm
fi
if use offlinehelp; then
[[ ${lang} == en ]] && dir="en-US"
rpmdir="LibO_${PV}${RC_VERSION}_Linux_x86_helppack-rpm_${dir}/RPMS/"
rpm_unpack ./"${rpmdir}/"*.rpm
fi
done
}
src_prepare() { :; }
src_configure() { :; }
src_compile() { :; }
src_install() {
insinto /usr/$(get_libdir)/${PN/-l10n/}
doins -r "${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/*
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-03 11:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 11:45 [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-l10n: metadata.xml ChangeLog libreoffice-l10n-3.4.3.ebuild Tomas Chvatal (scarabeus)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox