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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu May 31 09:41:17 2012 UTC (2 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +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.4.5.2-r1.ebuild,v 1.7 2012/03/02 15:16:56 ago 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}.tbz2 )
20 java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tbz2 )
21 )
22 gnome? (
23 !java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tbz2 )
24 java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tbz2 )
25 )
26 !kde? ( !gnome? (
27 !java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tbz2 )
28 java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tbz2 )
29 ) )
30 "
31 SRC_URI_X86="
32 kde? (
33 !java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tbz2 )
34 java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tbz2 )
35 )
36 gnome? (
37 !java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tbz2 )
38 java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tbz2 )
39 )
40 !kde? ( !gnome? (
41 !java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tbz2 )
42 java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tbz2 )
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 COMMON_DEPEND="
57 app-arch/zip
58 app-arch/unzip
59 >=app-text/hunspell-1.3.2-r3
60 app-text/mythes
61 app-text/libwpd:0.9[tools]
62 app-text/libwpg:0.2
63 >=app-text/libwps-0.2.2
64 dev-db/unixODBC
65 dev-libs/expat
66 >=dev-libs/glib-2.28
67 >=dev-libs/hyphen-2.7.1
68 >=dev-libs/icu-4.8.1-r1
69 >=dev-lang/perl-5.0
70 >=dev-libs/openssl-1.0.0e
71 >=dev-libs/redland-1.0.14[ssl]
72 media-libs/freetype:2
73 >=media-libs/fontconfig-2.8.0
74 >=media-libs/libpng-1.5
75 sci-mathematics/lpsolve
76 >=sys-libs/db-4.8
77 virtual/jpeg
78 >=x11-libs/cairo-1.10.0[X]
79 x11-libs/libXaw
80 x11-libs/libXinerama
81 x11-libs/libXrandr
82 x11-libs/libXrender
83 >=dev-libs/dbus-glib-0.92
84 gnome? (
85 gnome-base/gconf:2
86 gnome-extra/evolution-data-server
87 )
88 >=x11-libs/gtk+-2.24:2
89 media-gfx/graphite2
90 >=media-libs/gstreamer-0.10
91 >=media-libs/gst-plugins-base-0.10
92 java? (
93 >=dev-java/bsh-2.0_beta4
94 dev-java/lucene:2.9
95 dev-java/lucene-analyzers:2.3
96 dev-java/saxon:0
97 )
98 virtual/opengl
99 net-libs/neon
100 "
101
102 RDEPEND="${COMMON_DEPEND}
103 !app-office/libreoffice
104 !app-office/openoffice-bin
105 !app-office/openoffice
106 media-fonts/libertine-ttf
107 media-fonts/liberation-fonts
108 media-fonts/urw-fonts
109 cups? ( net-print/cups )
110 java? ( >=virtual/jre-1.6 )
111 "
112
113 PDEPEND="
114 =app-office/libreoffice-l10n-$(get_version_component_range 1-3)*
115 debug? ( ~app-office/libreoffice-bin-debug-${PV} )
116 "
117
118 # after all it's a binary package
119 DEPEND=""
120
121 # only one flavor at a time
122 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
123
124 RESTRICT="test strip"
125
126 S="${WORKDIR}"
127
128 PYTHON_UPDATER_IGNORE="1"
129
130 pkg_pretend() {
131 [[ $(gcc-major-version) -lt 4 ]] || \
132 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
133 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
134 }
135
136 pkg_setup() {
137 kde4-base_pkg_setup
138 }
139
140 src_unpack() {
141 default
142 }
143
144 src_prepare() {
145 cp "${FILESDIR}"/50-${PN} "${T}"
146 eprefixify "${T}"/50-${PN}
147 }
148
149 src_configure() { :; }
150
151 src_compile() { :; }
152
153 src_install() {
154 dodir /usr
155 cp -aR "${S}"/usr/* "${ED}"/usr/
156
157 # prevent revdep-rebuild from attempting to rebuild all the time
158 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
159 }
160
161 pkg_preinst() {
162 # Cache updates - all handled by kde eclass for all environments
163 kde4-base_pkg_preinst
164 }
165
166 pkg_postinst() {
167 kde4-base_pkg_postinst
168
169 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
170
171 use cups || \
172 ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'
173 }
174
175 pkg_postrm() {
176 kde4-base_pkg_postrm
177 }

  ViewVC Help
Powered by ViewVC 1.1.20