/[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.3 - (hide annotations) (download)
Wed Oct 19 09:26:01 2011 UTC (2 years, 11 months ago) by scarabeus
Branch: MAIN
Changes since 1.2: +7 -1 lines
Fix the gcc checking to avoid bug 387515.

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

1 scarabeus 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.3 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3.2-r1.ebuild,v 1.2 2011/10/19 07:55:54 scarabeus Exp $
4 scarabeus 1.1
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="
17     kde? (
18     !java? ( ${BASE_URI}/${PN/-bin}-kde-${PVR}.tbz2 )
19     java? ( ${BASE_URI}/${PN/-bin}-kde-java-${PVR}.tbz2 )
20     )
21     gnome? (
22     !java? ( ${BASE_URI}/${PN/-bin}-gnome-${PVR}.tbz2 )
23     java? ( ${BASE_URI}/${PN/-bin}-gnome-java-${PVR}.tbz2 )
24     )
25     !kde? ( !gnome? (
26     !java? ( ${BASE_URI}/${PN/-bin}-base-${PVR}.tbz2 )
27     java? ( ${BASE_URI}/${PN/-bin}-base-java-${PVR}.tbz2 )
28     ) )
29     "
30    
31     IUSE="gnome java kde"
32     LICENSE="LGPL-3"
33     SLOT="0"
34     KEYWORDS="~amd64"
35    
36     COMMON_DEPEND="
37     app-arch/zip
38     app-arch/unzip
39     >=app-text/hunspell-1.3.2-r1
40     app-text/mythes
41     app-text/libwpd:0.9[tools]
42     app-text/libwpg:0.2
43     >=app-text/libwps-0.2.2
44     >=app-text/poppler-0.12.3-r3[xpdf-headers,cairo]
45     dev-db/unixODBC
46     dev-libs/expat
47     >=dev-libs/glib-2.28
48     >=dev-libs/hyphen-2.7.1
49     >=dev-libs/icu-4.8.1-r1
50     >=dev-lang/perl-5.0
51     >=dev-libs/openssl-1.0.0e
52     dev-libs/redland[ssl]
53     media-libs/freetype:2
54     >=media-libs/fontconfig-2.8.0
55     >=media-libs/vigra-1.7
56     >=media-libs/libpng-1.5
57     net-print/cups
58     sci-mathematics/lpsolve
59     >=sys-libs/db-4.8
60     virtual/jpeg
61     >=x11-libs/cairo-1.10.0
62     x11-libs/libXaw
63     x11-libs/libXinerama
64     x11-libs/libXrandr
65     x11-libs/libXrender
66     >=dev-libs/dbus-glib-0.92
67     gnome? (
68     gnome-base/gconf:2
69     gnome-extra/evolution-data-server
70     )
71     >=x11-libs/gtk+-2.24:2
72     media-gfx/graphite2
73     >=media-libs/gstreamer-0.10
74     >=media-libs/gst-plugins-base-0.10
75     java? (
76     >=dev-java/bsh-2.0_beta4
77     dev-java/lucene:2.9
78     dev-java/lucene-analyzers:2.3
79     dev-java/saxon:0
80     )
81     net-nds/openldap
82     virtual/opengl
83     net-libs/neon
84     "
85    
86     RDEPEND="${COMMON_DEPEND}
87 scarabeus 1.2 !app-office/libreoffice
88 scarabeus 1.1 !app-office/openoffice-bin
89     !app-office/openoffice
90     java? ( >=virtual/jre-1.6 )
91     "
92    
93     PDEPEND="
94     >=app-office/libreoffice-l10n-$(get_version_component_range 1-2)
95     "
96    
97     DEPEND="${COMMON_DEPEND}"
98    
99     # only one flavor at a time
100     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
101    
102     RESTRICT="test strip"
103    
104     S="${WORKDIR}"
105    
106 scarabeus 1.3 pkg_pretend() {
107     [[ $(gcc-major-version) -lt 4 ]] || \
108     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
109     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
110     }
111    
112 scarabeus 1.1 pkg_setup() {
113     kde4-base_pkg_setup
114     }
115    
116     src_unpack() {
117     default
118     }
119    
120     src_configure() { :; }
121    
122     src_compile() { :; }
123    
124     src_install() {
125     dodir /usr
126     cp -aR "${S}"/usr/* "${ED}"/usr/
127     }
128    
129     pkg_preinst() {
130     # Cache updates - all handled by kde eclass for all environments
131     kde4-base_pkg_preinst
132     }
133    
134     pkg_postinst() {
135     kde4-base_pkg_postinst
136    
137     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
138     }
139    
140     pkg_postrm() {
141     kde4-base_pkg_postrm
142     }

  ViewVC Help
Powered by ViewVC 1.1.20