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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Dec 13 00:21:58 2012 UTC (19 months ago) by dilfridge
Branch: MAIN
Version bump because of bug 445032

(Portage version: 2.2.0_alpha145/cvs/Linux x86_64, signed Manifest commit with key B6C5F7DE)

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.6.3.2.ebuild,v 1.4 2012/11/30 19:03:28 scarabeus Exp $
4    
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     KEYWORDS="-* ~amd64 ~x86"
55    
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.9.3: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     gnome-base/librsvg
88     media-gfx/graphite2
89     >=media-libs/fontconfig-2.8.0
90     media-libs/freetype:2
91     media-libs/lcms:2
92     >=media-libs/libpng-1.4
93     >=media-libs/libcdr-0.0.5
94     media-libs/libvisio
95     >=net-misc/curl-7.21.4
96     sci-mathematics/lpsolve
97     >=sys-libs/db-4.8
98     virtual/jpeg
99     >=x11-libs/cairo-1.10.0[X]
100     x11-libs/libXinerama
101     x11-libs/libXrandr
102     x11-libs/libXrender
103     cups? ( net-print/cups )
104     >=dev-libs/dbus-glib-0.92
105     gnome? ( gnome-extra/evolution-data-server )
106     gnome? ( gnome-base/gconf:2 )
107     x11-libs/gdk-pixbuf[X]
108     >=x11-libs/gtk+-2.24:2
109     >=media-libs/gstreamer-0.10:0.10
110     >=media-libs/gst-plugins-base-0.10:0.10
111     net-libs/neon
112     "
113    
114     RDEPEND="${COMMON_DEPEND}
115     !app-office/libreoffice
116     !<app-office/openoffice-bin-3.4.0-r1
117     !app-office/openoffice
118     media-fonts/libertine-ttf
119     media-fonts/liberation-fonts
120     media-fonts/urw-fonts
121     java? ( >=virtual/jre-1.6 )
122     "
123    
124     PDEPEND="
125     =app-office/libreoffice-l10n-3.6*
126     "
127    
128     DEPEND=""
129    
130     # only one flavor at a time
131     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
132    
133     RESTRICT="test strip"
134    
135     S="${WORKDIR}"
136    
137     PYTHON_UPDATER_IGNORE="1"
138    
139     pkg_pretend() {
140     [[ $(gcc-major-version) -lt 4 ]] || \
141     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
142     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
143     }
144    
145     pkg_setup() {
146     kde4-base_pkg_setup
147     }
148    
149     src_unpack() {
150     default
151     }
152    
153     src_prepare() {
154     cp "${FILESDIR}"/50-${PN} "${T}"
155     eprefixify "${T}"/50-${PN}
156     }
157    
158     src_configure() { :; }
159    
160     src_compile() { :; }
161    
162     src_install() {
163     dodir /usr
164     cp -aR "${S}"/usr/* "${ED}"/usr/
165    
166     # prevent revdep-rebuild from attempting to rebuild all the time
167     insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
168     }
169    
170     pkg_preinst() {
171     # Cache updates - all handled by kde eclass for all environments
172     kde4-base_pkg_preinst
173     }
174    
175     pkg_postinst() {
176     kde4-base_pkg_postinst
177    
178     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
179     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
180    
181     use cups && ! has_version net-print/cups || \
182     ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'
183    
184     use java || \
185     ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
186     }
187    
188     pkg_postrm() {
189     kde4-base_pkg_postrm
190     }

  ViewVC Help
Powered by ViewVC 1.1.20