1 |
chithanh 14/08/28 09:57:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openoffice-bin-4.1.1.ebuild |
5 |
Log: |
6 |
Version bump, security bug #521136. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2324E7B566DF2611!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.271 app-office/openoffice-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.271&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.271&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?r1=1.270&r2=1.271 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v |
20 |
retrieving revision 1.270 |
21 |
retrieving revision 1.271 |
22 |
diff -u -r1.270 -r1.271 |
23 |
--- ChangeLog 10 Aug 2014 18:16:56 -0000 1.270 |
24 |
+++ ChangeLog 28 Aug 2014 09:57:37 -0000 1.271 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/openoffice-bin |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.270 2014/08/10 18:16:56 slyfox Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.271 2014/08/28 09:57:37 chithanh Exp $ |
30 |
+ |
31 |
+*openoffice-bin-4.1.1 (28 Aug 2014) |
32 |
+ |
33 |
+ 28 Aug 2014; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
34 |
+ +openoffice-bin-4.1.1.ebuild: |
35 |
+ Version bump, security bug #521136. |
36 |
|
37 |
10 Aug 2014; Sergei Trofimovich <slyfox@g.o> |
38 |
openoffice-bin-4.0.1.ebuild, openoffice-bin-4.1.0.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/openoffice-bin/openoffice-bin-4.1.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.1.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.1.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openoffice-bin-4.1.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.1.1.ebuild,v 1.1 2014/08/28 09:57:37 chithanh Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
|
55 |
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib |
56 |
|
57 |
IUSE="gnome java" |
58 |
|
59 |
BUILDID="9775" |
60 |
BVER="${PV/_rc*/}-${BUILDID}" |
61 |
BVER2=4.1.1-${BUILDID} |
62 |
BASIS="ooobasis4.1" |
63 |
BASIS2="basis4.1" |
64 |
NM="openoffice" |
65 |
NM1="${NM}-brand" |
66 |
NM2="${NM}4" |
67 |
NM3="${NM2}.1.1" |
68 |
FILEPATH="mirror://sourceforge/openofficeorg.mirror" |
69 |
if [ "${ARCH}" = "amd64" ] ; then |
70 |
XARCH="x86_64" |
71 |
else |
72 |
XARCH="i586" |
73 |
fi |
74 |
UP="en-US/RPMS" |
75 |
|
76 |
DESCRIPTION="Apache OpenOffice productivity suite" |
77 |
HOMEPAGE="http://www.openoffice.org/" |
78 |
SRC_URI="amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz ) |
79 |
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_install-rpm_en-US.tar.gz )" |
80 |
|
81 |
# TODO: supports ca_XR (Valencian RACV) locale too |
82 |
LANGS="ast eu bg ca ca_XV zh_CN zh_TW cs da nl en_GB fi fr gd gl de el he hi hu it ja km ko lt nb pl pt_BR pt ru sr sk sl es sv ta th tr vi" |
83 |
|
84 |
for X in ${LANGS} ; do |
85 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
86 |
amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz ) |
87 |
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )" |
88 |
IUSE="${IUSE} linguas_${X}" |
89 |
done |
90 |
|
91 |
LICENSE="Apache-2.0" |
92 |
SLOT="0" |
93 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
94 |
|
95 |
RDEPEND=" |
96 |
!app-office/openoffice |
97 |
!prefix? ( sys-libs/glibc ) |
98 |
app-arch/unzip |
99 |
app-arch/zip |
100 |
>=dev-lang/perl-5.0 |
101 |
dev-lang/python:2.7 |
102 |
>=media-libs/freetype-2.1.10-r2 |
103 |
x11-libs/libXaw |
104 |
x11-libs/libXinerama" |
105 |
|
106 |
DEPEND="${RDEPEND} |
107 |
sys-apps/findutils" |
108 |
|
109 |
PDEPEND="java? ( >=virtual/jre-1.5 )" |
110 |
|
111 |
RESTRICT="strip" |
112 |
|
113 |
QA_PREBUILT="usr/$(get_libdir)/${NM}/program/*" |
114 |
QA_TEXTRELS="usr/$(get_libdir)/${NM}/program/libvclplug_genli.so" |
115 |
|
116 |
S=${WORKDIR} |
117 |
|
118 |
src_unpack() { |
119 |
|
120 |
unpack ${A} |
121 |
|
122 |
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}" |
123 |
eprefixify "${T}"/{50-${PN},wrapper.in} |
124 |
|
125 |
for i in base calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno ure writer xsltfilter ; do |
126 |
rpm_unpack "./${UP}/${NM}-${i}-${BVER}.${XARCH}.rpm" |
127 |
done |
128 |
|
129 |
rpm_unpack "./${UP}/${NM}-${BVER}.${XARCH}.rpm" |
130 |
|
131 |
for j in base calc draw impress math writer; do |
132 |
rpm_unpack "./${UP}/${NM1}-${j}-${BVER}.${XARCH}.rpm" |
133 |
done |
134 |
|
135 |
rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm" |
136 |
|
137 |
use gnome && rpm_unpack "./${UP}/${NM}-gnome-integration-${BVER}.${XARCH}.rpm" |
138 |
use java && rpm_unpack "./${UP}/${NM}-javafilter-${BVER}.${XARCH}.rpm" |
139 |
|
140 |
# English support installed by default |
141 |
rpm_unpack "./${UP}/${NM}-en-US-${BVER}.${XARCH}.rpm" |
142 |
rpm_unpack "./${UP}/${NM1}-en-US-${BVER}.${XARCH}.rpm" |
143 |
for s in base calc draw help impress math res writer ; do |
144 |
rpm_unpack "./${UP}/${NM}-en-US-${s}-${BVER}.${XARCH}.rpm" |
145 |
done |
146 |
|
147 |
# Localization |
148 |
strip-linguas ${LANGS} |
149 |
for l in ${LINGUAS}; do |
150 |
m="${l/_/-}" |
151 |
if [[ ${m} != "en" ]] ; then |
152 |
LANGDIR="${m}/RPMS/" |
153 |
rpm_unpack "./${LANGDIR}/${NM}-${m}-${BVER}.${XARCH}.rpm" |
154 |
rpm_unpack "./${LANGDIR}/${NM1}-${m}-${BVER}.${XARCH}.rpm" |
155 |
for n in base calc draw help impress math res writer; do |
156 |
rpm_unpack "./${LANGDIR}/${NM}-${m}-${n}-${BVER}.${XARCH}.rpm" |
157 |
done |
158 |
|
159 |
fi |
160 |
done |
161 |
|
162 |
} |
163 |
|
164 |
src_install () { |
165 |
|
166 |
INSTDIR="/usr/$(get_libdir)/${NM}" |
167 |
dodir ${INSTDIR} |
168 |
# mv "${WORKDIR}"/opt/${NM}/* "${ED}${INSTDIR}" || die |
169 |
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die |
170 |
|
171 |
#Menu entries, icons and mime-types |
172 |
cd "${ED}${INSTDIR}/share/xdg/" |
173 |
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do |
174 |
if [ "${desk}" = "javafilter" ] ; then |
175 |
use java || { rm javafilter.desktop; continue; } |
176 |
fi |
177 |
mv ${desk}.desktop ${NM}-${desk}.desktop |
178 |
sed -i -e "s/${NM2} /ooffice /g" ${NM}-${desk}.desktop || die |
179 |
domenu ${NM}-${desk}.desktop |
180 |
done |
181 |
insinto /usr/share |
182 |
doins -r "${WORKDIR}"/usr/share/icons |
183 |
doins -r "${WORKDIR}"/usr/share/mime |
184 |
|
185 |
# Make sure the permissions are right |
186 |
use prefix || fowners -R root:0 / |
187 |
|
188 |
# Install wrapper script |
189 |
newbin "${T}/wrapper.in" ooffice |
190 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die |
191 |
|
192 |
# Component symlinks |
193 |
for app in base calc draw impress math writer; do |
194 |
cp "${ED}/usr/bin/ooffice" "${ED}/usr/bin/oo${app}" |
195 |
sed -i -e s/soffice/s${app}/ "${ED}/usr/bin/oo${app}" || die |
196 |
done |
197 |
|
198 |
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin |
199 |
dosym ${INSTDIR}/program/soffice /usr/bin/soffice |
200 |
|
201 |
# Non-java weirdness see bug #99366 |
202 |
use !java && rm -f "${ED}${INSTDIR}/program/javaldx" |
203 |
|
204 |
# prevent revdep-rebuild from attempting to rebuild all the time |
205 |
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" |
206 |
|
207 |
# remove soffice bin to avoid collision with libreoffice |
208 |
rm -rf "${ED}${EPREFIX}/usr/bin/soffice" |
209 |
|
210 |
} |
211 |
|
212 |
pkg_preinst() { |
213 |
|
214 |
use gnome && gnome2_icon_savelist |
215 |
|
216 |
} |
217 |
|
218 |
pkg_postinst() { |
219 |
|
220 |
fdo-mime_desktop_database_update |
221 |
fdo-mime_mime_database_update |
222 |
use gnome && gnome2_icon_cache_update |
223 |
|
224 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin |
225 |
|
226 |
} |
227 |
|
228 |
pkg_postrm() { |
229 |
|
230 |
fdo-mime_desktop_database_update |
231 |
use gnome && gnome2_icon_cache_update |
232 |
|
233 |
} |