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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Oct 23 09:39:44 2011 UTC (2 years, 9 months ago) by scarabeus
Branch: MAIN
Changes since 1.4: +30 -10 lines
Add binaries for x86 too.

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

1 # Copyright 1999-2011 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.3.2-r1.ebuild,v 1.4 2011/10/22 12:26:53 scarabeus Exp $
4
5 EAPI=4
6
7 KDE_REQUIRED="optional"
8 CMAKE_REQUIRED="never"
9
10 BASE_URI="http://dev.gentooexperimental.org/~scarabeus/libreo_binary/"
11
12 inherit kde4-base java-pkg-opt-2 pax-utils
13
14 DESCRIPTION="LibreOffice, a full office productivity suite. Binary package"
15 HOMEPAGE="http://www.libreoffice.org"
16 SRC_URI_AMD64="
17 kde? (
18 !java? ( ${BASE_URI}/amd64/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-amd64-${PVR}.tbz2 )
19 java? ( ${BASE_URI}/amd64/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-amd64-${PVR}.tbz2 )
20 )
21 gnome? (
22 !java? ( ${BASE_URI}/amd64/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-amd64-${PVR}.tbz2 )
23 java? ( ${BASE_URI}/amd64/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-amd64-${PVR}.tbz2 )
24 )
25 !kde? ( !gnome? (
26 !java? ( ${BASE_URI}/amd64/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-amd64-${PVR}.tbz2 )
27 java? ( ${BASE_URI}/amd64/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-amd64-${PVR}.tbz2 )
28 ) )
29 "
30
31 SRC_URI_X86="
32 kde? (
33 !java? ( ${BASE_URI}/x86/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-x86-${PVR}.tbz2 )
34 java? ( ${BASE_URI}/x86/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-x86-${PVR}.tbz2 )
35 )
36 gnome? (
37 !java? ( ${BASE_URI}/x86/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-x86-${PVR}.tbz2 )
38 java? ( ${BASE_URI}/x86/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-x86-${PVR}.tbz2 )
39 )
40 !kde? ( !gnome? (
41 !java? ( ${BASE_URI}/x86/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-x86-${PVR}.tbz2 )
42 java? ( ${BASE_URI}/x86/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-x86-${PVR}.tbz2 )
43 ) )
44 "
45
46 SRC_URI="
47 amd64? ( ${SRC_URI_AMD64} )
48 x86? ( ${SRC_URI_X86} )
49 "
50
51 IUSE="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-r1
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 >=app-text/poppler-0.12.3-r3[xpdf-headers,cairo]
65 dev-db/unixODBC
66 dev-libs/expat
67 >=dev-libs/glib-2.28
68 >=dev-libs/hyphen-2.7.1
69 >=dev-libs/icu-4.8.1-r1
70 >=dev-lang/perl-5.0
71 >=dev-libs/openssl-1.0.0e
72 dev-libs/redland[ssl]
73 media-libs/freetype:2
74 >=media-libs/fontconfig-2.8.0
75 >=media-libs/vigra-1.7
76 >=media-libs/libpng-1.5
77 net-print/cups
78 sci-mathematics/lpsolve
79 >=sys-libs/db-4.8
80 virtual/jpeg
81 >=x11-libs/cairo-1.10.0
82 x11-libs/libXaw
83 x11-libs/libXinerama
84 x11-libs/libXrandr
85 x11-libs/libXrender
86 >=dev-libs/dbus-glib-0.92
87 gnome? (
88 gnome-base/gconf:2
89 gnome-extra/evolution-data-server
90 )
91 >=x11-libs/gtk+-2.24:2
92 media-gfx/graphite2
93 >=media-libs/gstreamer-0.10
94 >=media-libs/gst-plugins-base-0.10
95 java? (
96 >=dev-java/bsh-2.0_beta4
97 dev-java/lucene:2.9
98 dev-java/lucene-analyzers:2.3
99 dev-java/saxon:0
100 )
101 net-nds/openldap
102 virtual/opengl
103 net-libs/neon
104 "
105
106 RDEPEND="${COMMON_DEPEND}
107 !app-office/libreoffice
108 !app-office/openoffice-bin
109 !app-office/openoffice
110 java? ( >=virtual/jre-1.6 )
111 "
112
113 PDEPEND="
114 >=app-office/libreoffice-l10n-$(get_version_component_range 1-2)
115 "
116
117 DEPEND="${COMMON_DEPEND}"
118
119 # only one flavor at a time
120 REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
121
122 RESTRICT="test strip"
123
124 S="${WORKDIR}"
125
126 pkg_pretend() {
127 [[ $(gcc-major-version) -lt 4 ]] || \
128 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
129 && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
130 }
131
132 pkg_setup() {
133 kde4-base_pkg_setup
134 }
135
136 src_unpack() {
137 default
138 }
139
140 src_configure() { :; }
141
142 src_compile() { :; }
143
144 src_install() {
145 dodir /usr
146 cp -aR "${S}"/usr/* "${ED}"/usr/
147 }
148
149 pkg_preinst() {
150 # Cache updates - all handled by kde eclass for all environments
151 kde4-base_pkg_preinst
152 }
153
154 pkg_postinst() {
155 kde4-base_pkg_postinst
156
157 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
158 }
159
160 pkg_postrm() {
161 kde4-base_pkg_postrm
162 }

  ViewVC Help
Powered by ViewVC 1.1.20