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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 2 10:35:59 2014 UTC (8 weeks ago) by zlogene
Branch: MAIN
Changes since 1.1: +2 -2 lines
amd64 stable wrt bug #511144

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2014 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-4.2.3.3-r1.ebuild,v 1.1 2014/05/23 22:12:27 dilfridge Exp $
4
5 EAPI=5
6
7 KDE_REQUIRED="optional"
8 CMAKE_REQUIRED="never"
9
10 BASE_PACKAGENAME="bin"
11 BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
12 BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
13
14 PYTHON_COMPAT=( python2_7 python3_3 )
15 PYTHON_REQ_USE="threads,xml"
16
17 inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
18
19 DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
20 HOMEPAGE="http://www.libreoffice.org"
21 SRC_URI_AMD64="
22 ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
23 kde? (
24 !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
25 java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
26 )
27 gnome? (
28 !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
29 java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
30 )
31 !kde? ( !gnome? (
32 java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
33 ) )
34 "
35 SRC_URI_X86="
36 ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
37 kde? (
38 !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
39 java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
40 )
41 gnome? (
42 !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
43 java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
44 )
45 !kde? ( !gnome? (
46 java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
47 ) )
48 "
49
50 SRC_URI="
51 amd64? ( ${SRC_URI_AMD64} )
52 x86? ( ${SRC_URI_X86} )
53 "
54
55 IUSE="gnome java kde"
56 LICENSE="LGPL-3"
57 SLOT="0"
58 KEYWORDS="-* amd64 ~x86"
59
60 BIN_COMMON_DEPEND="
61 =app-text/libexttextcat-3.4*
62 app-text/poppler:0/44
63 dev-libs/boost:0/1.52
64 dev-libs/icu:0/52
65 =media-gfx/graphite2-1.2*
66 media-libs/harfbuzz:0/0.9.18[icu]
67 media-libs/libpng:0/16
68 >=sys-libs/glibc-2.17
69 virtual/jpeg:62
70 kde? ( >=kde-base/kdelibs-4.12.5:4 >=dev-qt/qtcore-4.8.5-r1:4 )
71 "
72
73 # PLEASE place any restrictions that are specific to the binary builds
74 # into the BIN_COMMON_DEPEND block above.
75 # All dependencies below this point should remain identical to those in
76 # the source ebuilds.
77
78 COMMON_DEPEND="
79 ${BIN_COMMON_DEPEND}
80 ${PYTHON_DEPS}
81 app-arch/zip
82 app-arch/unzip
83 >=app-text/hunspell-1.3.2-r3
84 app-text/mythes
85 app-text/libabw
86 >=app-text/libexttextcat-3.2
87 app-text/libebook
88 app-text/libetonyek
89 app-text/liblangtag
90 app-text/libmspub
91 >=app-text/libmwaw-0.2
92 >=app-text/libodfgen-0.0.3
93 app-text/libwpd:0.9[tools]
94 app-text/libwpg:0.2
95 >=app-text/libwps-0.2.2
96 >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
97 >=dev-cpp/clucene-2.3.3.4-r2
98 dev-cpp/libcmis:0.4
99 dev-db/unixODBC
100 >=dev-libs/boost-1.46:=
101 dev-libs/expat
102 >=dev-libs/hyphen-2.7.1
103 >=dev-libs/icu-4.8.1.1:=
104 >=dev-libs/libatomic_ops-7.2d
105 =dev-libs/liborcus-0.5*:=
106 >=dev-libs/nspr-4.8.8
107 >=dev-libs/nss-3.12.9
108 >=dev-lang/perl-5.0
109 >=dev-libs/openssl-1.0.0d
110 >=dev-libs/redland-1.0.16[ssl]
111 media-gfx/graphite2
112 >=media-libs/fontconfig-2.8.0
113 media-libs/freetype:2
114 >=media-libs/harfbuzz-0.9.18:=[icu(+)]
115 media-libs/lcms:2
116 >=media-libs/libpng-1.4
117 >=media-libs/libcdr-0.0.5
118 media-libs/libfreehand
119 media-libs/libvisio
120 >=net-misc/curl-7.21.4
121 net-nds/openldap
122 sci-mathematics/lpsolve
123 virtual/jpeg:0
124 >=x11-libs/cairo-1.10.0[X]
125 x11-libs/libXinerama
126 x11-libs/libXrandr
127 x11-libs/libXrender
128 net-print/cups
129 >=dev-libs/dbus-glib-0.92
130 gnome? ( gnome-extra/evolution-data-server )
131 gnome? ( gnome-base/gconf:2 )
132 x11-libs/gdk-pixbuf[X]
133 >=x11-libs/gtk+-2.24:2
134 media-libs/gstreamer:1.0
135 media-libs/gst-plugins-base:1.0
136 virtual/glu
137 virtual/opengl
138 net-libs/neon
139 "
140
141 RDEPEND="${COMMON_DEPEND}
142 !app-office/libreoffice
143 !<app-office/openoffice-bin-3.4.0-r1
144 !app-office/openoffice
145 media-fonts/libertine-ttf
146 media-fonts/liberation-fonts
147 media-fonts/urw-fonts
148 java? ( >=virtual/jre-1.6 )
149 "
150
151 PDEPEND="
152 =app-office/libreoffice-l10n-${PV}*
153 "
154
155 DEPEND="dev-util/xdelta:3"
156
157 # only one flavor at a time
158 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
159
160 RESTRICT="test strip"
161
162 S="${WORKDIR}"
163
164 PYTHON_UPDATER_IGNORE="1"
165
166 pkg_pretend() {
167 [[ $(gcc-major-version) -lt 4 ]] || \
168 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
169 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
170 }
171
172 pkg_setup() {
173 kde4-base_pkg_setup
174 }
175
176 src_unpack() {
177 einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
178 xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
179
180 local patchname
181 use kde && patchname="-kde"
182 use gnome && patchname="-gnome"
183 use java && patchname="${patchname}-java"
184
185 if [ -n "${patchname}" ]; then
186 einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
187 xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
188 mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
189 fi
190
191 einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
192 unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
193 }
194
195 src_prepare() {
196 cp "${FILESDIR}"/50-${PN} "${T}"
197 eprefixify "${T}"/50-${PN}
198 }
199
200 src_configure() { :; }
201
202 src_compile() { :; }
203
204 src_install() {
205 dodir /usr
206 cp -aR "${S}"/usr/* "${ED}"/usr/
207
208 # prevent revdep-rebuild from attempting to rebuild all the time
209 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
210 }
211
212 pkg_preinst() {
213 # Cache updates - all handled by kde eclass for all environments
214 kde4-base_pkg_preinst
215 }
216
217 pkg_postinst() {
218 kde4-base_pkg_postinst
219
220 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
221 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
222
223 use java || \
224 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
225 }
226
227 pkg_postrm() {
228 kde4-base_pkg_postrm
229 }

  ViewVC Help
Powered by ViewVC 1.1.20