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

Contents of /app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Sep 3 21:03:58 2011 UTC (2 years, 7 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Solve the collision with split -l10n package here by revbump and in -l10n by blocker.

(Portage version: 2.2.0_alpha52/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild,v 1.3 2011/09/03 19:11:25 scarabeus Exp $
4
5 EAPI="3"
6
7 inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
8
9 IUSE="gnome java"
10
11 MY_PV="${PV/_/-}"
12 MY_PV2="${PV}rc2"
13 BVER="3.4.3-302"
14 BVER2="3.4-302"
15 BASIS="libobasis3.4"
16 BASIS2="basis3.4"
17 NM="libreoffice"
18 NM1="${NM}"
19 NM2="${NM1}3.4"
20 FILEPATH="http://download.documentfoundation.org/${NM}/stable/${PV}/rpm/"
21 if [ "${ARCH}" = "amd64" ] ; then
22 XARCH="x86_64"
23 PACKED="LibO_${MY_PV2}_Linux_x86-64"
24 else
25 XARCH="i586"
26 PACKED="LibO_${MY_PV2}_Linux_x86"
27 fi
28 UP="${PACKED}_install-rpm_en-US/RPMS"
29
30 DESCRIPTION="LibreOffice productivity suite."
31 HOMEPAGE="http://www.libreoffice.org"
32 SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
33 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
34
35 LICENSE="LGPL-3"
36 SLOT="0"
37 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38
39 RDEPEND="!app-office/libreoffice
40 !app-office/openoffice
41 !app-office/openoffice-bin
42 !prefix? ( sys-libs/glibc )
43 app-arch/unzip
44 app-arch/zip
45 >=dev-lang/perl-5.0
46 >=media-libs/freetype-2.1.10-r2
47 x11-libs/libXaw
48 x11-libs/libXinerama"
49
50 DEPEND="${RDEPEND}
51 sys-apps/findutils"
52
53 PDEPEND="
54 >=app-office/libreoffice-l10n-${PV}
55 java? ( >=virtual/jre-1.5 )
56 "
57
58 RESTRICT="strip"
59
60 QA_EXECSTACK="usr/$(get_libdir)/${NM}/${BASIS2}/program/*
61 usr/$(get_libdir)/${NM}/ure/lib/*"
62 QA_TEXTRELS="usr/$(get_libdir)/${NM}/ure/lib/*"
63 QA_PRESTRIPPED="usr/$(get_libdir)/${NM}/${BASIS2}/program/*
64 usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/*
65 usr/$(get_libdir)/${NM}/program/*
66 usr/$(get_libdir)/${NM}/ure/bin/*
67 usr/$(get_libdir)/${NM}/ure/lib/*"
68
69 src_unpack() {
70
71 unpack ${A}
72
73 cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
74 eprefixify "${T}"/{50-${PN},wrapper.in}
75
76 for i in base binfilter calc core01 core02 core03 core04 core05 core06 \
77 core07 draw graphicfilter images impress math ogltrans ooofonts \
78 ooolinguistic pyuno testtool writer xsltfilter ; do
79 rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm"
80 done
81
82 rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm"
83 rpm_unpack "./${UP}/${NM2}-ure-${BVER}.${XARCH}.rpm"
84
85 for j in base calc draw impress math writer; do
86 rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm"
87 done
88
89 rpm_unpack "./${UP}/desktop-integration/${NM2}-freedesktop-menus-${BVER2}.noarch.rpm"
90
91 use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm"
92 use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm"
93
94 # Extensions
95 for k in beanshell-script-provider javascript-script-provider mediawiki-publisher nlpsolver pdf-import presentation-minimizer presenter-screen python-script-provider report-builder; do
96 rpm_unpack "./${UP}/${BASIS}-extension-${k}-${BVER}.${XARCH}.rpm"
97 done
98
99 # English support installed by default
100 rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm"
101 rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm"
102 rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm"
103 for s in base binfilter calc math res writer ; do
104 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm"
105 done
106
107 }
108
109 src_install () {
110
111 INSTDIR="/usr/$(get_libdir)/${NM}"
112 dodir ${INSTDIR}
113 mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
114
115 #Menu entries, icons and mime-types
116 cd "${ED}${INSTDIR}/share/xdg/"
117 for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
118 if [ "${desk}" = "javafilter" ] ; then
119 use java || { rm -f javafilter.desktop; continue; }
120 fi
121 mv ${desk}.desktop ${NM1}-${desk}.desktop
122 sed -i -e s/${NM2}/${NM}/g ${NM1}-${desk}.desktop || die
123 domenu ${NM1}-${desk}.desktop
124 done
125 insinto /usr/share
126 doins -r "${WORKDIR}"/usr/share/icons
127 doins -r "${WORKDIR}"/usr/share/mime
128
129 # Install wrapper script
130 newbin "${T}/wrapper.in" ${NM1}
131 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/${NM1}" || die
132
133 dosym ${INSTDIR}/program/spadmin /usr/bin/${NM1}-printeradmin
134
135 rm -f "${ED}${INSTDIR}/basis-link" || die
136 dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link
137
138 # Non-java weirdness see bug #99366
139 use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx"
140
141 # install the unopkg binary
142 dosym ${INSTDIR}/program/unopkg /usr/bin/unopkg
143
144 # prevent revdep-rebuild from attempting to rebuild all the time
145 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
146
147 }
148
149 pkg_preinst() {
150
151 use gnome && gnome2_icon_savelist
152
153 }
154
155 pkg_postinst() {
156
157 fdo-mime_desktop_database_update
158 fdo-mime_mime_database_update
159 use gnome && gnome2_icon_cache_update
160
161 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
162
163 }
164
165 pkg_postrm() {
166
167 fdo-mime_desktop_database_update
168 use gnome && gnome2_icon_cache_update
169
170 }

  ViewVC Help
Powered by ViewVC 1.1.20