1 |
chithanh 14/05/05 23:01:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openoffice-bin-4.1.0.ebuild |
5 |
Log: |
6 |
Version bump, make wrapper script work with relative paths, bug #505868. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.269 app-office/openoffice-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.269&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?rev=1.269&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/ChangeLog?r1=1.268&r2=1.269 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v |
20 |
retrieving revision 1.268 |
21 |
retrieving revision 1.269 |
22 |
diff -u -r1.268 -r1.269 |
23 |
--- ChangeLog 12 Oct 2013 15:08:54 -0000 1.268 |
24 |
+++ ChangeLog 5 May 2014 23:01:46 -0000 1.269 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/openoffice-bin |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.268 2013/10/12 15:08:54 chithanh Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.269 2014/05/05 23:01:46 chithanh Exp $ |
31 |
+ |
32 |
+*openoffice-bin-4.1.0 (05 May 2014) |
33 |
+ |
34 |
+ 05 May 2014; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
35 |
+ +openoffice-bin-4.1.0.ebuild: |
36 |
+ Version bump, make wrapper script work with relative paths, bug #505868. |
37 |
|
38 |
12 Oct 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
39 |
-openoffice-bin-3.4.1.ebuild, -openoffice-bin-4.0.0-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-office/openoffice-bin/openoffice-bin-4.1.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.1.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.1.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: openoffice-bin-4.1.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 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-4.1.0.ebuild,v 1.1 2014/05/05 23:01:46 chithanh Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib |
57 |
|
58 |
IUSE="gnome java" |
59 |
|
60 |
BUILDID="9764" |
61 |
BVER="${PV/_rc*/}-${BUILDID}" |
62 |
BVER2=4.1-${BUILDID} |
63 |
BASIS="ooobasis4.1" |
64 |
BASIS2="basis4.1" |
65 |
NM="openoffice" |
66 |
NM1="${NM}-brand" |
67 |
NM2="${NM}4" |
68 |
NM3="${NM2}.1" |
69 |
FILEPATH="mirror://sourceforge/openofficeorg.mirror" |
70 |
if [ "${ARCH}" = "amd64" ] ; then |
71 |
XARCH="x86_64" |
72 |
else |
73 |
XARCH="i586" |
74 |
fi |
75 |
UP="en-US/RPMS" |
76 |
|
77 |
DESCRIPTION="Apache OpenOffice productivity suite." |
78 |
HOMEPAGE="http://www.openoffice.org/" |
79 |
SRC_URI="amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz ) |
80 |
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_install-rpm_en-US.tar.gz )" |
81 |
|
82 |
LANGS="ast eu bg 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 |
} |