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

Contents of /app-office/libreoffice-bin/libreoffice-bin-3.5.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu May 31 09:41:17 2012 UTC (2 years, 6 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Reduce number of binaries to keep only latest.

(Portage version: 2.2.0_alpha108/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.2.2.ebuild,v 1.9 2012/05/15 18:05:49 scarabeus 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 >=sys-libs/glibc-2.14.1-r3
58 ~dev-libs/icu-4.8.1.1
59 "
60 COMMON_DEPEND="
61 ${BIN_COMMON_DEPEND}
62 app-arch/zip
63 app-arch/unzip
64 >=app-text/hunspell-1.3.2-r3
65 app-text/mythes
66 >=app-text/libexttextcat-3.2
67 app-text/libwpd:0.9[tools]
68 app-text/libwpg:0.2
69 >=app-text/libwps-0.2.2
70 dev-cpp/libcmis
71 dev-db/unixODBC
72 dev-libs/expat
73 >=dev-libs/glib-2.28
74 >=dev-libs/hyphen-2.7.1
75 >=dev-lang/perl-5.0
76 >=dev-libs/openssl-1.0.0d
77 >=dev-libs/redland-1.0.14[ssl]
78 >=media-libs/fontconfig-2.8.0
79 media-libs/freetype:2
80 >=media-libs/libpng-1.4
81 media-libs/libvisio
82 >=net-misc/curl-7.24.0
83 sci-mathematics/lpsolve
84 >=sys-libs/db-4.8
85 virtual/jpeg
86 >=x11-libs/cairo-1.10.0[X]
87 x11-libs/libXinerama
88 x11-libs/libXrandr
89 x11-libs/libXrender
90 >=dev-libs/dbus-glib-0.92
91 gnome? ( gnome-extra/evolution-data-server )
92 gnome? (
93 gnome-base/gconf:2
94 gnome-base/orbit
95 )
96 >=x11-libs/gtk+-2.24:2
97 media-gfx/graphite2
98 >=media-libs/gstreamer-0.10
99 >=media-libs/gst-plugins-base-0.10
100 java? (
101 >=dev-java/bsh-2.0_beta4
102 dev-java/lucene:2.9
103 dev-java/lucene-analyzers:2.3
104 )
105 net-libs/neon
106 "
107
108 RDEPEND="${COMMON_DEPEND}
109 !app-office/libreoffice
110 !app-office/openoffice-bin
111 !app-office/openoffice
112 media-fonts/libertine-ttf
113 media-fonts/liberation-fonts
114 media-fonts/urw-fonts
115 cups? ( net-print/cups )
116 java? ( >=virtual/jre-1.6 )
117 "
118
119 PDEPEND="
120 >=app-office/libreoffice-l10n-3.5.2
121 "
122
123 # after all it's a binary package
124 DEPEND=""
125
126 # only one flavor at a time
127 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
128
129 RESTRICT="test strip"
130
131 S="${WORKDIR}"
132
133 PYTHON_UPDATER_IGNORE="1"
134
135 pkg_pretend() {
136 [[ $(gcc-major-version) -lt 4 ]] || \
137 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
138 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
139 }
140
141 pkg_setup() {
142 kde4-base_pkg_setup
143 }
144
145 src_unpack() {
146 default
147 }
148
149 src_prepare() {
150 cp "${FILESDIR}"/50-${PN} "${T}"
151 eprefixify "${T}"/50-${PN}
152 }
153
154 src_configure() { :; }
155
156 src_compile() { :; }
157
158 src_install() {
159 dodir /usr
160 cp -aR "${S}"/usr/* "${ED}"/usr/
161
162 # prevent revdep-rebuild from attempting to rebuild all the time
163 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
164 }
165
166 pkg_preinst() {
167 # Cache updates - all handled by kde eclass for all environments
168 kde4-base_pkg_preinst
169 }
170
171 pkg_postinst() {
172 kde4-base_pkg_postinst
173
174 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
175
176 use cups || \
177 ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'
178
179 use java || \
180 ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.'
181 }
182
183 pkg_postrm() {
184 kde4-base_pkg_postrm
185 }

  ViewVC Help
Powered by ViewVC 1.1.20