Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/libreoffice-l10n: libreoffice-l10n-4.1.3.2.ebuild ChangeLog libreoffice-l10n-4.0.5.2.ebuild libreoffice-l10n-4.1.2.2.ebuild
Date: Thu, 31 Oct 2013 15:46:29
Message-Id: 20131031154626.139B520047@flycatcher.gentoo.org
1 scarabeus 13/10/31 15:46:25
2
3 Modified: ChangeLog
4 Added: libreoffice-l10n-4.1.3.2.ebuild
5 Removed: libreoffice-l10n-4.0.5.2.ebuild
6 libreoffice-l10n-4.1.2.2.ebuild
7 Log:
8 Version bump to 4.1.3.2 and cleanup older.
9
10 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)
11
12 Revision Changes Path
13 1.92 app-office/libreoffice-l10n/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.92&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?rev=1.92&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/ChangeLog?r1=1.91&r2=1.92
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v
22 retrieving revision 1.91
23 retrieving revision 1.92
24 diff -u -r1.91 -r1.92
25 --- ChangeLog 27 Oct 2013 12:05:00 -0000 1.91
26 +++ ChangeLog 31 Oct 2013 15:46:25 -0000 1.92
27 @@ -1,6 +1,13 @@
28 # ChangeLog for app-office/libreoffice-l10n
29 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.91 2013/10/27 12:05:00 ago Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.92 2013/10/31 15:46:25 scarabeus Exp $
32 +
33 +*libreoffice-l10n-4.1.3.2 (31 Oct 2013)
34 +
35 + 31 Oct 2013; Tomáš Chvátal <scarabeus@g.o>
36 + +libreoffice-l10n-4.1.3.2.ebuild, -libreoffice-l10n-4.0.5.2.ebuild,
37 + -libreoffice-l10n-4.1.2.2.ebuild:
38 + Version bump to 4.1.3.2 and cleanup older.
39
40 27 Oct 2013; Agostino Sarubbo <ago@g.o>
41 libreoffice-l10n-4.1.2.3.ebuild:
42
43
44
45 1.1 app-office/libreoffice-l10n/libreoffice-l10n-4.1.3.2.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-4.1.3.2.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-4.1.3.2.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libreoffice-l10n-4.1.3.2.ebuild
51 ===================================================================
52 # Copyright 1999-2013 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-4.1.3.2.ebuild,v 1.1 2013/10/31 15:46:25 scarabeus Exp $
55
56 EAPI=4
57
58 inherit rpm eutils multilib versionator
59
60 MY_PV=$(get_version_component_range 1-3)
61
62 DESCRIPTION="Translations for the Libreoffice suite."
63 HOMEPAGE="http://www.libreoffice.org"
64 BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
65
66 LICENSE="|| ( LGPL-3 MPL-1.1 )"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
69 IUSE="offlinehelp"
70
71 LANGUAGES_HELP="am ast bg bn_IN bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA
72 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
73 pt_BR pt ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
74 LANGUAGES="${LANGUAGES_HELP} af ar as be br brx cy dgo fa ga gd kk kn kok ks ku
75 lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr
76 ss st sw_TZ ta te th tn ts tt uz ve xh zu"
77
78 for lang in ${LANGUAGES_HELP}; do
79 helppack=""
80 [[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
81 helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
82 SRC_URI+=" linguas_${lang}? ( ${helppack} )"
83 done
84 for lang in ${LANGUAGES}; do
85 langpack=""
86 [[ ${lang} == en ]] \
87 || langpack="${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
88 [[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
89 IUSE+=" linguas_${lang}"
90 done
91 unset lang helppack langpack lang2
92
93 RDEPEND+="app-text/hunspell"
94
95 RESTRICT="strip"
96
97 S="${WORKDIR}"
98
99 src_unpack() {
100 default
101
102 local lang dir rpmdir i
103 local ooextused=()
104
105 for lang in ${LANGUAGES}; do
106 # break away if not enabled; paludis support
107 use_if_iuse linguas_${lang} || continue
108
109 dir=${lang/_/-}
110
111 # for english we provide just helppack, as translation is always there
112 if [[ ${lang} != en ]]; then
113 rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
114 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
115 # First remove dictionaries, we want to use system ones.
116 rm -rf "${S}/${rpmdir}/"*dict*.rpm
117 rpm_unpack "./${rpmdir}/"*.rpm
118 fi
119 if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
120 [[ ${lang} == en ]] && dir="en-US"
121 rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
122 [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
123 rpm_unpack ./"${rpmdir}/"*.rpm
124 fi
125 done
126 }
127
128 src_prepare() { :; }
129 src_configure() { :; }
130 src_compile() { :; }
131
132 src_install() {
133 local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
134 # Condition required for people that do not install anything eg no linguas
135 # or just english with no offlinehelp.
136 if [[ -d "${dir}" ]] ; then
137 insinto /usr/$(get_libdir)/${PN/-l10n/}/
138 doins -r "${dir}"/*
139 fi
140 # remove extensions that are in the l10n for some weird reason
141 rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
142 }