/[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.1 - (hide annotations) (download)
Fri Aug 3 08:07:47 2012 UTC (2 years ago) by dilfridge
Branch: MAIN
Version bump

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

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

  ViewVC Help
Powered by ViewVC 1.1.20