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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Thu Dec 20 11:11:32 2012 UTC (20 months, 1 week ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove older broken and sec-vuln versions.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)

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

  ViewVC Help
Powered by ViewVC 1.1.20