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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Sep 26 11:23:05 2012 UTC (2 years, 2 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Restrict dep on graphite. Drop older. Wrt bug#436240.

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

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.5.4.2-r1.ebuild,v 1.7 2012/07/19 16:25:10 kensington Exp $
4
5 EAPI=4
6
7 KDE_REQUIRED="optional"
8 CMAKE_REQUIRED="never"
9
10 BASE_AMD64_URI="mirror://gentoo/amd64-bin-"
11 BASE_X86_URI="mirror://gentoo/x86-bin-"
12
13 inherit kde4-base java-pkg-opt-2 pax-utils prefix
14
15 DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
16 HOMEPAGE="http://www.libreoffice.org"
17 SRC_URI_AMD64="
18 kde? (
19 !java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-${PVR}.tar.xz )
20 java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
21 )
22 gnome? (
23 !java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
24 java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
25 )
26 !kde? ( !gnome? (
27 !java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tar.xz )
28 java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
29 ) )
30 "
31 SRC_URI_X86="
32 kde? (
33 !java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tar.xz )
34 java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
35 )
36 gnome? (
37 !java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
38 java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
39 )
40 !kde? ( !gnome? (
41 !java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tar.xz )
42 java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
43 ) )
44 "
45
46 SRC_URI="
47 amd64? ( ${SRC_URI_AMD64} )
48 x86? ( ${SRC_URI_X86} )
49 "
50
51 IUSE="+cups debug gnome java kde"
52 LICENSE="LGPL-3"
53 SLOT="0"
54 KEYWORDS="-* amd64 x86"
55
56 BIN_COMMON_DEPEND="
57 =app-text/libexttextcat-3.2*
58 =dev-cpp/libcmis-0.1*
59 =dev-libs/icu-49*
60 >=sys-libs/glibc-2.14.1-r3
61 kde? ( >=kde-base/kdelibs-4.8.0:4 >=x11-libs/qt-core-4.8.0:4 )
62 "
63
64 NSS_DEPEND="
65 >=dev-libs/nspr-4.8.8
66 >=dev-libs/nss-3.12.9
67 "
68
69 COMMON_DEPEND="
70 ${BIN_COMMON_DEPEND}
71 app-arch/zip
72 app-arch/unzip
73 >=app-text/hunspell-1.3.2-r3
74 app-text/mythes
75 >=app-text/libexttextcat-3.2
76 app-text/libwpd:0.9[tools]
77 app-text/libwpg:0.2
78 >=app-text/libwps-0.2.2
79 dev-cpp/libcmis
80 dev-db/unixODBC
81 dev-libs/expat
82 >=dev-libs/glib-2.28
83 >=dev-libs/hyphen-2.7.1
84 >=dev-libs/icu-49
85 >=dev-lang/perl-5.0
86 >=dev-libs/openssl-1.0.0d
87 >=dev-libs/redland-1.0.14[ssl]
88 >=media-libs/fontconfig-2.8.0
89 media-libs/freetype:2
90 >=media-libs/libpng-1.4
91 media-libs/libvisio
92 >=net-misc/curl-7.21.4
93 sci-mathematics/lpsolve
94 >=sys-libs/db-4.8
95 virtual/jpeg
96 >=x11-libs/cairo-1.10.0[X]
97 x11-libs/libXinerama
98 x11-libs/libXrandr
99 x11-libs/libXrender
100 >=dev-libs/dbus-glib-0.92
101 gnome? ( gnome-extra/evolution-data-server )
102 gnome? (
103 gnome-base/gconf:2
104 gnome-base/orbit
105 )
106 >=x11-libs/gtk+-2.24:2
107 media-gfx/graphite2
108 >=media-libs/gstreamer-0.10
109 >=media-libs/gst-plugins-base-0.10
110 java? (
111 >=dev-java/bsh-2.0_beta4
112 dev-java/lucene:2.9
113 dev-java/lucene-analyzers:2.3
114 )
115 net-libs/neon
116 ${NSS_DEPEND}
117 "
118
119 RDEPEND="${COMMON_DEPEND}
120 !app-office/libreoffice
121 !app-office/openoffice-bin
122 !app-office/openoffice
123 media-fonts/libertine-ttf
124 media-fonts/liberation-fonts
125 media-fonts/urw-fonts
126 cups? ( net-print/cups )
127 java? ( >=virtual/jre-1.6 )
128 "
129
130 PDEPEND="
131 >=app-office/libreoffice-l10n-3.5.0
132 "
133
134 # after all it's a binary package
135 DEPEND=""
136
137 # only one flavor at a time
138 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
139
140 RESTRICT="test strip"
141
142 S="${WORKDIR}"
143
144 PYTHON_UPDATER_IGNORE="1"
145
146 pkg_pretend() {
147 [[ $(gcc-major-version) -lt 4 ]] || \
148 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
149 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
150 }
151
152 pkg_setup() {
153 kde4-base_pkg_setup
154 }
155
156 src_unpack() {
157 default
158 }
159
160 src_prepare() {
161 cp "${FILESDIR}"/50-${PN} "${T}"
162 eprefixify "${T}"/50-${PN}
163 }
164
165 src_configure() { :; }
166
167 src_compile() { :; }
168
169 src_install() {
170 dodir /usr
171 cp -aR "${S}"/usr/* "${ED}"/usr/
172
173 # prevent revdep-rebuild from attempting to rebuild all the time
174 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
175 }
176
177 pkg_preinst() {
178 # Cache updates - all handled by kde eclass for all environments
179 kde4-base_pkg_preinst
180 }
181
182 pkg_postinst() {
183 kde4-base_pkg_postinst
184
185 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
186 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
187
188 use cups || \
189 ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'
190
191 use java || \
192 ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.'
193 }
194
195 pkg_postrm() {
196 kde4-base_pkg_postrm
197 }

  ViewVC Help
Powered by ViewVC 1.1.20