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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 15 10:03:11 2012 UTC (2 years, 5 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump to 3.4.5.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2012 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-r2.ebuild,v 1.2 2012/01/26 03:23:37 floppym 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 PYTHON_UPDATER_IGNORE="1"
70
71 src_unpack() {
72
73 unpack ${A}
74
75 cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
76 eprefixify "${T}"/{50-${PN},wrapper.in}
77
78 for i in base binfilter calc core01 core02 core03 core04 core05 core06 \
79 core07 draw graphicfilter images impress math ogltrans ooofonts \
80 ooolinguistic pyuno testtool writer xsltfilter ; do
81 rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm"
82 done
83
84 rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm"
85 rpm_unpack "./${UP}/${NM2}-ure-${BVER}.${XARCH}.rpm"
86
87 for j in base calc draw impress math writer; do
88 rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm"
89 done
90
91 rpm_unpack "./${UP}/desktop-integration/${NM2}-freedesktop-menus-${BVER2}.noarch.rpm"
92
93 use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm"
94 use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm"
95
96 # Extensions
97 for k in beanshell-script-provider javascript-script-provider mediawiki-publisher nlpsolver pdf-import presentation-minimizer presenter-screen python-script-provider report-builder; do
98 rpm_unpack "./${UP}/${BASIS}-extension-${k}-${BVER}.${XARCH}.rpm"
99 done
100
101 # English support installed by default
102 rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm"
103 rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm"
104 rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm"
105 for s in base binfilter calc math res writer ; do
106 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm"
107 done
108
109 }
110
111 src_install () {
112
113 INSTDIR="/usr/$(get_libdir)/${NM}"
114 dodir ${INSTDIR}
115 mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
116
117 #Menu entries, icons and mime-types
118 cd "${ED}${INSTDIR}/share/xdg/"
119 for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
120 if [ "${desk}" = "javafilter" ] ; then
121 use java || { rm -f javafilter.desktop; continue; }
122 fi
123 mv ${desk}.desktop ${NM1}-${desk}.desktop
124 sed -i -e s/${NM2}/${NM}/g ${NM1}-${desk}.desktop || die
125 domenu ${NM1}-${desk}.desktop
126 done
127 insinto /usr/share
128 doins -r "${WORKDIR}"/usr/share/icons
129 doins -r "${WORKDIR}"/usr/share/mime
130
131 # Install wrapper script
132 newbin "${T}/wrapper.in" ${NM1}
133 sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/${NM1}" || die
134
135 dosym ${INSTDIR}/program/spadmin /usr/bin/${NM1}-printeradmin
136
137 rm -f "${ED}${INSTDIR}/basis-link" || die
138 dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link
139
140 # Non-java weirdness see bug #99366
141 use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx"
142
143 # install the unopkg binary
144 dosym ${INSTDIR}/program/unopkg /usr/bin/unopkg
145
146 # prevent revdep-rebuild from attempting to rebuild all the time
147 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
148
149 }
150
151 pkg_preinst() {
152
153 use gnome && gnome2_icon_savelist
154
155 }
156
157 pkg_postinst() {
158
159 fdo-mime_desktop_database_update
160 fdo-mime_mime_database_update
161 use gnome && gnome2_icon_cache_update
162
163 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
164
165 }
166
167 pkg_postrm() {
168
169 fdo-mime_desktop_database_update
170 use gnome && gnome2_icon_cache_update
171
172 }

  ViewVC Help
Powered by ViewVC 1.1.20