1 |
chithanh 12/08/30 20:43:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openoffice-bin-3.4.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.258 app-office/openoffice-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.258&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.258&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?r1=1.257&r2=1.258 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v |
20 |
retrieving revision 1.257 |
21 |
retrieving revision 1.258 |
22 |
diff -u -r1.257 -r1.258 |
23 |
--- ChangeLog 16 Aug 2012 07:46:35 -0000 1.257 |
24 |
+++ ChangeLog 30 Aug 2012 20:43:40 -0000 1.258 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/openoffice-bin |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.257 2012/08/16 07:46:35 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.258 2012/08/30 20:43:40 chithanh Exp $ |
30 |
+ |
31 |
+*openoffice-bin-3.4.1 (30 Aug 2012) |
32 |
+ |
33 |
+ 30 Aug 2012; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
34 |
+ +openoffice-bin-3.4.1.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
*openoffice-bin-3.4.0-r2 (16 Aug 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/openoffice-bin/openoffice-bin-3.4.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.4.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.4.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openoffice-bin-3.4.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 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-3.4.1.ebuild,v 1.1 2012/08/30 20:43:40 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="9593" |
60 |
BUILDID2="9593" |
61 |
MST="OOO330_m20" |
62 |
MY_PV="${PV}rc10" |
63 |
MY_PV2="${MY_PV}_20110118" |
64 |
BVER="${PV/_rc*/}-${BUILDID}" |
65 |
BVER2="3.4-${BUILDID2}" |
66 |
BASIS="ooobasis3.4" |
67 |
BASIS2="basis3.4" |
68 |
NM="openoffice" |
69 |
NM1="${NM}.org" |
70 |
NM2="${NM1}3" |
71 |
NM3="${NM2}.4" |
72 |
FILEPATH="mirror://sourceforge/openofficeorg.mirror/localized" |
73 |
if [ "${ARCH}" = "amd64" ] ; then |
74 |
XARCH="x86_64" |
75 |
else |
76 |
XARCH="i586" |
77 |
fi |
78 |
UP="en-US/RPMS" |
79 |
|
80 |
DESCRIPTION="Apache OpenOffice productivity suite." |
81 |
HOMEPAGE="http://www.openoffice.org/" |
82 |
SRC_URI="amd64? ( mirror://sourceforge/openofficeorg.mirror/stable/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz ) |
83 |
x86? ( mirror://sourceforge/openofficeorg.mirror/stable/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86_install-rpm_en-US.tar.gz )" |
84 |
|
85 |
LANGS="ar zh_CN zh_TW cs nl en_GB fi fr gl de hu it ja km pt_BR ru sk sl es" |
86 |
|
87 |
for X in ${LANGS} ; do |
88 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
89 |
amd64? ( "${FILEPATH}"/${X/_/-}/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz ) |
90 |
x86? ( "${FILEPATH}"/${X/_/-}/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )" |
91 |
IUSE="${IUSE} linguas_${X}" |
92 |
done |
93 |
|
94 |
LICENSE="Apache-2.0" |
95 |
SLOT="0" |
96 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
97 |
|
98 |
RDEPEND=" |
99 |
!app-office/openoffice |
100 |
!prefix? ( sys-libs/glibc ) |
101 |
app-arch/unzip |
102 |
app-arch/zip |
103 |
>=dev-lang/perl-5.0 |
104 |
>=media-libs/freetype-2.1.10-r2 |
105 |
x11-libs/libXaw |
106 |
x11-libs/libXinerama" |
107 |
|
108 |
DEPEND="${RDEPEND} |
109 |
sys-apps/findutils" |
110 |
|
111 |
PDEPEND="java? ( >=virtual/jre-1.5 )" |
112 |
|
113 |
RESTRICT="strip" |
114 |
|
115 |
QA_PREBUILT="usr/$(get_libdir)/${NM}/${BASIS2}/program/* |
116 |
usr/$(get_libdir)/${NM}/program/* |
117 |
usr/$(get_libdir)/${NM}/ure/bin/* |
118 |
usr/$(get_libdir)/${NM}/ure/lib/* |
119 |
usr/$(get_libdir)/${NM}/share/prereg/bundled/*/*" |
120 |
QA_TEXTRELS="usr/$(get_libdir)/${NM}/${BASIS2}/program/libvclplug_genli.so \ |
121 |
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/_curses_panel.so \ |
122 |
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/_curses.so \ |
123 |
usr/$(get_libdir)/${NM}/ure/lib/*" |
124 |
|
125 |
S=${WORKDIR} |
126 |
|
127 |
src_unpack() { |
128 |
|
129 |
unpack ${A} |
130 |
|
131 |
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}" |
132 |
eprefixify "${T}"/{50-${PN},wrapper.in} |
133 |
|
134 |
for i in base binfilter calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno testtool writer xsltfilter ; do |
135 |
rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm" |
136 |
done |
137 |
|
138 |
rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm" |
139 |
rpm_unpack "./${UP}/${NM1}-ure-${BVER}.${XARCH}.rpm" |
140 |
|
141 |
for j in base calc draw impress math writer; do |
142 |
rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm" |
143 |
done |
144 |
|
145 |
rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm" |
146 |
|
147 |
use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm" |
148 |
use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm" |
149 |
|
150 |
# English support installed by default |
151 |
rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm" |
152 |
rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm" |
153 |
for s in base binfilter calc draw help impress math res writer ; do |
154 |
rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm" |
155 |
done |
156 |
|
157 |
# Localization |
158 |
strip-linguas ${LANGS} |
159 |
for l in ${LINGUAS}; do |
160 |
m="${l/_/-}" |
161 |
if [[ ${m} != "en" ]] ; then |
162 |
LANGDIR="${m}/RPMS/" |
163 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm" |
164 |
rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm" |
165 |
for n in base binfilter calc draw help impress math res writer; do |
166 |
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm" |
167 |
done |
168 |
|
169 |
fi |
170 |
done |
171 |
|
172 |
} |
173 |
|
174 |
src_install () { |
175 |
|
176 |
INSTDIR="/usr/$(get_libdir)/${NM}" |
177 |
dodir ${INSTDIR} |
178 |
mv "${WORKDIR}"/opt/${NM1}/* "${ED}${INSTDIR}" || die |
179 |
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die |
180 |
|
181 |
#Menu entries, icons and mime-types |
182 |
cd "${ED}${INSTDIR}/share/xdg/" |
183 |
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do |
184 |
if [ "${desk}" = "javafilter" ] ; then |
185 |
use java || { rm javafilter.desktop; continue; } |
186 |
fi |
187 |
mv ${desk}.desktop ${NM1}-${desk}.desktop |
188 |
sed -i -e s/${NM2}/ooffice/g ${NM1}-${desk}.desktop || die |
189 |
domenu ${NM1}-${desk}.desktop |
190 |
done |
191 |
insinto /usr/share |
192 |
doins -r "${WORKDIR}"/usr/share/icons |
193 |
doins -r "${WORKDIR}"/usr/share/mime |
194 |
|
195 |
# Make sure the permissions are right |
196 |
use prefix || fowners -R root:0 / |
197 |
|
198 |
# Install wrapper script |
199 |
newbin "${T}/wrapper.in" ooffice |
200 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die |
201 |
|
202 |
# Component symlinks |
203 |
for app in base calc draw impress math writer; do |
204 |
dosym ${INSTDIR}/program/s${app} /usr/bin/oo${app} |
205 |
done |
206 |
|
207 |
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin |
208 |
dosym ${INSTDIR}/program/soffice /usr/bin/soffice |
209 |
|
210 |
rm -f "${ED}${INSTDIR}/basis-link" || die |
211 |
dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link |
212 |
|
213 |
# Change user install dir |
214 |
sed -i -e "s/.${NM1}\/3/.ooo3/g" "${ED}${INSTDIR}/program/bootstraprc" || die |
215 |
|
216 |
# Non-java weirdness see bug #99366 |
217 |
use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx" |
218 |
|
219 |
# prevent revdep-rebuild from attempting to rebuild all the time |
220 |
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" |
221 |
|
222 |
# remove soffice bin |
223 |
rm -rf "${ED}${EPREFIX}/usr/bin/soffice" |
224 |
|
225 |
# replace all symlinks by bash shell code in order to nicely cope with |
226 |
# libreoffice |
227 |
cd "${ED}${EPREFIX}/usr/bin/" |
228 |
for i in oo*; do |
229 |
[[ ${i} == ooffice ]] && continue |
230 |
|
231 |
rm ${i} |
232 |
cat >> ${i} << EOF |
233 |
#!/usr/bin/env bash |
234 |
pushd "${EPREFIX}/usr/$(get_libdir)/openoffice/program" > /dev/null |
235 |
./${i/oo/s} |
236 |
popd > /dev/null |
237 |
EOF |
238 |
chmod +x ${i} |
239 |
done |
240 |
} |
241 |
|
242 |
pkg_preinst() { |
243 |
|
244 |
use gnome && gnome2_icon_savelist |
245 |
|
246 |
} |
247 |
|
248 |
pkg_postinst() { |
249 |
|
250 |
fdo-mime_desktop_database_update |
251 |
fdo-mime_mime_database_update |
252 |
use gnome && gnome2_icon_cache_update |
253 |
|
254 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin |
255 |
|
256 |
} |
257 |
|
258 |
pkg_postrm() { |
259 |
|
260 |
fdo-mime_desktop_database_update |
261 |
use gnome && gnome2_icon_cache_update |
262 |
|
263 |
} |