1 |
suka 09/04/08 07:42:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openoffice-bin-3.1.0_rc1.ebuild |
5 |
Log: |
6 |
RC1 for OpenOffice.org 3.1 |
7 |
(Portage version: 2.1.6.11/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.213 app-office/openoffice-bin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.213&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.213&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?r1=1.212&r2=1.213 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v |
19 |
retrieving revision 1.212 |
20 |
retrieving revision 1.213 |
21 |
diff -u -r1.212 -r1.213 |
22 |
--- ChangeLog 4 Feb 2009 09:15:26 -0000 1.212 |
23 |
+++ ChangeLog 8 Apr 2009 07:42:13 -0000 1.213 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for app-office/openoffice-bin |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.212 2009/02/04 09:15:26 suka Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.213 2009/04/08 07:42:13 suka Exp $ |
29 |
+ |
30 |
+*openoffice-bin-3.1.0_rc1 (08 Apr 2009) |
31 |
+ |
32 |
+ 08 Apr 2009; Andreas Proschofsky <suka@g.o> |
33 |
+ +openoffice-bin-3.1.0_rc1.ebuild: |
34 |
+ RC1 for OpenOffice.org 3.1. This adds back AMD64-support. Please also note |
35 |
+ that this release is missing some language packs, these should be back |
36 |
+ with RC2 |
37 |
|
38 |
*openoffice-bin-3.0.1 (04 Feb 2009) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-office/openoffice-bin/openoffice-bin-3.1.0_rc1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.1.0_rc1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.1.0_rc1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: openoffice-bin-3.1.0_rc1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.1.0_rc1.ebuild,v 1.1 2009/04/08 07:42:13 suka Exp $ |
53 |
|
54 |
inherit eutils fdo-mime rpm multilib |
55 |
|
56 |
IUSE="gnome java kde" |
57 |
|
58 |
BUILDID="9396" |
59 |
BUILDID2="9393" |
60 |
UREVER="1.5.0" |
61 |
MY_PV="${PV/_/}" |
62 |
MY_PV2="${MY_PV}_20090402" |
63 |
MY_PV3="${PV/_rc1/}-${BUILDID}" |
64 |
BASIS="ooobasis3.1" |
65 |
MST="OOO310_m9" |
66 |
|
67 |
if [ "${ARCH}" = "amd64" ] ; then |
68 |
OOARCH="x86_64" |
69 |
PACKED="${MST}_native_packed-1" |
70 |
PACKED2="${MST}_native_packed-1" |
71 |
else |
72 |
OOARCH="i586" |
73 |
PACKED="${MST}_native_packed-1" |
74 |
PACKED2="${MST}_native_packed-1" |
75 |
fi |
76 |
|
77 |
S="${WORKDIR}/${PACKED}_en-US.${BUILDID}/RPMS" |
78 |
DESCRIPTION="OpenOffice productivity suite" |
79 |
|
80 |
SRC_URI="x86? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_install_en-US.tar.gz ) |
81 |
amd64? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_install_en-US.tar.gz )" |
82 |
|
83 |
LANGS="af ar as_IN be_BY bg br bs ca cs de dz el en en_GB en_ZA et fi ga gu he hi_IN hr hu ka kk km ku ml_IN mn mr_IN ne nr ns or_IN pa_IN pt rw sh sk sr ss st sw_TZ ta te_IN tg th ti_ER ts uk ur_IN ve xh zu" |
84 |
|
85 |
for X in ${LANGS} ; do |
86 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
87 |
x86? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_langpack_${X/_/-}.tar.gz ) |
88 |
amd64? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_langpack_${X/_/-}.tar.gz ) )" |
89 |
IUSE="${IUSE} linguas_${X}" |
90 |
done |
91 |
|
92 |
HOMEPAGE="http://www.openoffice.org/" |
93 |
|
94 |
LICENSE="LGPL-2" |
95 |
SLOT="0" |
96 |
KEYWORDS="~x86" |
97 |
|
98 |
RDEPEND="!app-office/openoffice |
99 |
x11-libs/libXaw |
100 |
sys-libs/glibc |
101 |
>=dev-lang/perl-5.0 |
102 |
app-arch/zip |
103 |
app-arch/unzip |
104 |
>=media-libs/freetype-2.1.10-r2 |
105 |
java? ( >=virtual/jre-1.5 ) |
106 |
linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 ) |
107 |
linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 ) |
108 |
linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )" |
109 |
|
110 |
DEPEND="${RDEPEND} |
111 |
sys-apps/findutils" |
112 |
|
113 |
PROVIDE="virtual/ooo" |
114 |
RESTRICT="strip" |
115 |
|
116 |
QA_EXECSTACK="usr/$(get_libdir)/openoffice/basis3.1/program/* |
117 |
usr/$(get_libdir)/openoffice/ure/lib/*" |
118 |
QA_TEXTRELS="usr/$(get_libdir)/openoffice/basis3.1/program/libvclplug_genli.so \ |
119 |
usr/$(get_libdir)/openoffice/basis3.1/program/python-core-2.3.4/lib/lib-dynload/_curses_panel.so \ |
120 |
usr/$(get_libdir)/openoffice/basis3.1/program/python-core-2.3.4/lib/lib-dynload/_curses.so \ |
121 |
usr/$(get_libdir)/openoffice/ure/lib/*" |
122 |
|
123 |
src_unpack() { |
124 |
|
125 |
unpack ${A} |
126 |
|
127 |
for i in base binfilter calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ooofonts oooimprovement ooolinguistic pyuno testtool writer xsltfilter ; do |
128 |
rpm_unpack "${S}/${BASIS}-${i}-${MY_PV3}.${OOARCH}.rpm" |
129 |
done |
130 |
|
131 |
for j in base calc draw impress math writer writer2latex; do |
132 |
rpm_unpack "${S}/openoffice.org3-${j}-${MY_PV3}.${OOARCH}.rpm" |
133 |
done |
134 |
|
135 |
rpm_unpack "${S}/openoffice.org3-${MY_PV3}.${OOARCH}.rpm" |
136 |
rpm_unpack "${S}/openoffice.org-ure-${UREVER}-${BUILDID}.${OOARCH}.rpm" |
137 |
|
138 |
rpm_unpack "${S}/desktop-integration/openoffice.org3.1-freedesktop-menus-3.1-${BUILDID2}.noarch.rpm" |
139 |
|
140 |
use gnome && rpm_unpack "${S}/${BASIS}-gnome-integration-${MY_PV3}.${OOARCH}.rpm" |
141 |
use kde && rpm_unpack "${S}/${BASIS}-kde-integration-${MY_PV3}.${OOARCH}.rpm" |
142 |
use java && rpm_unpack "${S}/${BASIS}-javafilter-${MY_PV3}.${OOARCH}.rpm" |
143 |
|
144 |
strip-linguas ${LANGS} |
145 |
|
146 |
if [[ -z "${LINGUAS}" ]]; then |
147 |
export LINGUAS="en" |
148 |
fi |
149 |
|
150 |
for k in ${LINGUAS}; do |
151 |
i="${k/_/-}" |
152 |
if [[ ${i} = "en" ]] ; then |
153 |
i="en-US" |
154 |
LANGDIR="${WORKDIR}/${PACKED}_${i}.${BUILDID}/RPMS/" |
155 |
else |
156 |
LANGDIR="${WORKDIR}/${PACKED2}_${i}.${BUILDID}/RPMS/" |
157 |
fi |
158 |
rpm_unpack ${LANGDIR}/${BASIS}-${i}-${MY_PV3}.${OOARCH}.rpm |
159 |
rpm_unpack ${LANGDIR}/openoffice.org3-${i}-${MY_PV3}.${OOARCH}.rpm |
160 |
for j in base binfilter calc draw help impress math res writer; do |
161 |
rpm_unpack ${LANGDIR}/${BASIS}-${i}-${j}-${MY_PV3}.${OOARCH}.rpm |
162 |
done |
163 |
done |
164 |
|
165 |
# Unpack provided dictionaries, unless there is a better solution... |
166 |
rpm_unpack "${S}/openoffice.org3-dict-en-${MY_PV3}.${OOARCH}.rpm" |
167 |
rpm_unpack "${S}/openoffice.org3-dict-es-${MY_PV3}.${OOARCH}.rpm" |
168 |
rpm_unpack "${S}/openoffice.org3-dict-fr-${MY_PV3}.${OOARCH}.rpm" |
169 |
|
170 |
} |
171 |
|
172 |
src_install () { |
173 |
|
174 |
INSTDIR="/usr/$(get_libdir)/openoffice" |
175 |
|
176 |
einfo "Installing OpenOffice.org into build root..." |
177 |
dodir ${INSTDIR} |
178 |
mv "${WORKDIR}"/opt/openoffice.org/* "${D}${INSTDIR}" || die |
179 |
mv "${WORKDIR}"/opt/openoffice.org3/* "${D}${INSTDIR}" || die |
180 |
|
181 |
#Menu entries, icons and mime-types |
182 |
cd "${D}${INSTDIR}/share/xdg/" |
183 |
|
184 |
for desk in base calc draw impress math printeradmin qstart writer; do |
185 |
mv ${desk}.desktop openoffice.org-${desk}.desktop |
186 |
sed -i -e s/openoffice.org3/ooffice/g openoffice.org-${desk}.desktop || die |
187 |
sed -i -e s/openofficeorg3-${desk}/ooo-${desk}/g openoffice.org-${desk}.desktop || die |
188 |
domenu openoffice.org-${desk}.desktop |
189 |
insinto /usr/share/pixmaps |
190 |
if [ "${desk}" != "qstart" ] ; then |
191 |
newins "${WORKDIR}/usr/share/icons/gnome/48x48/apps/openofficeorg3-${desk}.png" ooo-${desk}.png |
192 |
fi |
193 |
done |
194 |
|
195 |
# Install wrapper script |
196 |
newbin "${FILESDIR}/wrapper.in" ooffice |
197 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${D}/usr/bin/ooffice" || die |
198 |
|
199 |
# Component symlinks |
200 |
for app in base calc draw impress math writer; do |
201 |
dosym ${INSTDIR}/program/s${app} /usr/bin/oo${app} |
202 |
done |
203 |
|
204 |
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin |
205 |
dosym ${INSTDIR}/program/soffice /usr/bin/soffice |
206 |
|
207 |
rm -f "${D}${INSTDIR}/basis-link" || die |
208 |
dosym ${INSTDIR}/basis3.1 ${INSTDIR}/basis-link |
209 |
|
210 |
# Change user install dir |
211 |
sed -i -e "s/.openoffice.org\/3/.ooo3/g" "${D}${INSTDIR}/program/bootstraprc" || die |
212 |
|
213 |
# Non-java weirdness see bug #99366 |
214 |
use !java && rm -f "${D}${INSTDIR}/ure/bin/javaldx" |
215 |
|
216 |
# prevent revdep-rebuild from attempting to rebuild all the time |
217 |
insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-openoffice-bin" |
218 |
|
219 |
} |
220 |
|
221 |
pkg_postinst() { |
222 |
|
223 |
fdo-mime_desktop_database_update |
224 |
fdo-mime_mime_database_update |
225 |
|
226 |
[[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin |
227 |
|
228 |
elog " openoffice-bin does not provide integration with system spell " |
229 |
elog " dictionaries. Please install them manually through the Extensions " |
230 |
elog " Manager (Tools > Extensions Manager) or use the source based " |
231 |
elog " package instead. " |
232 |
elog |
233 |
elog " Dictionaries for english, french and spanish are provided in " |
234 |
elog " /usr/$(get_libdir)/openoffice/share/extension/install " |
235 |
elog " Other dictionaries can be found at Suns extension site. " |
236 |
elog |
237 |
|
238 |
ewarn " Please note that this release of OpenOffice.org uses a " |
239 |
ewarn " new user install dir. As a result you will have to redo " |
240 |
ewarn " your settings. Alternatively you might copy the old one " |
241 |
ewarn " over from ~/.ooo-2.0 to ~/.ooo3, but be warned that this " |
242 |
ewarn " might break stuff. " |
243 |
ewarn |
244 |
|
245 |
} |