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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20