1 |
suka 08/09/11 12:52:47 |
2 |
|
3 |
Modified: openoffice-bin-2.4.1.ebuild ChangeLog |
4 |
Added: openoffice-bin-3.0.0_rc1.ebuild |
5 |
Log: |
6 |
First release candidate for OOo 3.0, now with seperate binaries for amd64 |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: openoffice-bin-2.4.1.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- openoffice-bin-2.4.1.ebuild 7 Jul 2008 04:45:22 -0000 1.3 |
23 |
+++ openoffice-bin-2.4.1.ebuild 11 Sep 2008 12:52:46 -0000 1.4 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2008 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild,v 1.3 2008/07/07 04:45:22 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.1.ebuild,v 1.4 2008/09/11 12:52:46 suka Exp $ |
29 |
|
30 |
inherit eutils fdo-mime rpm multilib |
31 |
|
32 |
@@ -37,9 +37,7 @@ |
33 |
app-arch/unzip |
34 |
>=media-libs/freetype-2.1.10-r2 |
35 |
>=app-admin/eselect-oodict-20060706 |
36 |
- java? ( !amd64? ( >=virtual/jre-1.4 ) |
37 |
- amd64? ( app-emulation/emul-linux-x86-java ) ) |
38 |
- amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 ) |
39 |
+ java? ( >=virtual/jre-1.5 ) |
40 |
linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 ) |
41 |
linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 ) |
42 |
linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )" |
43 |
|
44 |
|
45 |
|
46 |
1.194 app-office/openoffice-bin/ChangeLog |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.194&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.194&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/ChangeLog?r1=1.193&r2=1.194 |
51 |
|
52 |
Index: ChangeLog |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v |
55 |
retrieving revision 1.193 |
56 |
retrieving revision 1.194 |
57 |
diff -u -r1.193 -r1.194 |
58 |
--- ChangeLog 17 Jul 2008 21:41:58 -0000 1.193 |
59 |
+++ ChangeLog 11 Sep 2008 12:52:46 -0000 1.194 |
60 |
@@ -1,6 +1,15 @@ |
61 |
# ChangeLog for app-office/openoffice-bin |
62 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.193 2008/07/17 21:41:58 suka Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.194 2008/09/11 12:52:46 suka Exp $ |
65 |
+ |
66 |
+*openoffice-bin-3.0.0_rc1 (11 Sep 2008) |
67 |
+ |
68 |
+ 11 Sep 2008; Andreas Proschofsky <suka@g.o> |
69 |
+ openoffice-bin-2.4.1.ebuild, +openoffice-bin-3.0.0_rc1.ebuild: |
70 |
+ First release candidate for OOo 3. This now includes seperate binaries for |
71 |
+ amd64. Also packaging was made even more complicated and messy by |
72 |
+ upstream, so there might still be some missing things (like |
73 |
+ myspell-integration). |
74 |
|
75 |
17 Jul 2008; Andreas Proschofsky <suka@g.o> |
76 |
-openoffice-bin-2.4.0.ebuild: |
77 |
|
78 |
|
79 |
|
80 |
1.1 app-office/openoffice-bin/openoffice-bin-3.0.0_rc1.ebuild |
81 |
|
82 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.0.0_rc1.ebuild?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.0.0_rc1.ebuild?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: openoffice-bin-3.0.0_rc1.ebuild |
86 |
=================================================================== |
87 |
# Copyright 1999-2008 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.0.0_rc1.ebuild,v 1.1 2008/09/11 12:52:46 suka Exp $ |
90 |
|
91 |
inherit eutils fdo-mime rpm multilib |
92 |
|
93 |
IUSE="gnome java kde" |
94 |
|
95 |
BUILDID="9350" |
96 |
MY_PV="${PV/_/}" |
97 |
MY_PV2="${MY_PV}_20080904" |
98 |
MY_PV3="${PV/_rc1/}-${BUILDID}" |
99 |
PACKED="OOO300_m5_native_packed-3" |
100 |
PACKED2="OOO300_m5_native_packed-2" |
101 |
BASIS="ooobasis3.0" |
102 |
S="${WORKDIR}/${PACKED}_en-US.${BUILDID}/RPMS" |
103 |
DESCRIPTION="OpenOffice productivity suite" |
104 |
|
105 |
SRC_URI="x86? ( mirror://openoffice/contrib/rc/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_install_en-US.tar.gz ) |
106 |
amd64? ( mirror://openoffice/contrib/rc/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_install_en-US.tar.gz )" |
107 |
|
108 |
LANGS="af ar as_IN be_BY bg br bs ca cs da de dz el en en_GB en_ZA es et fi fr ga gu he hi_IN hr hu it ja ka km ko lt mk ml_IN mr_IN nb ne nl nn nr ns or_IN pa_IN pl pt rw sh sk sl sr ss st sv sw_TZ ta te_IN tg th ti_ER tr ts uk ur_IN ve vi xh zh_CN zh_TW zu" |
109 |
|
110 |
for X in ${LANGS} ; do |
111 |
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( |
112 |
x86? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_langpack_${X/_/-}.tar.gz ) |
113 |
amd64? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_langpack_${X/_/-}.tar.gz ) )" |
114 |
IUSE="${IUSE} linguas_${X}" |
115 |
done |
116 |
|
117 |
HOMEPAGE="http://www.openoffice.org/" |
118 |
|
119 |
LICENSE="LGPL-2" |
120 |
SLOT="0" |
121 |
KEYWORDS="~amd64 ~x86" |
122 |
|
123 |
RDEPEND="!app-office/openoffice |
124 |
x11-libs/libXaw |
125 |
sys-libs/glibc |
126 |
>=dev-lang/perl-5.0 |
127 |
app-arch/zip |
128 |
app-arch/unzip |
129 |
>=media-libs/freetype-2.1.10-r2 |
130 |
>=app-admin/eselect-oodict-20060706 |
131 |
java? ( >=virtual/jre-1.5 ) |
132 |
linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 ) |
133 |
linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 ) |
134 |
linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )" |
135 |
|
136 |
DEPEND="${RDEPEND} |
137 |
sys-apps/findutils" |
138 |
|
139 |
PROVIDE="virtual/ooo" |
140 |
RESTRICT="strip" |
141 |
|
142 |
QA_EXECSTACK="usr/$(get_libdir)/openoffice/basis3.0/program/*" |
143 |
QA_TEXTRELS="usr/$(get_libdir)/openoffice/basis3.0/program/libvclplug_genli.so \ |
144 |
usr/$(get_libdir)/openoffice/basis3.0/program/python-core-2.3.4/lib/lib-dynload/_curses_panel.so \ |
145 |
usr/$(get_libdir)/openoffice/basis3.0/program/python-core-2.3.4/lib/lib-dynload/_curses.so \ |
146 |
usr/$(get_libdir)/openoffice/ure/lib/*" |
147 |
|
148 |
src_unpack() { |
149 |
|
150 |
unpack ${A} |
151 |
|
152 |
for i in base binfilter calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ooofonts ooolinguistic pyuno testtool writer xsltfilter ; do |
153 |
rpm_unpack "${S}/${BASIS}-${i}-${MY_PV3}.i586.rpm" |
154 |
done |
155 |
|
156 |
for j in base calc draw impress math writer; do |
157 |
rpm_unpack "${S}/openoffice.org3-${j}-${MY_PV3}.i586.rpm" |
158 |
done |
159 |
|
160 |
rpm_unpack "${S}/openoffice.org3-${MY_PV3}.i586.rpm" |
161 |
rpm_unpack "${S}/openoffice.org-ure-1.4.0-${BUILDID}.i586.rpm" |
162 |
|
163 |
rpm_unpack "${S}/desktop-integration/openoffice.org3.0-freedesktop-menus-3.0-${BUILDID}.noarch.rpm" |
164 |
|
165 |
use gnome && rpm_unpack "${S}/${BASIS}-gnome-integration-${MY_PV3}.i586.rpm" |
166 |
use kde && rpm_unpack "${S}/${BASIS}-kde-integration-${MY_PV3}.i586.rpm" |
167 |
use java && rpm_unpack "${S}/${BASIS}-javafilter-${MY_PV3}.i586.rpm" |
168 |
|
169 |
strip-linguas ${LANGS} |
170 |
|
171 |
if [[ -z "${LINGUAS}" ]]; then |
172 |
export LINGUAS="en" |
173 |
fi |
174 |
|
175 |
for k in ${LINGUAS}; do |
176 |
i="${k/_/-}" |
177 |
if [[ ${i} = "en" ]] ; then |
178 |
i="en-US" |
179 |
LANGDIR="${WORKDIR}/${PACKED}_${i}.${BUILDID}/RPMS/" |
180 |
else |
181 |
LANGDIR="${WORKDIR}/${PACKED2}_${i}.${BUILDID}/RPMS/" |
182 |
fi |
183 |
rpm_unpack ${LANGDIR}/${BASIS}-${i}-${MY_PV3}.i586.rpm |
184 |
rpm_unpack ${LANGDIR}/openoffice.org3-${i}-${MY_PV3}.i586.rpm |
185 |
for j in base binfilter calc draw help impress math res writer; do |
186 |
rpm_unpack ${LANGDIR}/${BASIS}-${i}-${j}-${MY_PV3}.i586.rpm |
187 |
done |
188 |
done |
189 |
|
190 |
} |
191 |
|
192 |
src_install () { |
193 |
|
194 |
#Multilib install dir magic for AMD64 |
195 |
has_multilib_profile && ABI=x86 |
196 |
INSTDIR="/usr/$(get_libdir)/openoffice" |
197 |
|
198 |
einfo "Installing OpenOffice.org into build root..." |
199 |
dodir ${INSTDIR} |
200 |
mv "${WORKDIR}"/opt/openoffice.org/* "${D}${INSTDIR}" || die |
201 |
mv "${WORKDIR}"/opt/openoffice.org3/* "${D}${INSTDIR}" || die |
202 |
|
203 |
#Menu entries, icons and mime-types |
204 |
cd "${D}${INSTDIR}/share/xdg/" |
205 |
|
206 |
for desk in base calc draw impress math printeradmin qstart writer; do |
207 |
mv ${desk}.desktop openoffice.org-${desk}.desktop |
208 |
sed -i -e s/openoffice.org3/ooffice/g openoffice.org-${desk}.desktop || die |
209 |
sed -i -e s/openofficeorg3-${desk}/ooo-${desk}/g openoffice.org-${desk}.desktop || die |
210 |
domenu openoffice.org-${desk}.desktop |
211 |
insinto /usr/share/pixmaps |
212 |
newins "${WORKDIR}/usr/share/icons/gnome/48x48/apps/openofficeorg3-${desk}.png" ooo-${desk}.png |
213 |
done |
214 |
|
215 |
insinto /usr/share/mime/packages |
216 |
doins "${WORKDIR}/usr/share/mime/packages/openoffice.org.xml" |
217 |
|
218 |
# Install wrapper script |
219 |
newbin "${FILESDIR}/wrapper.in" ooffice |
220 |
sed -i -e s/LIBDIR/$(get_libdir)/g "${D}/usr/bin/ooffice" || die |
221 |
|
222 |
# Component symlinks |
223 |
for app in base calc draw impress math writer; do |
224 |
dosym ${INSTDIR}/program/s${app} /usr/bin/oo${app} |
225 |
done |
226 |
|
227 |
dosym ${INSTDIR}/program/spadmin.bin /usr/bin/ooffice-printeradmin |
228 |
dosym ${INSTDIR}/program/soffice /usr/bin/soffice |
229 |
|
230 |
rm -f ${INSTDIR}/basis-link || die |
231 |
dosym ${INSTDIR}/basis3.0 ${INSTDIR}/basis-link |
232 |
|
233 |
# Change user install dir |
234 |
sed -i -e "s/.openoffice.org\/3/.ooo3/g" "${D}${INSTDIR}/program/bootstraprc" || die |
235 |
|
236 |
# Non-java weirdness see bug #99366 |
237 |
use !java && rm -f "${D}${INSTDIR}/program/javaldx" |
238 |
|
239 |
# prevent revdep-rebuild from attempting to rebuild all the time |
240 |
insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-openoffice-bin" |
241 |
|
242 |
} |
243 |
|
244 |
pkg_postinst() { |
245 |
|
246 |
fdo-mime_desktop_database_update |
247 |
fdo-mime_mime_database_update |
248 |
|
249 |
eselect oodict update --libdir $(get_libdir) |
250 |
|
251 |
[[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin |
252 |
|
253 |
elog " To start OpenOffice.org, run:" |
254 |
elog |
255 |
elog " $ ooffice" |
256 |
elog |
257 |
elog " Also, for individual components, you can use any of:" |
258 |
elog |
259 |
elog " oobase, oocalc, oodraw, ooimpress, oomath, or oowriter" |
260 |
elog |
261 |
elog " Spell checking is now provided through our own myspell-ebuilds, " |
262 |
elog " if you want to use it, please install the correct myspell package " |
263 |
elog " according to your language needs. " |
264 |
|
265 |
} |