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

Contents of /app-office/libreoffice-bin/libreoffice-bin-4.1.3.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Dec 12 23:41:53 2013 UTC (12 months, 1 week ago) by dilfridge
Branch: MAIN
Update for newer harfbuzz, including the kde crash fixes from source 4.1.3.2-r2

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)

1 dilfridge 1.1 # Copyright 1999-2013 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-4.1.3.2.ebuild,v 1.2 2013/11/04 21:07:27 dilfridge Exp $
4    
5     EAPI=5
6    
7     KDE_REQUIRED="optional"
8     CMAKE_REQUIRED="never"
9    
10     BASE_PACKAGENAME="bin"
11     BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
12     BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
13    
14     PYTHON_COMPAT=( python2_7 python3_3 )
15     PYTHON_REQ_USE="threads,xml"
16    
17     inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
18    
19     DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
20     HOMEPAGE="http://www.libreoffice.org"
21     SRC_URI_AMD64="
22     ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
23     kde? (
24     !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
25     java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
26     )
27     gnome? (
28     !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
29     java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
30     )
31     !kde? ( !gnome? (
32     java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
33     ) )
34     "
35     SRC_URI_X86="
36     ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
37     kde? (
38     !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
39     java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
40     )
41     gnome? (
42     !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
43     java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
44     )
45     !kde? ( !gnome? (
46     java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
47     ) )
48     "
49    
50     SRC_URI="
51     amd64? ( ${SRC_URI_AMD64} )
52     x86? ( ${SRC_URI_X86} )
53     "
54    
55     IUSE="gnome java kde"
56     LICENSE="LGPL-3"
57     SLOT="0"
58     KEYWORDS="-* ~amd64 ~x86"
59    
60     BIN_COMMON_DEPEND="
61     =app-text/libexttextcat-3.4*
62     app-text/poppler:0/43
63     dev-libs/boost:0/1.52
64     dev-libs/icu:0/51.2
65     =media-gfx/graphite2-1.2*
66     =media-libs/harfbuzz-0.9.23[icu]
67     =media-libs/libpng-1.5*
68     >=sys-libs/glibc-2.16.0
69     kde? ( >=kde-base/kdelibs-4.11.2-r1:4 >=dev-qt/qtcore-4.8.5:4 )
70     || ( <media-libs/libjpeg-turbo-1.3.0-r2 =media-libs/jpeg-8* )
71     "
72    
73     # PLEASE place any restrictions that are specific to the binary builds
74     # into the BIN_COMMON_DEPEND block above.
75     # All dependencies below this point should remain identical to those in
76     # the source ebuilds.
77    
78     COMMON_DEPEND="
79     ${BIN_COMMON_DEPEND}
80     ${PYTHON_DEPS}
81     app-arch/zip
82     app-arch/unzip
83     >=app-text/hunspell-1.3.2-r3
84     app-text/mythes
85     >=app-text/libexttextcat-3.2
86     app-text/liblangtag
87     app-text/libmspub
88     >=app-text/libmwaw-0.1.7
89     app-text/libodfgen
90     app-text/libwpd:0.9[tools]
91     app-text/libwpg:0.2
92     >=app-text/libwps-0.2.2
93     >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
94     >=dev-cpp/clucene-2.3.3.4-r2
95     >=dev-cpp/libcmis-0.3.1:0.3
96     dev-db/unixODBC
97     >=dev-libs/boost-1.46:=
98     dev-libs/expat
99     >=dev-libs/hyphen-2.7.1
100     >=dev-libs/icu-4.8.1.1:=
101     >=dev-libs/liborcus-0.5.1:=
102     >=dev-libs/nspr-4.8.8
103     >=dev-libs/nss-3.12.9
104     >=dev-lang/perl-5.0
105     >=dev-libs/openssl-1.0.0d
106     >=dev-libs/redland-1.0.16[ssl]
107     media-gfx/graphite2
108     >=media-libs/fontconfig-2.8.0
109     media-libs/freetype:2
110     >=media-libs/harfbuzz-0.9.10:=[icu(+)]
111     media-libs/lcms:2
112     >=media-libs/libpng-1.4
113     >=media-libs/libcdr-0.0.5
114     media-libs/libvisio
115     >=net-misc/curl-7.21.4
116     net-nds/openldap
117     sci-mathematics/lpsolve
118     virtual/jpeg
119     >=x11-libs/cairo-1.10.0[X]
120     x11-libs/libXinerama
121     x11-libs/libXrandr
122     x11-libs/libXrender
123     net-print/cups
124     >=dev-libs/dbus-glib-0.92
125     gnome? ( gnome-extra/evolution-data-server )
126     gnome? ( gnome-base/gconf:2 )
127     x11-libs/gdk-pixbuf[X]
128     >=x11-libs/gtk+-2.24:2
129     media-libs/gstreamer:1.0
130     media-libs/gst-plugins-base:1.0
131     virtual/glu
132     virtual/opengl
133     net-libs/neon
134     "
135    
136     RDEPEND="${COMMON_DEPEND}
137     !app-office/libreoffice
138     !<app-office/openoffice-bin-3.4.0-r1
139     !app-office/openoffice
140     media-fonts/libertine-ttf
141     media-fonts/liberation-fonts
142     media-fonts/urw-fonts
143     java? ( >=virtual/jre-1.6 )
144     "
145    
146     PDEPEND="
147     =app-office/libreoffice-l10n-${PV}*
148     "
149    
150     DEPEND="dev-util/xdelta:3"
151    
152     # only one flavor at a time
153     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
154    
155     RESTRICT="test strip"
156    
157     S="${WORKDIR}"
158    
159     PYTHON_UPDATER_IGNORE="1"
160    
161     pkg_pretend() {
162     [[ $(gcc-major-version) -lt 4 ]] || \
163     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
164     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
165     }
166    
167     pkg_setup() {
168     kde4-base_pkg_setup
169     }
170    
171     src_unpack() {
172     elog "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
173     xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
174    
175     local patchname
176     use kde && patchname="-kde"
177     use gnome && patchname="-gnome"
178     use java && patchname="${patchname}-java"
179    
180     if [ -n "${patchname}" ]; then
181     elog "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
182     xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
183     mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
184     fi
185    
186     elog "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
187     unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
188     }
189    
190     src_prepare() {
191     cp "${FILESDIR}"/50-${PN} "${T}"
192     eprefixify "${T}"/50-${PN}
193     }
194    
195     src_configure() { :; }
196    
197     src_compile() { :; }
198    
199     src_install() {
200     dodir /usr
201     cp -aR "${S}"/usr/* "${ED}"/usr/
202    
203     # prevent revdep-rebuild from attempting to rebuild all the time
204     insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
205     }
206    
207     pkg_preinst() {
208     # Cache updates - all handled by kde eclass for all environments
209     kde4-base_pkg_preinst
210     }
211    
212     pkg_postinst() {
213     kde4-base_pkg_postinst
214    
215     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
216     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
217    
218     use java || \
219     ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
220     }
221    
222     pkg_postrm() {
223     kde4-base_pkg_postrm
224     }

  ViewVC Help
Powered by ViewVC 1.1.20