Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/
Date: Sat, 26 Sep 2015 21:08:31
Message-Id: 1443301635.521c55fbd379b7d4739ee861ea318bc29e05417c.dilfridge@gentoo
1 commit: 521c55fbd379b7d4739ee861ea318bc29e05417c
2 Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 21:07:15 2015 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 21:07:15 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=521c55fb
7
8 app-office/libreoffice: Remove old
9
10 Package-Manager: portage-2.2.20.1
11
12 app-office/libreoffice/Manifest | 2 -
13 app-office/libreoffice/libreoffice-4.4.4.3.ebuild | 615 ----------------------
14 2 files changed, 617 deletions(-)
15
16 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
17 index 4afeda9..a9bf772 100644
18 --- a/app-office/libreoffice/Manifest
19 +++ b/app-office/libreoffice/Manifest
20 @@ -6,12 +6,10 @@ DIST 4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 555
21 DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 SHA256 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f WHIRLPOOL 8e446eb44188046b0e90694feba232f42c2e9f13d0f43783a18de37c94b86ff919b994931125c5d8001ecd320c1f4db5da482847304aa61646600a3bb33144b4
22 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 SHA256 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a WHIRLPOOL 60b98d9af2c83c0cf12a5a60ba30957d335b8b967cac07971e1edbc787b9caecd4b3c5bb480e8b38fe8109c1cf74439ebafae130c976182c2c15399f38f5d28c
23 DIST d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz 16525605 SHA256 1f188ac03a8aa4663223eca8c82f91a55293d066d67127082e29a7dba1a98c9f SHA512 d08a7fe432e8df47d1d8992a45bb5f33149cb75b90eb74b2f2e457628d21a94b17eae0045096b053d2a866bf7710c775581c3e417b5dfaf66601aa18071b7305 WHIRLPOOL 95dc6ec0fb293c3538c1d51241283edf4e21647dcfd10229233ab7c3f13f7c78e6bb02c4d292a7cd2a2ec95575d775f0395e837bbc88ab4ddbaa5adfd62be2f0
24 -DIST libreoffice-4.4.4.3.tar.xz 164365608 SHA256 31ac86daa4f842fe825c88262b99a032ba3c0620f6e01cb22a54af14bc3dda72 SHA512 fbe97d4f8db92348927dc7c8412631ad5187968357ebdc57f22936cea84c76ced3655aac4c6ebc936b0f96d3d36bafe163eea05ed2dca02e53724bd5a0396513 WHIRLPOOL a7938d94b8644cd736a7213c0c4931a9d857da7005972bc751f6157445839ce395fdb1b6b057dc6fd681cf86143cfe96c9b2126fef2d5de5ea000eb15c5bdb35
25 DIST libreoffice-4.4.5.2.tar.xz 164472672 SHA256 3aeb4f08918c6ca6ec12fc47c2be690d2180c2e41cc3136b6ed36185b89cec0d SHA512 15abecb02d8ca478cb7d006834c8670b9e42d3e5d8ec772e9a1d805dbd2ef1145092d1d4e3a6531f21eeb75210c1354e91c4d3abeec97103ad4c3092b7b7273b WHIRLPOOL a06c9e520e6f2b40c90cb703689527faf9ed6dbe0c0c3810ad276933daa21d56465c286d3de0fe6d5330be7968ae77cff1d30151d62fb34cc7fb57535e82edd6
26 DIST libreoffice-5.0.1.2.tar.xz 167364360 SHA256 0751b9caebeb54e2c6702a58aae66a29ac59414088ccd4e7d84625d02d0fd21a SHA512 d58d104705fd80425a00ce61771dbd4bef74cda20028fb2afcc1ea44aa304048b8e96bf654ecc2619362a09d05801212bee1e9bc9c80e693c986021a55c0e725 WHIRLPOOL eadd72f705745632c05efcb2e4c85c3440be18f16f16805f241a653c39f204145a10e6e2cbb432d3a4801e652affd677756ee1f6cad1db120c5ffc47843a89f6
27 DIST libreoffice-5.0.2.2.tar.xz 166869100 SHA256 01f0680709432039762fa608bcb1240786d2b6549099a96095aab92dcebbc176 SHA512 7a72ed01b0f9fc131b7241ea4d1bb70bc813752e33d8e823e91a769d77308d2eec2d32a0fac61bdb41fd605a6f91dbaa3d5478a0b150e64fa9f7e47724f46cce WHIRLPOOL 85a592a0f478b1957d22d932adee758d48084c0c7ee00c0549fa8c956fd30f5eead09f6fc802d22d9613bda8da0c708ec99fb6d10fd82e0922c6da96a326a14c
28 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538
29 -DIST libreoffice-help-4.4.4.3.tar.xz 1876068 SHA256 80d2cb4c5ee1d97218741d4e65351763dd74a617df7a51fce275983bcc5e6bc9 SHA512 b3d05ab85b1c25c3cc045c7d5217fb61b8dfc54b58c54a04b442c678d2c51975e5aadf3e28ac3f17544dd7afd6770fd8115cd05e3878b80c378b8fed6bcc2b22 WHIRLPOOL 3204cfac0ef6d2cd741e2f319242da6943b46c82ba5635df45dc1f99c3049a542df00a31c4b48092bcfad1a6d6f5d4e3c1ba0a3248331c324c08d728f909cb27
30 DIST libreoffice-help-4.4.5.2.tar.xz 1876044 SHA256 66044aaff17cdf4d523ceea00197381bb50d4cb86359be83016a838c27761681 SHA512 0d75f41fa3a7593c621fb3cd6e7f94fe24cb5d5251e05f9e67f58e6603853cceb2b4df2cb28228e7bf464d053b5ce068bcae752bdf6ba977fdde20882540c869 WHIRLPOOL 2715278ed374f8850ccd79e94682cc003b69501c7863c84b3dc609b0377277fa523bc8eba41d8045bff344b1cc70f08171f8acc1aebb47914a4ac190ee66bc49
31 DIST libreoffice-help-5.0.1.2.tar.xz 1884112 SHA256 c71db94564307f4bcea4d556a37d5ea946c87007fbf03fc7801fbe7bc197e947 SHA512 edea7ade0a4a742788b8ceba627e9afe7ed29b4feaf6d091023697fb676421ee0a191e592991c6627d22ba7a41af2d847b188c23e42ef25f1067533b5d2a80c2 WHIRLPOOL fc54629ee68f7c22ab07295b2569313a129f63850e67f1f3bd50bdc20a3d494ad48ca14f14f0a440fef78cceed2117ba31cac0930ac5b0382f285a31acc77b86
32 DIST libreoffice-help-5.0.2.2.tar.xz 1882964 SHA256 4342a5593ba8a33b1d63549f256a4127a0b51cc1a53faffdc2708f04fef5f094 SHA512 1000423578211dc843dcedb9f864634235ab09d5234f8d8fe2897065207bdf6cd3bca7cdc1b3c012de0c78b585978a25c0df5048779bd0b9a734c9160064e313 WHIRLPOOL 8b92bcd19487c1c286a477ff0dc1b7e6bd9aaf862cfe002fadc25d461add4c4f2f8ee1e45ac0426dc2d27a6322317cacb7f65e9d0a6e6d6dad01075d18476363
33
34 diff --git a/app-office/libreoffice/libreoffice-4.4.4.3.ebuild b/app-office/libreoffice/libreoffice-4.4.4.3.ebuild
35 deleted file mode 100644
36 index dc3cec0..0000000
37 --- a/app-office/libreoffice/libreoffice-4.4.4.3.ebuild
38 +++ /dev/null
39 @@ -1,615 +0,0 @@
40 -# Copyright 1999-2015 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -# $Id$
43 -
44 -EAPI=5
45 -
46 -KDE_REQUIRED="optional"
47 -QT_MINIMAL="4.7.4"
48 -KDE_SCM="git"
49 -CMAKE_REQUIRED="never"
50 -
51 -PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
52 -PYTHON_REQ_USE="threads,xml"
53 -
54 -# experimental ; release ; old
55 -# Usually the tarballs are moved a lot so this should make
56 -# everyone happy.
57 -DEV_URI="
58 - http://dev-builds.libreoffice.org/pre-releases/src
59 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
60 - http://download.documentfoundation.org/libreoffice/old/${PV}/
61 -"
62 -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
63 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
64 -
65 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
66 -# PATCHSET="${P}-patchset-01.tar.xz"
67 -
68 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
69 -inherit base multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
70 -unset SCM_ECLASS
71 -
72 -DESCRIPTION="LibreOffice, a full office productivity suite"
73 -HOMEPAGE="http://www.libreoffice.org"
74 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
75 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
76 -
77 -# Split modules following git/tarballs
78 -# Core MUST be first!
79 -# Help is used for the image generator
80 -MODULES="core help"
81 -# Only release has the tarballs
82 -if [[ ${PV} != *9999* ]]; then
83 - for i in ${DEV_URI}; do
84 - for mod in ${MODULES}; do
85 - if [[ ${mod} == core ]]; then
86 - SRC_URI+=" ${i}/${P}.tar.xz"
87 - else
88 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
89 - fi
90 - done
91 - unset mod
92 - done
93 - unset i
94 -fi
95 -unset DEV_URI
96 -
97 -# Really required addons
98 -# These are bundles that can't be removed for now due to huge patchsets.
99 -# If you want them gone, patches are welcome.
100 -ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
101 -ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
102 -ADDONS_SRC+=" collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
103 -ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
104 -ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
105 -ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
106 -ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
107 -ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
108 -SRC_URI+=" ${ADDONS_SRC}"
109 -
110 -unset ADDONS_URI
111 -unset EXT_URI
112 -unset ADDONS_SRC
113 -
114 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
115 -+gtk gtk3 jemalloc kde mysql odk postgres telepathy test vlc"
116 -
117 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
118 -# Unpackaged separate extensions:
119 -# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
120 -# hunart: only on ooo extensions -> fubared download path somewhere on sf
121 -# numbertext, typo, validator, watch-window: ^^
122 -# oooblogger: no homepage or anything
123 -# Extensions that need extra work:
124 -for lo_xt in ${LO_EXTS}; do
125 - IUSE+=" libreoffice_extensions_${lo_xt}"
126 -done
127 -unset lo_xt
128 -
129 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
130 -SLOT="0"
131 -[[ ${PV} == *9999* ]] || \
132 -KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
133 -
134 -COMMON_DEPEND="
135 - ${PYTHON_DEPS}
136 - app-arch/zip
137 - app-arch/unzip
138 - >=app-text/hunspell-1.3.2-r3
139 - app-text/mythes
140 - >=app-text/libabw-0.1.0
141 - >=app-text/libexttextcat-3.2
142 - >=app-text/libebook-0.1.1
143 - >=app-text/libetonyek-0.1.1
144 - app-text/liblangtag
145 - >=app-text/libmspub-0.1.0
146 - >=app-text/libmwaw-0.3.4
147 - >=app-text/libodfgen-0.1.0
148 - app-text/libwpd:0.10[tools]
149 - app-text/libwpg:0.3
150 - =app-text/libwps-0.3*
151 - >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
152 - >=dev-cpp/clucene-2.3.3.4-r2
153 - =dev-cpp/libcmis-0.5*
154 - dev-db/unixODBC
155 - >=dev-libs/boost-1.55:=
156 - dev-libs/expat
157 - >=dev-libs/hyphen-2.7.1
158 - >=dev-libs/icu-4.8.1.1:=
159 - =dev-libs/liborcus-0.7*
160 - >=dev-libs/librevenge-0.0.1
161 - >=dev-libs/nspr-4.8.8
162 - >=dev-libs/nss-3.12.9
163 - >=dev-lang/perl-5.0
164 - >=dev-libs/openssl-1.0.0d:0
165 - >=dev-libs/redland-1.0.16
166 - media-gfx/graphite2
167 - >=media-libs/fontconfig-2.8.0
168 - media-libs/freetype:2
169 - >=media-libs/glew-1.10
170 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
171 - media-libs/lcms:2
172 - >=media-libs/libpng-1.4:0=
173 - >=media-libs/libcdr-0.1.0
174 - >=media-libs/libfreehand-0.1.0
175 - media-libs/libpagemaker
176 - >=media-libs/libvisio-0.1.0
177 - >=net-misc/curl-7.21.4
178 - net-libs/neon
179 - net-nds/openldap
180 - sci-mathematics/lpsolve
181 - virtual/jpeg:0
182 - >=x11-libs/cairo-1.10.0[X]
183 - x11-libs/libXinerama
184 - x11-libs/libXrandr
185 - x11-libs/libXrender
186 - virtual/glu
187 - virtual/opengl
188 - bluetooth? ( net-wireless/bluez )
189 - coinmp? ( sci-libs/coinor-mp )
190 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
191 - cups? ( net-print/cups )
192 - dbus? ( >=dev-libs/dbus-glib-0.92 )
193 - eds? ( gnome-extra/evolution-data-server )
194 - firebird? ( >=dev-db/firebird-2.5 )
195 - gltf? ( media-libs/libgltf )
196 - gnome? ( gnome-base/gconf:2 )
197 - gtk? (
198 - x11-libs/gdk-pixbuf[X]
199 - >=x11-libs/gtk+-2.24:2
200 - )
201 - gtk3? ( >=x11-libs/gtk+-3.2:3 )
202 - gstreamer? (
203 - media-libs/gstreamer:1.0
204 - media-libs/gst-plugins-base:1.0
205 - )
206 - jemalloc? ( dev-libs/jemalloc )
207 - libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
208 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
209 - libreoffice_extensions_wiki-publisher? (
210 - dev-java/commons-codec:0
211 - dev-java/commons-httpclient:3
212 - dev-java/commons-lang:2.1
213 - dev-java/commons-logging:0
214 - dev-java/tomcat-servlet-api:3.0
215 - )
216 - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
217 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
218 - telepathy? (
219 - dev-libs/glib:2
220 - >=net-libs/telepathy-glib-0.18.0
221 - >=x11-libs/gtk+-2.24:2
222 - )
223 -"
224 -
225 -RDEPEND="${COMMON_DEPEND}
226 - !app-office/libreoffice-bin
227 - !app-office/libreoffice-bin-debug
228 - !<app-office/openoffice-bin-3.4.0-r1
229 - !app-office/openoffice
230 - media-fonts/libertine
231 - media-fonts/liberation-fonts
232 - media-fonts/urw-fonts
233 - java? ( >=virtual/jre-1.6 )
234 - kde? ( $(add_kdeapps_dep kioclient) )
235 - vlc? ( media-video/vlc )
236 -"
237 -
238 -if [[ ${PV} != *9999* ]]; then
239 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
240 -else
241 - # Translations are not reliable on live ebuilds
242 - # rather force people to use english only.
243 - PDEPEND="!app-office/libreoffice-l10n"
244 -fi
245 -
246 -# FIXME: cppunit should be moved to test conditional
247 -# after everything upstream is under gbuild
248 -# as dmake execute tests right away
249 -DEPEND="${COMMON_DEPEND}
250 - >=dev-libs/libatomic_ops-7.2d
251 - >=dev-libs/libxml2-2.7.8
252 - dev-libs/libxslt
253 - dev-perl/Archive-Zip
254 - dev-util/cppunit
255 - >=dev-util/gperf-3
256 - dev-util/intltool
257 - >=dev-util/mdds-0.11.2:=
258 - media-libs/glm
259 - net-misc/npapi-sdk
260 - >=sys-apps/findutils-4.4.2
261 - sys-devel/bison
262 - sys-apps/coreutils
263 - sys-devel/flex
264 - sys-devel/gettext
265 - >=sys-devel/make-3.82
266 - sys-devel/ucpp
267 - sys-libs/zlib
268 - virtual/pkgconfig
269 - x11-libs/libXt
270 - x11-libs/libXtst
271 - x11-proto/randrproto
272 - x11-proto/xextproto
273 - x11-proto/xineramaproto
274 - x11-proto/xproto
275 - java? (
276 - >=virtual/jdk-1.6
277 - >=dev-java/ant-core-1.7
278 - )
279 - odk? ( >=app-doc/doxygen-1.8.4 )
280 - test? ( dev-util/cppunit )
281 -"
282 -
283 -PATCHES=(
284 - # not upstreamable stuff
285 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
286 -
287 - # from master branch
288 - "${FILESDIR}/${PN}-4.3.5.2-remove-bashisms.patch" # bug 525454
289 - "${FILESDIR}/${PN}-4.4.0.3-telepathy-build-fix.patch"
290 - "${FILESDIR}/${PN}-4.4.1.2-add-kde4-open-url-script.patch"
291 - "${FILESDIR}/${PN}-4.4.4.3-improve-KDE4FilePicker.patch"
292 - "${FILESDIR}/${PN}-4.4.4.3-fix-KDE4-FileDialog.patch"
293 - "${FILESDIR}/${PN}-4.4.4.3-cleanup-IsNativeControlSupported.patch"
294 -)
295 -
296 -REQUIRED_USE="
297 - ${PYTHON_REQUIRED_USE}
298 - bluetooth? ( dbus )
299 - collada? ( gltf )
300 - gnome? ( gtk )
301 - eds? ( gnome )
302 - telepathy? ( gtk )
303 - libreoffice_extensions_nlpsolver? ( java )
304 - libreoffice_extensions_scripting-beanshell? ( java )
305 - libreoffice_extensions_scripting-javascript? ( java )
306 - libreoffice_extensions_wiki-publisher? ( java )
307 -"
308 -
309 -CHECKREQS_MEMORY="512M"
310 -CHECKREQS_DISK_BUILD="6G"
311 -
312 -pkg_pretend() {
313 - local pgslot
314 -
315 - if [[ ${MERGE_TYPE} != binary ]]; then
316 - check-reqs_pkg_pretend
317 -
318 - if [[ $(gcc-major-version) -lt 4 ]] || \
319 - ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
320 - ; then
321 - eerror "Compilation with gcc older than 4.6 is not supported"
322 - die "Too old gcc found."
323 - fi
324 - fi
325 -
326 - # Ensure pg version but we have to be sure the pg is installed (first
327 - # install on clean system)
328 - if use postgres && has_version dev-db/postgresql; then
329 - pgslot=$(postgresql-config show)
330 - if [[ ${pgslot//.} < 90 ]] ; then
331 - eerror "PostgreSQL slot must be set to 9.0 or higher."
332 - eerror " postgresql-config set 9.0"
333 - die "PostgreSQL slot is not set to 9.0 or higher."
334 - fi
335 - fi
336 -}
337 -
338 -pkg_setup() {
339 - java-pkg-opt-2_pkg_setup
340 - kde4-base_pkg_setup
341 - python-single-r1_pkg_setup
342 -
343 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
344 -}
345 -
346 -src_unpack() {
347 - local mod mod2 dest tmplfile tmplname mypv
348 -
349 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
350 - use branding && unpack "${BRANDING}"
351 -
352 - if [[ ${PV} != *9999* ]]; then
353 - unpack "${P}.tar.xz"
354 - for mod in ${MODULES}; do
355 - [[ ${mod} == core ]] && continue
356 - unpack "${PN}-${mod}-${PV}.tar.xz"
357 - done
358 - else
359 - for mod in ${MODULES}; do
360 - mypv=${PV/.9999}
361 - [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
362 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
363 - [[ ${mod} != core ]] && EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${mod}-${PV}"
364 - EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
365 - git-r3_src_unpack
366 - if [[ ${mod} != core ]]; then
367 - mod2=${mod}
368 - # mapping does not match on help
369 - [[ ${mod} == help ]] && mod2="helpcontent2"
370 - mkdir -p "${S}/${mod2}/" || die
371 - mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
372 - rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
373 - fi
374 - done
375 - unset EGIT_CHECKOUT_DIR EGIT_REPO_URI EGIT_BRANCH
376 - fi
377 -}
378 -
379 -src_prepare() {
380 - # optimization flags
381 - export GMAKE_OPTIONS="${MAKEOPTS}"
382 - # System python 2.7 enablement:
383 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
384 - export PYTHON_LIBS=$(python_get_LIBS)
385 -
386 - if use collada; then
387 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
388 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
389 - fi
390 -
391 - # patchset
392 - if [[ -n ${PATCHSET} ]]; then
393 - EPATCH_FORCE="yes" \
394 - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
395 - EPATCH_SUFFIX="patch" \
396 - epatch
397 - fi
398 -
399 - base_src_prepare
400 -
401 - AT_M4DIR="m4" eautoreconf
402 - # hack in the autogen.sh
403 - touch autogen.lastrun
404 -
405 - # system pyuno mess
406 - sed \
407 - -e "s:%eprefix%:${EPREFIX}:g" \
408 - -e "s:%libdir%:$(get_libdir):g" \
409 - -i pyuno/source/module/uno.py \
410 - -i pyuno/source/officehelper.py || die
411 - # sed in the tests
412 - sed -i \
413 - -e 's#all : build unitcheck#all : build#g' \
414 - solenv/gbuild/Module.mk || die
415 - sed -i \
416 - -e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
417 - -e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
418 - Makefile.in || die
419 -
420 - if use branding; then
421 - # hack...
422 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
423 - fi
424 -}
425 -
426 -src_configure() {
427 - local java_opts
428 - local internal_libs
429 - local lo_ext
430 - local ext_opts
431 -
432 - # sane: just sane.h header that is used for scan in writer, not
433 - # linked or anything else, worthless to depend on
434 - # vigra: just uses templates from there
435 - # it is serious pain in the ass for packaging
436 - # should be replaced by boost::gil if someone interested
437 - internal_libs+="
438 - --without-system-sane
439 - --without-system-vigra
440 - "
441 -
442 - # libreoffice extensions handling
443 - for lo_xt in ${LO_EXTS}; do
444 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
445 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
446 - else
447 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
448 - fi
449 - done
450 -
451 - if use java; then
452 - # hsqldb: system one is too new
453 - java_opts="
454 - --without-junit
455 - --without-system-hsqldb
456 - --with-ant-home="${ANT_HOME}"
457 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
458 - --with-jvm-path="${EPREFIX}/usr/lib/"
459 - "
460 -
461 - use libreoffice_extensions_scripting-beanshell && \
462 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
463 -
464 - use libreoffice_extensions_scripting-javascript && \
465 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
466 -
467 - if use libreoffice_extensions_wiki-publisher; then
468 - java_opts+="
469 - --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
470 - --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
471 - --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
472 - --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
473 - --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
474 - "
475 - fi
476 - fi
477 -
478 - # system headers/libs/...: enforce using system packages
479 - # --enable-cairo: ensure that cairo is always required
480 - # --enable-graphite: disabling causes build breakages
481 - # --enable-*-link: link to the library rather than just dlopen on runtime
482 - # --enable-release-build: build the libreoffice as release
483 - # --disable-fetch-external: prevent dowloading during compile phase
484 - # --disable-gnome-vfs: old gnome virtual fs support
485 - # --disable-kdeab: kde3 adressbook
486 - # --disable-kde: kde3 support
487 - # --disable-systray: quickstarter does not actually work at all so do not
488 - # promote it
489 - # --enable-extension-integration: enable any extension integration support
490 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
491 - # --disable-report-builder: too much java packages pulled in without pkgs
492 - econf \
493 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
494 - --with-system-headers \
495 - --with-system-libs \
496 - --with-system-jars \
497 - --with-system-dicts \
498 - --enable-cairo-canvas \
499 - --enable-graphite \
500 - --enable-largefile \
501 - --enable-mergelibs \
502 - --enable-neon \
503 - --enable-python=system \
504 - --enable-randr \
505 - --enable-randr-link \
506 - --enable-release-build \
507 - --disable-hardlink-deliver \
508 - --disable-ccache \
509 - --disable-crashdump \
510 - --disable-dependency-tracking \
511 - --disable-epm \
512 - --disable-fetch-external \
513 - --disable-gnome-vfs \
514 - --disable-gstreamer-0-10 \
515 - --disable-report-builder \
516 - --disable-kdeab \
517 - --disable-kde \
518 - --disable-online-update \
519 - --disable-systray \
520 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
521 - --with-build-version="Gentoo official package" \
522 - --enable-extension-integration \
523 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
524 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
525 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
526 - --with-external-tar="${DISTDIR}" \
527 - --with-lang="" \
528 - --with-parallelism=$(makeopts_jobs) \
529 - --with-system-ucpp \
530 - --with-vendor="Gentoo Foundation" \
531 - --with-x \
532 - --without-fonts \
533 - --without-myspell-dicts \
534 - --without-help \
535 - --with-helppack-integration \
536 - --without-sun-templates \
537 - $(use_enable bluetooth sdremote-bluetooth) \
538 - $(use_enable coinmp) \
539 - $(use_enable collada) \
540 - $(use_enable cups) \
541 - $(use_enable debug) \
542 - $(use_enable dbus) \
543 - $(use_enable eds evolution2) \
544 - $(use_enable firebird firebird-sdbc) \
545 - $(use_enable gltf) \
546 - $(use_enable gnome gconf) \
547 - $(use_enable gnome gio) \
548 - $(use_enable gnome lockdown) \
549 - $(use_enable gstreamer gstreamer-1-0) \
550 - $(use_enable gtk) \
551 - $(use_enable gtk3) \
552 - $(use_enable kde kde4) \
553 - $(use_enable mysql ext-mariadb-connector) \
554 - $(use_enable odk) \
555 - $(use_enable postgres postgresql-sdbc) \
556 - $(use_enable telepathy) \
557 - $(use_enable vlc) \
558 - $(use_with coinmp system-coinmp) \
559 - $(use_with collada system-opencollada) \
560 - $(use_with gltf system-libgltf) \
561 - $(use_with java) \
562 - $(use_with mysql system-mysql-cppconn) \
563 - $(use_with odk doxygen) \
564 - ${internal_libs} \
565 - ${java_opts} \
566 - ${ext_opts}
567 -}
568 -
569 -src_compile() {
570 - # more and more LO stuff tries to use OpenGL, including tests during build
571 - # bug 501508, bug 540624, bug 545974 and probably more
572 - addpredict /dev/dri
573 - addpredict /dev/ati
574 - addpredict /dev/nvidiactl
575 -
576 - # hack for offlinehelp, this needs fixing upstream at some point
577 - # it is broken because we send --without-help
578 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
579 - (
580 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
581 - source "${T}/config_host.mk" 2&> /dev/null
582 -
583 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
584 - mkdir -p "${path}" || die
585 -
586 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
587 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
588 - -dir=icon-themes/galaxy/res/helpimg \
589 - > "${path}/helpimg.ilst"
590 - [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
591 - )
592 -
593 - local target
594 - use test && target="build" || target="build-nocheck"
595 -
596 - # this is not a proper make script
597 - make ${target} || die
598 -}
599 -
600 -src_test() {
601 - make unitcheck || die
602 - make slowcheck || die
603 -}
604 -
605 -src_install() {
606 - # This is not Makefile so no buildserver
607 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
608 -
609 - # Fix bash completion placement
610 - newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
611 - bashcomp_alias \
612 - libreoffice \
613 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
614 - rm -rf "${ED}"/etc/ || die
615 -
616 - if use branding; then
617 - insinto /usr/$(get_libdir)/${PN}/program
618 - newins "${WORKDIR}/branding-sofficerc" sofficerc
619 - dodir /etc/env.d
620 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
621 - fi
622 -
623 - # Hack for offlinehelp, this needs fixing upstream at some point.
624 - # It is broken because we send --without-help
625 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
626 - insinto /usr/$(get_libdir)/libreoffice/help
627 - doins xmlhelp/util/*.xsl
628 -
629 - # Remove desktop files for support to old installs that can't parse mime
630 - rm -rf "${ED}"/usr/share/mimelnk/
631 -
632 - # FIXME: Hack add missing file
633 - insinto /usr/$(get_libdir)/${PN}/program
634 - doins "${S}"/instdir/program/libsaxlo.so
635 -
636 - pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
637 - pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
638 -}
639 -
640 -pkg_preinst() {
641 - # Cache updates - all handled by kde eclass for all environments
642 - kde4-base_pkg_preinst
643 -}
644 -
645 -pkg_postinst() {
646 - kde4-base_pkg_postinst
647 -
648 - use java || \
649 - ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
650 -}
651 -
652 -pkg_postrm() {
653 - kde4-base_pkg_postrm
654 -}