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

Diff of /app-office/libreoffice-bin/libreoffice-bin-3.3.0.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.0.ebuild,v 1.4 2011/02/05 09:11:16 suka Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.3.0.ebuild,v 1.5 2011/02/05 11:07:55 suka Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7inherit eutils fdo-mime gnome2-utils pax-utils rpm multilib 7inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
8 8
9IUSE="gnome java kde offlinehelp" 9IUSE="gnome java kde offlinehelp"
10 10
11MY_PV="${PV/_/-}" 11MY_PV="${PV/_/-}"
12MY_PV2="${PV}rc4" 12MY_PV2="${PV}rc4"
45 45
46HOMEPAGE="http://www.documentfoundation.org" 46HOMEPAGE="http://www.documentfoundation.org"
47 47
48LICENSE="LGPL-3" 48LICENSE="LGPL-3"
49SLOT="0" 49SLOT="0"
50KEYWORDS="~amd64 ~x86" 50KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 51
52RDEPEND="!app-office/libreoffice 52RDEPEND="!app-office/libreoffice
53 !app-office/openoffice 53 !app-office/openoffice
54 !app-office/openoffice-bin 54 !app-office/openoffice-bin
55 x11-libs/libXaw 55 x11-libs/libXaw
56 sys-libs/glibc 56 !prefix? ( sys-libs/glibc )
57 >=dev-lang/perl-5.0 57 >=dev-lang/perl-5.0
58 app-arch/zip 58 app-arch/zip
59 app-arch/unzip 59 app-arch/unzip
60 x11-libs/libXinerama 60 x11-libs/libXinerama
61 >=media-libs/freetype-2.1.10-r2" 61 >=media-libs/freetype-2.1.10-r2"
80RESTRICT="mirror" 80RESTRICT="mirror"
81 81
82src_unpack() { 82src_unpack() {
83 83
84 unpack ${A} 84 unpack ${A}
85
86 cp "${FILESDIR}"/{50-libreoffice-bin,wrapper.in} "${T}"
87 eprefixify "${T}"/{50-libreoffice-bin,wrapper.in}
85 88
86 for i in base binfilter calc core01 core02 core03 core04 core05 core06 \ 89 for i in base binfilter calc core01 core02 core03 core04 core05 core06 \
87 core07 draw graphicfilter images impress math ogltrans ooofonts \ 90 core07 draw graphicfilter images impress math ogltrans ooofonts \
88 ooolinguistic pyuno testtool writer xsltfilter ; do 91 ooolinguistic pyuno testtool writer xsltfilter ; do
89 rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${LOARCH}.rpm" 92 rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${LOARCH}.rpm"
159 insinto /usr/share 162 insinto /usr/share
160 doins -r "${WORKDIR}"/usr/share/icons 163 doins -r "${WORKDIR}"/usr/share/icons
161 doins -r "${WORKDIR}"/usr/share/mime 164 doins -r "${WORKDIR}"/usr/share/mime
162 165
163 # Install wrapper script 166 # Install wrapper script
164 newbin "${FILESDIR}/wrapper.in" libreoffice 167 newbin "${T}/wrapper.in" libreoffice
165 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/libreoffice" || die 168 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/libreoffice" || die
166 169
167 # Component symlinks 170 # Component symlinks
168 # Disabled, trouble with parallel installing openoffice 171 # Disabled, trouble with parallel installing openoffice
169 for app in base calc draw impress math writer; do 172 for app in base calc draw impress math writer; do
178 181
179 # Non-java weirdness see bug #99366 182 # Non-java weirdness see bug #99366
180 use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx" 183 use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx"
181 184
182 # prevent revdep-rebuild from attempting to rebuild all the time 185 # prevent revdep-rebuild from attempting to rebuild all the time
183 insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-libreoffice-bin" 186 insinto /etc/revdep-rebuild && doins "${T}/50-libreoffice-bin"
184 187
185} 188}
186 189
187pkg_preinst() { 190pkg_preinst() {
188 use gnome && gnome2_icon_savelist 191 use gnome && gnome2_icon_savelist

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

  ViewVC Help
Powered by ViewVC 1.1.20