/[gentoo-x86]/app-office/libreoffice-bin/libreoffice-bin-3.3.1.ebuild
Gentoo

Diff of /app-office/libreoffice-bin/libreoffice-bin-3.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.3.1.ebuild,v 1.4 2011/03/17 12:29:36 suka Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.3.1.ebuild,v 1.5 2011/03/17 13:06:21 suka Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib 7inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
8 8
42 x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz 42 x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz
43 offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${X/_/-}.tar.gz ) ) )" 43 offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${X/_/-}.tar.gz ) ) )"
44 IUSE="${IUSE} linguas_${X}" 44 IUSE="${IUSE} linguas_${X}"
45done 45done
46 46
47HOMEPAGE="http://www.documentfoundation.org" 47HOMEPAGE="http://www.libreoffice.org"
48 48
49LICENSE="LGPL-3" 49LICENSE="LGPL-3"
50SLOT="0" 50SLOT="0"
51KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" 51KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
52 52
114 use offlinehelp && rpm_unpack "./LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${LOARCH}.rpm" 114 use offlinehelp && rpm_unpack "./LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${LOARCH}.rpm"
115 for s in base binfilter calc math res writer ; do 115 for s in base binfilter calc math res writer ; do
116 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${LOARCH}.rpm" 116 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${LOARCH}.rpm"
117 done 117 done
118 118
119 # Lang files 119 # Localization
120 # TODO: Install dictionaries
121
122 strip-linguas ${LANGS} 120 strip-linguas ${LANGS}
123
124 for l in ${LINGUAS}; do 121 for l in ${LINGUAS}; do
125 m="${l/_/-}" 122 m="${l/_/-}"
126 if [[ ${m} != "en" ]] ; then 123 if [[ ${m} != "en" ]] ; then
127 LANGDIR="LibO_${MY_PV2}_Linux_${LOARCH2}_langpack-rpm_${m}/RPMS/" 124 LANGDIR="LibO_${MY_PV2}_Linux_${LOARCH2}_langpack-rpm_${m}/RPMS/"
128 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${LOARCH}.rpm" 125 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${LOARCH}.rpm"
144 LANGDIR2="LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_${m}/RPMS/" 141 LANGDIR2="LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_${m}/RPMS/"
145 rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${LOARCH}.rpm" 142 rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${LOARCH}.rpm"
146 fi 143 fi
147 fi 144 fi
148 done 145 done
146
149} 147}
150 148
151src_install () { 149src_install () {
152 150
153 INSTDIR="/usr/$(get_libdir)/libreoffice" 151 INSTDIR="/usr/$(get_libdir)/libreoffice"
156 dodir ${INSTDIR} 154 dodir ${INSTDIR}
157 mv "${WORKDIR}"/opt/libreoffice/* "${ED}${INSTDIR}" || die 155 mv "${WORKDIR}"/opt/libreoffice/* "${ED}${INSTDIR}" || die
158 156
159 #Menu entries, icons and mime-types 157 #Menu entries, icons and mime-types
160 cd "${ED}${INSTDIR}/share/xdg/" 158 cd "${ED}${INSTDIR}/share/xdg/"
161
162 for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do 159 for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
163 if [ "${desk}" = "javafilter" ] ; then 160 if [ "${desk}" = "javafilter" ] ; then
164 use java || { rm javafilter.desktop; continue; } 161 use java || { rm javafilter.desktop; continue; }
165 fi 162 fi
166 mv ${desk}.desktop libreoffice-${desk}.desktop 163 mv ${desk}.desktop libreoffice-${desk}.desktop
173 # Install wrapper script 170 # Install wrapper script
174 newbin "${T}/wrapper.in" libreoffice 171 newbin "${T}/wrapper.in" libreoffice
175 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/libreoffice" || die 172 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/libreoffice" || die
176 173
177 # Component symlinks 174 # Component symlinks
178 # Disabled, trouble with parallel installing openoffice
179 for app in base calc draw impress math writer; do 175 for app in base calc draw impress math writer; do
180 dosym ${INSTDIR}/program/s${app} /usr/bin/lo${app} 176 dosym ${INSTDIR}/program/s${app} /usr/bin/lo${app}
181 done 177 done
182 178
183 dosym ${INSTDIR}/program/spadmin /usr/bin/libreoffice-printeradmin 179 dosym ${INSTDIR}/program/spadmin /usr/bin/libreoffice-printeradmin
193 insinto /etc/revdep-rebuild && doins "${T}/50-libreoffice-bin" 189 insinto /etc/revdep-rebuild && doins "${T}/50-libreoffice-bin"
194 190
195} 191}
196 192
197pkg_preinst() { 193pkg_preinst() {
194
198 use gnome && gnome2_icon_savelist 195 use gnome && gnome2_icon_savelist
196
199} 197}
200 198
201pkg_postinst() { 199pkg_postinst() {
202 200
203 fdo-mime_desktop_database_update 201 fdo-mime_desktop_database_update
207 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin 205 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
208 206
209} 207}
210 208
211pkg_postrm() { 209pkg_postrm() {
210
212 fdo-mime_desktop_database_update 211 fdo-mime_desktop_database_update
213 use gnome && gnome2_icon_cache_update 212 use gnome && gnome2_icon_cache_update
213
214} 214}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20