1 # Copyright 1999-2013 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.0.4.2.ebuild,v 1.6 2013/09/16 11:32:37 dilfridge Exp $
7 KDE_REQUIRED="optional"
10 BASE_AMD64_URI="mirror://gentoo/amd64-bin-"
11 BASE_X86_URI="mirror://gentoo/x86-bin-"
13 PYTHON_COMPAT=( python2_7 python3_3 )
14 PYTHON_REQ_USE="threads,xml"
16 inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
18 DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
19 HOMEPAGE="http://www.libreoffice.org"
22 !java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-${PVR}.tar.xz )
23 java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
26 !java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
27 java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
30 !java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tar.xz )
31 java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
36 !java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tar.xz )
37 java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
40 !java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
41 java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
44 !java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tar.xz )
45 java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
50 amd64? ( ${SRC_URI_AMD64} )
51 x86? ( ${SRC_URI_X86} )
54 IUSE="debug gnome java kde"
57 KEYWORDS="-* amd64 x86"
60 =app-text/libexttextcat-3.4*
64 =media-gfx/graphite2-1.2*
65 =media-libs/libpng-1.5*
66 >=sys-libs/glibc-2.15-r3
67 kde? ( >=kde-base/kdelibs-4.10.4:4 >=dev-qt/qtcore-4.8.4-r5:4 )
68 || ( <media-libs/libjpeg-turbo-1.3.0-r2 =media-libs/jpeg-8* )
71 # PLEASE place any restrictions that are specific to the binary builds
72 # into the BIN_COMMON_DEPEND block above.
73 # All dependencies below this point should remain identical to those in
81 >=app-text/hunspell-1.3.2-r3
83 >=app-text/libexttextcat-3.2
86 app-text/libwpd:0.9[tools]
88 >=app-text/libwps-0.2.2
89 >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
90 >=dev-cpp/clucene-2.3.3.4-r2
91 >=dev-cpp/libcmis-0.3.1:0.3
94 >=dev-libs/hyphen-2.7.1
95 >=dev-libs/icu-4.8.1.1:=
96 =dev-libs/liborcus-0.3*
100 >=dev-libs/openssl-1.0.0d
101 >=dev-libs/redland-1.0.14[ssl]
103 >=media-libs/fontconfig-2.8.0
104 media-libs/freetype:2
106 >=media-libs/libpng-1.4
107 >=media-libs/libcdr-0.0.5
109 >=net-misc/curl-7.21.4
111 sci-mathematics/lpsolve
113 >=x11-libs/cairo-1.10.0[X]
118 >=dev-libs/dbus-glib-0.92
119 gnome? ( gnome-extra/evolution-data-server )
120 gnome? ( gnome-base/gconf:2 )
121 x11-libs/gdk-pixbuf[X]
122 >=x11-libs/gtk+-2.24:2
123 media-libs/gstreamer:1.0
124 media-libs/gst-plugins-base:1.0
130 RDEPEND="${COMMON_DEPEND}
131 !app-office/libreoffice
132 !<app-office/openoffice-bin-3.4.0-r1
133 !app-office/openoffice
134 media-fonts/libertine-ttf
135 media-fonts/liberation-fonts
136 media-fonts/urw-fonts
137 java? ( >=virtual/jre-1.6 )
141 =app-office/libreoffice-l10n-4.0*
146 # only one flavor at a time
147 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
149 RESTRICT="test strip"
153 PYTHON_UPDATER_IGNORE="1"
156 [[ $(gcc-major-version) -lt 4 ]] || \
157 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
158 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
170 cp "${FILESDIR}"/50-${PN} "${T}"
171 eprefixify "${T}"/50-${PN}
174 src_configure() { :; }
180 cp -aR "${S}"/usr/* "${ED}"/usr/
182 # prevent revdep-rebuild from attempting to rebuild all the time
183 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
187 # Cache updates - all handled by kde eclass for all environments
188 kde4-base_pkg_preinst
192 kde4-base_pkg_postinst
194 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
195 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
198 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'