1 |
commit: 9ce0ac388e81a50585f3da25ce779dd3f2137473 |
2 |
Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 31 19:40:38 2015 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 19:42:36 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce0ac38 |
7 |
|
8 |
app-office/libreoffice: Remove old |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
app-office/libreoffice/Manifest | 4 - |
13 |
app-office/libreoffice/libreoffice-5.0.1.2.ebuild | 607 --------------------- |
14 |
app-office/libreoffice/libreoffice-5.0.3.1.ebuild | 609 ---------------------- |
15 |
3 files changed, 1220 deletions(-) |
16 |
|
17 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
18 |
index fefc264..d8db86e 100644 |
19 |
--- a/app-office/libreoffice/Manifest |
20 |
+++ b/app-office/libreoffice/Manifest |
21 |
@@ -7,13 +7,9 @@ DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 SHA256 1fb458d6aab0 |
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.5.2.tar.xz 164472672 SHA256 3aeb4f08918c6ca6ec12fc47c2be690d2180c2e41cc3136b6ed36185b89cec0d SHA512 15abecb02d8ca478cb7d006834c8670b9e42d3e5d8ec772e9a1d805dbd2ef1145092d1d4e3a6531f21eeb75210c1354e91c4d3abeec97103ad4c3092b7b7273b WHIRLPOOL a06c9e520e6f2b40c90cb703689527faf9ed6dbe0c0c3810ad276933daa21d56465c286d3de0fe6d5330be7968ae77cff1d30151d62fb34cc7fb57535e82edd6 |
25 |
-DIST libreoffice-5.0.1.2.tar.xz 167364360 SHA256 0751b9caebeb54e2c6702a58aae66a29ac59414088ccd4e7d84625d02d0fd21a SHA512 d58d104705fd80425a00ce61771dbd4bef74cda20028fb2afcc1ea44aa304048b8e96bf654ecc2619362a09d05801212bee1e9bc9c80e693c986021a55c0e725 WHIRLPOOL eadd72f705745632c05efcb2e4c85c3440be18f16f16805f241a653c39f204145a10e6e2cbb432d3a4801e652affd677756ee1f6cad1db120c5ffc47843a89f6 |
26 |
DIST libreoffice-5.0.2.2.tar.xz 166869100 SHA256 01f0680709432039762fa608bcb1240786d2b6549099a96095aab92dcebbc176 SHA512 7a72ed01b0f9fc131b7241ea4d1bb70bc813752e33d8e823e91a769d77308d2eec2d32a0fac61bdb41fd605a6f91dbaa3d5478a0b150e64fa9f7e47724f46cce WHIRLPOOL 85a592a0f478b1957d22d932adee758d48084c0c7ee00c0549fa8c956fd30f5eead09f6fc802d22d9613bda8da0c708ec99fb6d10fd82e0922c6da96a326a14c |
27 |
-DIST libreoffice-5.0.3.1.tar.xz 166989184 SHA256 5502477772d6b986fc0486e7ec4e1fd7d99796f9bf63610d4dec84d77f165585 SHA512 0e157f2f126f530dbcf4849a78ce04e6abb92aed3308aae5d0b644377afea572869660624ef4ceeedcb29eaefb3c9e6defd1241a4e6be931dd39a7286325a288 WHIRLPOOL 3074c618bf98f88de6b21759c6b183e2c836e0f1577ed5b1af4eb2cd1de71b606abc151a29d2f491f4bdfbecd1f6df9eb3f21252c81205c4edcfbd1ae9611619 |
28 |
DIST libreoffice-5.0.3.2.tar.xz 167009360 SHA256 77f9c9569c1199d914f38afa01547c1874535c56ad74b19614a0afc3ad66d4bd SHA512 fe49577d26c2241a2e7d6f2e8faa25cacf77dc94dbe76f7dbbf1b208295695298d24842c73444b284e9af2a323b7536cce6727ffab0431ac22d80691a9902e62 WHIRLPOOL 2a907729d9f2b436a0206f558022d9ace69d494106e3c76f9c141d1202438ca7c662eca102595e8143cb4c70cece44447f99b1093e813249433684725f3287d0 |
29 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538 |
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 |
-DIST libreoffice-help-5.0.3.1.tar.xz 1882408 SHA256 22187900e65408f03ecb0a6463d7587ca27e32cd341d9ba0e55a99d8cdb3bc45 SHA512 25bcc9343b6df145618e6e6a6427173418243bdc066b447764999704ffae2dcafa1a295828512aa3c8362e9a843267b7634d6b2c268bb57587fdd77c03b37522 WHIRLPOOL cce758b2a8d66218bd94c4c66680a847cb5a0b9583798e8252acbd491bd18cfca56951fddc17ae270f69423346a7023f078d655bd6c07a51abef04887e0c4d51 |
34 |
DIST libreoffice-help-5.0.3.2.tar.xz 1882292 SHA256 7e5535b8bd9be88170abdef187d3cf16d2cccdb1fdbd4404a22f1cff55bd953e SHA512 73de5507b0e7994a189d5580ad7bfdf842e9a3a10cc0a9bbe39eb11f20e47fa7016f6cf6748ad7c35260587cfc7078eaac6055b439292068a9d9783509bd715d WHIRLPOOL 1e7c79250a407c0eac5f1538290dfe1f04b22799bc04a295cd6dfbf0405dc4478283dea09ede52adf25077729852c11f9f74e98f257c47a8a30b350d83d532ac |
35 |
|
36 |
diff --git a/app-office/libreoffice/libreoffice-5.0.1.2.ebuild b/app-office/libreoffice/libreoffice-5.0.1.2.ebuild |
37 |
deleted file mode 100644 |
38 |
index a8bb49b..0000000 |
39 |
--- a/app-office/libreoffice/libreoffice-5.0.1.2.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,607 +0,0 @@ |
42 |
-# Copyright 1999-2015 Gentoo Foundation |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
-# $Id$ |
45 |
- |
46 |
-EAPI=5 |
47 |
- |
48 |
-KDE_REQUIRED="optional" |
49 |
-QT_MINIMAL="4.7.4" |
50 |
-KDE_SCM="git" |
51 |
-CMAKE_REQUIRED="never" |
52 |
- |
53 |
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
54 |
-PYTHON_REQ_USE="threads,xml" |
55 |
- |
56 |
-# experimental ; release ; old |
57 |
-# Usually the tarballs are moved a lot so this should make |
58 |
-# everyone happy. |
59 |
-DEV_URI=" |
60 |
- http://dev-builds.libreoffice.org/pre-releases/src |
61 |
- http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
62 |
- http://download.documentfoundation.org/libreoffice/old/${PV}/ |
63 |
-" |
64 |
-EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
65 |
-ADDONS_URI="http://dev-www.libreoffice.org/src/" |
66 |
- |
67 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
68 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
69 |
- |
70 |
-[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" |
71 |
-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} |
72 |
-unset SCM_ECLASS |
73 |
- |
74 |
-DESCRIPTION="LibreOffice, a full office productivity suite" |
75 |
-HOMEPAGE="http://www.libreoffice.org" |
76 |
-SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
77 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
78 |
- |
79 |
-# Split modules following git/tarballs |
80 |
-# Core MUST be first! |
81 |
-# Help is used for the image generator |
82 |
-MODULES="core help" |
83 |
-# Only release has the tarballs |
84 |
-if [[ ${PV} != *9999* ]]; then |
85 |
- for i in ${DEV_URI}; do |
86 |
- for mod in ${MODULES}; do |
87 |
- if [[ ${mod} == core ]]; then |
88 |
- SRC_URI+=" ${i}/${P}.tar.xz" |
89 |
- else |
90 |
- SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
91 |
- fi |
92 |
- done |
93 |
- unset mod |
94 |
- done |
95 |
- unset i |
96 |
-fi |
97 |
-unset DEV_URI |
98 |
- |
99 |
-# Really required addons |
100 |
-# These are bundles that can't be removed for now due to huge patchsets. |
101 |
-# If you want them gone, patches are welcome. |
102 |
-ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz" |
103 |
-ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code |
104 |
-ADDONS_SRC+=" collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )" |
105 |
-ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
106 |
-ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it? |
107 |
-ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all |
108 |
-ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino |
109 |
-ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable |
110 |
-SRC_URI+=" ${ADDONS_SRC}" |
111 |
- |
112 |
-unset ADDONS_URI |
113 |
-unset EXT_URI |
114 |
-unset ADDONS_SRC |
115 |
- |
116 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer |
117 |
-+gtk gtk3 jemalloc kde mysql odk postgres telepathy test vlc" |
118 |
- |
119 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
120 |
-# Unpackaged separate extensions: |
121 |
-# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf? |
122 |
-# hunart: only on ooo extensions -> fubared download path somewhere on sf |
123 |
-# numbertext, typo, validator, watch-window: ^^ |
124 |
-# oooblogger: no homepage or anything |
125 |
-# Extensions that need extra work: |
126 |
-for lo_xt in ${LO_EXTS}; do |
127 |
- IUSE+=" libreoffice_extensions_${lo_xt}" |
128 |
-done |
129 |
-unset lo_xt |
130 |
- |
131 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
132 |
-SLOT="0" |
133 |
-[[ ${PV} == *9999* ]] || \ |
134 |
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
135 |
- |
136 |
-COMMON_DEPEND=" |
137 |
- ${PYTHON_DEPS} |
138 |
- app-arch/zip |
139 |
- app-arch/unzip |
140 |
- >=app-text/hunspell-1.3.2-r3 |
141 |
- app-text/mythes |
142 |
- >=app-text/libabw-0.1.0 |
143 |
- >=app-text/libexttextcat-3.2 |
144 |
- >=app-text/libebook-0.1.1 |
145 |
- >=app-text/libetonyek-0.1.2 |
146 |
- app-text/liblangtag |
147 |
- >=app-text/libmspub-0.1.0 |
148 |
- >=app-text/libmwaw-0.3.5 |
149 |
- >=app-text/libodfgen-0.1.0 |
150 |
- app-text/libwpd:0.10[tools] |
151 |
- app-text/libwpg:0.3 |
152 |
- =app-text/libwps-0.4* |
153 |
- >=app-text/poppler-0.16:=[xpdf-headers(+),cxx] |
154 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
155 |
- =dev-cpp/libcmis-0.5* |
156 |
- dev-db/unixODBC |
157 |
- >=dev-libs/boost-1.55:= |
158 |
- dev-libs/expat |
159 |
- >=dev-libs/hyphen-2.7.1 |
160 |
- >=dev-libs/icu-4.8.1.1:= |
161 |
- =dev-libs/liborcus-0.7* |
162 |
- >=dev-libs/librevenge-0.0.1 |
163 |
- >=dev-libs/nspr-4.8.8 |
164 |
- >=dev-libs/nss-3.12.9 |
165 |
- >=dev-lang/perl-5.0 |
166 |
- >=dev-libs/openssl-1.0.0d:0 |
167 |
- >=dev-libs/redland-1.0.16 |
168 |
- media-gfx/graphite2 |
169 |
- >=media-libs/fontconfig-2.8.0 |
170 |
- media-libs/freetype:2 |
171 |
- >=media-libs/glew-1.10 |
172 |
- >=media-libs/harfbuzz-0.9.18:=[icu(+)] |
173 |
- media-libs/lcms:2 |
174 |
- >=media-libs/libpng-1.4:0= |
175 |
- >=media-libs/libcdr-0.1.0 |
176 |
- >=media-libs/libfreehand-0.1.0 |
177 |
- media-libs/libpagemaker |
178 |
- >=media-libs/libvisio-0.1.0 |
179 |
- >=net-misc/curl-7.21.4 |
180 |
- net-libs/neon |
181 |
- net-nds/openldap |
182 |
- sci-mathematics/lpsolve |
183 |
- virtual/jpeg:0 |
184 |
- >=x11-libs/cairo-1.10.0[X] |
185 |
- x11-libs/libXinerama |
186 |
- x11-libs/libXrandr |
187 |
- x11-libs/libXrender |
188 |
- virtual/glu |
189 |
- virtual/opengl |
190 |
- bluetooth? ( net-wireless/bluez ) |
191 |
- coinmp? ( sci-libs/coinor-mp ) |
192 |
- collada? ( >=media-libs/opencollada-1.2.2_p20150207 ) |
193 |
- cups? ( net-print/cups ) |
194 |
- dbus? ( >=dev-libs/dbus-glib-0.92 ) |
195 |
- eds? ( gnome-extra/evolution-data-server ) |
196 |
- firebird? ( >=dev-db/firebird-2.5 ) |
197 |
- gltf? ( media-libs/libgltf ) |
198 |
- gnome? ( gnome-base/gconf:2 ) |
199 |
- gtk? ( |
200 |
- x11-libs/gdk-pixbuf[X] |
201 |
- >=x11-libs/gtk+-2.24:2 |
202 |
- ) |
203 |
- gtk3? ( >=x11-libs/gtk+-3.2:3 ) |
204 |
- gstreamer? ( |
205 |
- media-libs/gstreamer:1.0 |
206 |
- media-libs/gst-plugins-base:1.0 |
207 |
- ) |
208 |
- jemalloc? ( dev-libs/jemalloc ) |
209 |
- libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) |
210 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
211 |
- libreoffice_extensions_wiki-publisher? ( |
212 |
- dev-java/commons-codec:0 |
213 |
- dev-java/commons-httpclient:3 |
214 |
- dev-java/commons-lang:2.1 |
215 |
- dev-java/commons-logging:0 |
216 |
- dev-java/tomcat-servlet-api:3.0 |
217 |
- ) |
218 |
- mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
219 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
220 |
- telepathy? ( |
221 |
- dev-libs/glib:2 |
222 |
- >=net-libs/telepathy-glib-0.18.0 |
223 |
- >=x11-libs/gtk+-2.24:2 |
224 |
- ) |
225 |
-" |
226 |
- |
227 |
-RDEPEND="${COMMON_DEPEND} |
228 |
- !app-office/libreoffice-bin |
229 |
- !app-office/libreoffice-bin-debug |
230 |
- !<app-office/openoffice-bin-3.4.0-r1 |
231 |
- !app-office/openoffice |
232 |
- media-fonts/libertine |
233 |
- media-fonts/liberation-fonts |
234 |
- media-fonts/urw-fonts |
235 |
- java? ( >=virtual/jre-1.6 ) |
236 |
- kde? ( $(add_kdeapps_dep kioclient) ) |
237 |
- vlc? ( media-video/vlc ) |
238 |
-" |
239 |
- |
240 |
-if [[ ${PV} != *9999* ]]; then |
241 |
- PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" |
242 |
-else |
243 |
- # Translations are not reliable on live ebuilds |
244 |
- # rather force people to use english only. |
245 |
- PDEPEND="!app-office/libreoffice-l10n" |
246 |
-fi |
247 |
- |
248 |
-# FIXME: cppunit should be moved to test conditional |
249 |
-# after everything upstream is under gbuild |
250 |
-# as dmake execute tests right away |
251 |
-DEPEND="${COMMON_DEPEND} |
252 |
- >=dev-libs/libatomic_ops-7.2d |
253 |
- >=dev-libs/libxml2-2.7.8 |
254 |
- dev-libs/libxslt |
255 |
- dev-perl/Archive-Zip |
256 |
- dev-util/cppunit |
257 |
- >=dev-util/gperf-3 |
258 |
- dev-util/intltool |
259 |
- >=dev-util/mdds-0.12.0:= |
260 |
- media-libs/glm |
261 |
- net-misc/npapi-sdk |
262 |
- >=sys-apps/findutils-4.4.2 |
263 |
- sys-devel/bison |
264 |
- sys-apps/coreutils |
265 |
- sys-devel/flex |
266 |
- sys-devel/gettext |
267 |
- >=sys-devel/make-3.82 |
268 |
- sys-devel/ucpp |
269 |
- sys-libs/zlib |
270 |
- virtual/pkgconfig |
271 |
- x11-libs/libXt |
272 |
- x11-libs/libXtst |
273 |
- x11-proto/randrproto |
274 |
- x11-proto/xextproto |
275 |
- x11-proto/xineramaproto |
276 |
- x11-proto/xproto |
277 |
- java? ( |
278 |
- >=virtual/jdk-1.6 |
279 |
- >=dev-java/ant-core-1.7 |
280 |
- ) |
281 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
282 |
- test? ( dev-util/cppunit ) |
283 |
-" |
284 |
- |
285 |
-PATCHES=( |
286 |
- # not upstreamable stuff |
287 |
- "${FILESDIR}/${PN}-4.4-system-pyuno.patch" |
288 |
-) |
289 |
- |
290 |
-REQUIRED_USE=" |
291 |
- ${PYTHON_REQUIRED_USE} |
292 |
- bluetooth? ( dbus ) |
293 |
- collada? ( gltf ) |
294 |
- gnome? ( gtk ) |
295 |
- eds? ( gnome ) |
296 |
- telepathy? ( gtk ) |
297 |
- libreoffice_extensions_nlpsolver? ( java ) |
298 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
299 |
- libreoffice_extensions_scripting-javascript? ( java ) |
300 |
- libreoffice_extensions_wiki-publisher? ( java ) |
301 |
-" |
302 |
- |
303 |
-CHECKREQS_MEMORY="512M" |
304 |
-if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi |
305 |
- |
306 |
-pkg_pretend() { |
307 |
- local pgslot |
308 |
- |
309 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
310 |
- check-reqs_pkg_pretend |
311 |
- |
312 |
- if [[ $(gcc-major-version) -lt 4 ]] || \ |
313 |
- ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \ |
314 |
- ; then |
315 |
- eerror "Compilation with gcc older than 4.6 is not supported" |
316 |
- die "Too old gcc found." |
317 |
- fi |
318 |
- fi |
319 |
- |
320 |
- # Ensure pg version but we have to be sure the pg is installed (first |
321 |
- # install on clean system) |
322 |
- if use postgres && has_version dev-db/postgresql; then |
323 |
- pgslot=$(postgresql-config show) |
324 |
- if [[ ${pgslot//.} < 90 ]] ; then |
325 |
- eerror "PostgreSQL slot must be set to 9.0 or higher." |
326 |
- eerror " postgresql-config set 9.0" |
327 |
- die "PostgreSQL slot is not set to 9.0 or higher." |
328 |
- fi |
329 |
- fi |
330 |
-} |
331 |
- |
332 |
-pkg_setup() { |
333 |
- java-pkg-opt-2_pkg_setup |
334 |
- kde4-base_pkg_setup |
335 |
- python-single-r1_pkg_setup |
336 |
- |
337 |
- [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup |
338 |
-} |
339 |
- |
340 |
-src_unpack() { |
341 |
- local mod mod2 dest tmplfile tmplname mypv |
342 |
- |
343 |
- [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
344 |
- use branding && unpack "${BRANDING}" |
345 |
- |
346 |
- if [[ ${PV} != *9999* ]]; then |
347 |
- unpack "${P}.tar.xz" |
348 |
- for mod in ${MODULES}; do |
349 |
- [[ ${mod} == core ]] && continue |
350 |
- unpack "${PN}-${mod}-${PV}.tar.xz" |
351 |
- done |
352 |
- else |
353 |
- for mod in ${MODULES}; do |
354 |
- mypv=${PV/.9999} |
355 |
- [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
356 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" |
357 |
- [[ ${mod} != core ]] && EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${mod}-${PV}" |
358 |
- EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
359 |
- git-r3_src_unpack |
360 |
- if [[ ${mod} != core ]]; then |
361 |
- mod2=${mod} |
362 |
- # mapping does not match on help |
363 |
- [[ ${mod} == help ]] && mod2="helpcontent2" |
364 |
- mkdir -p "${S}/${mod2}/" || die |
365 |
- mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die |
366 |
- rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
367 |
- fi |
368 |
- done |
369 |
- unset EGIT_CHECKOUT_DIR EGIT_REPO_URI EGIT_BRANCH |
370 |
- fi |
371 |
-} |
372 |
- |
373 |
-src_prepare() { |
374 |
- # optimization flags |
375 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
376 |
- # System python 2.7 enablement: |
377 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
378 |
- export PYTHON_LIBS=$(python_get_LIBS) |
379 |
- |
380 |
- if use collada; then |
381 |
- export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser" |
382 |
- export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser" |
383 |
- fi |
384 |
- |
385 |
- # patchset |
386 |
- if [[ -n ${PATCHSET} ]]; then |
387 |
- EPATCH_FORCE="yes" \ |
388 |
- EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
389 |
- EPATCH_SUFFIX="patch" \ |
390 |
- epatch |
391 |
- fi |
392 |
- |
393 |
- base_src_prepare |
394 |
- |
395 |
- AT_M4DIR="m4" eautoreconf |
396 |
- # hack in the autogen.sh |
397 |
- touch autogen.lastrun |
398 |
- |
399 |
- # system pyuno mess |
400 |
- sed \ |
401 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
402 |
- -e "s:%libdir%:$(get_libdir):g" \ |
403 |
- -i pyuno/source/module/uno.py \ |
404 |
- -i pyuno/source/officehelper.py || die |
405 |
- # sed in the tests |
406 |
- sed -i \ |
407 |
- -e 's#all : build unitcheck#all : build#g' \ |
408 |
- solenv/gbuild/Module.mk || die |
409 |
- sed -i \ |
410 |
- -e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \ |
411 |
- -e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \ |
412 |
- Makefile.in || die |
413 |
- |
414 |
- if use branding; then |
415 |
- # hack... |
416 |
- mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
417 |
- fi |
418 |
-} |
419 |
- |
420 |
-src_configure() { |
421 |
- local java_opts |
422 |
- local internal_libs |
423 |
- local lo_ext |
424 |
- local ext_opts |
425 |
- |
426 |
- # sane: just sane.h header that is used for scan in writer, not |
427 |
- # linked or anything else, worthless to depend on |
428 |
- # vigra: just uses templates from there |
429 |
- # it is serious pain in the ass for packaging |
430 |
- # should be replaced by boost::gil if someone interested |
431 |
- internal_libs+=" |
432 |
- --without-system-sane |
433 |
- --without-system-vigra |
434 |
- " |
435 |
- |
436 |
- # libreoffice extensions handling |
437 |
- for lo_xt in ${LO_EXTS}; do |
438 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
439 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})" |
440 |
- else |
441 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
442 |
- fi |
443 |
- done |
444 |
- |
445 |
- if use java; then |
446 |
- # hsqldb: system one is too new |
447 |
- java_opts=" |
448 |
- --without-junit |
449 |
- --without-system-hsqldb |
450 |
- --with-ant-home="${ANT_HOME}" |
451 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
452 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
453 |
- " |
454 |
- |
455 |
- use libreoffice_extensions_scripting-beanshell && \ |
456 |
- java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
457 |
- |
458 |
- use libreoffice_extensions_scripting-javascript && \ |
459 |
- java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
460 |
- |
461 |
- if use libreoffice_extensions_wiki-publisher; then |
462 |
- java_opts+=" |
463 |
- --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar) |
464 |
- --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar) |
465 |
- --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) |
466 |
- --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar) |
467 |
- --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar) |
468 |
- " |
469 |
- fi |
470 |
- fi |
471 |
- |
472 |
- # system headers/libs/...: enforce using system packages |
473 |
- # --enable-cairo: ensure that cairo is always required |
474 |
- # --enable-graphite: disabling causes build breakages |
475 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
476 |
- # --enable-release-build: build the libreoffice as release |
477 |
- # --disable-fetch-external: prevent dowloading during compile phase |
478 |
- # --disable-gnome-vfs: old gnome virtual fs support |
479 |
- # --disable-kdeab: kde3 adressbook |
480 |
- # --disable-kde: kde3 support |
481 |
- # --disable-systray: quickstarter does not actually work at all so do not |
482 |
- # promote it |
483 |
- # --enable-extension-integration: enable any extension integration support |
484 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
485 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
486 |
- econf \ |
487 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
488 |
- --with-system-headers \ |
489 |
- --with-system-libs \ |
490 |
- --with-system-jars \ |
491 |
- --with-system-dicts \ |
492 |
- --enable-cairo-canvas \ |
493 |
- --enable-graphite \ |
494 |
- --enable-largefile \ |
495 |
- --enable-mergelibs \ |
496 |
- --enable-neon \ |
497 |
- --enable-python=system \ |
498 |
- --enable-randr \ |
499 |
- --enable-randr-link \ |
500 |
- --enable-release-build \ |
501 |
- --disable-hardlink-deliver \ |
502 |
- --disable-ccache \ |
503 |
- --disable-crashdump \ |
504 |
- --disable-dependency-tracking \ |
505 |
- --disable-epm \ |
506 |
- --disable-fetch-external \ |
507 |
- --disable-gnome-vfs \ |
508 |
- --disable-gstreamer-0-10 \ |
509 |
- --disable-report-builder \ |
510 |
- --disable-kdeab \ |
511 |
- --disable-kde \ |
512 |
- --disable-online-update \ |
513 |
- --disable-systray \ |
514 |
- --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
515 |
- --with-build-version="Gentoo official package" \ |
516 |
- --enable-extension-integration \ |
517 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
518 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
519 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
520 |
- --with-external-tar="${DISTDIR}" \ |
521 |
- --with-lang="" \ |
522 |
- --with-parallelism=$(makeopts_jobs) \ |
523 |
- --with-system-ucpp \ |
524 |
- --with-vendor="Gentoo Foundation" \ |
525 |
- --with-x \ |
526 |
- --without-fonts \ |
527 |
- --without-myspell-dicts \ |
528 |
- --without-help \ |
529 |
- --with-helppack-integration \ |
530 |
- --without-sun-templates \ |
531 |
- $(use_enable bluetooth sdremote-bluetooth) \ |
532 |
- $(use_enable coinmp) \ |
533 |
- $(use_enable collada) \ |
534 |
- $(use_enable cups) \ |
535 |
- $(use_enable debug) \ |
536 |
- $(use_enable dbus) \ |
537 |
- $(use_enable eds evolution2) \ |
538 |
- $(use_enable firebird firebird-sdbc) \ |
539 |
- $(use_enable gltf) \ |
540 |
- $(use_enable gnome gconf) \ |
541 |
- $(use_enable gnome gio) \ |
542 |
- $(use_enable gnome lockdown) \ |
543 |
- $(use_enable gstreamer gstreamer-1-0) \ |
544 |
- $(use_enable gtk) \ |
545 |
- $(use_enable gtk3) \ |
546 |
- $(use_enable kde kde4) \ |
547 |
- $(use_enable mysql ext-mariadb-connector) \ |
548 |
- $(use_enable odk) \ |
549 |
- $(use_enable postgres postgresql-sdbc) \ |
550 |
- $(use_enable telepathy) \ |
551 |
- $(use_enable vlc) \ |
552 |
- $(use_with coinmp system-coinmp) \ |
553 |
- $(use_with collada system-opencollada) \ |
554 |
- $(use_with gltf system-libgltf) \ |
555 |
- $(use_with java) \ |
556 |
- $(use_with mysql system-mysql-cppconn) \ |
557 |
- $(use_with odk doxygen) \ |
558 |
- ${internal_libs} \ |
559 |
- ${java_opts} \ |
560 |
- ${ext_opts} |
561 |
-} |
562 |
- |
563 |
-src_compile() { |
564 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
565 |
- # bug 501508, bug 540624, bug 545974 and probably more |
566 |
- addpredict /dev/dri |
567 |
- addpredict /dev/ati |
568 |
- addpredict /dev/nvidiactl |
569 |
- |
570 |
- # hack for offlinehelp, this needs fixing upstream at some point |
571 |
- # it is broken because we send --without-help |
572 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
573 |
- ( |
574 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" |
575 |
- source "${T}/config_host.mk" 2&> /dev/null |
576 |
- |
577 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
578 |
- mkdir -p "${path}" || die |
579 |
- |
580 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" |
581 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
582 |
- -dir=icon-themes/galaxy/res/helpimg \ |
583 |
- > "${path}/helpimg.ilst" |
584 |
- [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug." |
585 |
- ) |
586 |
- |
587 |
- local target |
588 |
- use test && target="build" || target="build-nocheck" |
589 |
- |
590 |
- # this is not a proper make script |
591 |
- make ${target} || die |
592 |
-} |
593 |
- |
594 |
-src_test() { |
595 |
- make unitcheck || die |
596 |
- make slowcheck || die |
597 |
-} |
598 |
- |
599 |
-src_install() { |
600 |
- # This is not Makefile so no buildserver |
601 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
602 |
- |
603 |
- # Fix bash completion placement |
604 |
- newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
605 |
- bashcomp_alias \ |
606 |
- libreoffice \ |
607 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
608 |
- rm -rf "${ED}"/etc/ || die |
609 |
- |
610 |
- if use branding; then |
611 |
- insinto /usr/$(get_libdir)/${PN}/program |
612 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
613 |
- dodir /etc/env.d |
614 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} |
615 |
- fi |
616 |
- |
617 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
618 |
- # It is broken because we send --without-help |
619 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
620 |
- insinto /usr/$(get_libdir)/libreoffice/help |
621 |
- doins xmlhelp/util/*.xsl |
622 |
- |
623 |
- # Remove desktop files for support to old installs that can't parse mime |
624 |
- rm -rf "${ED}"/usr/share/mimelnk/ |
625 |
- |
626 |
- # FIXME: Hack add missing file |
627 |
- insinto /usr/$(get_libdir)/${PN}/program |
628 |
- doins "${S}"/instdir/program/libsaxlo.so |
629 |
- |
630 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
631 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
632 |
-} |
633 |
- |
634 |
-pkg_preinst() { |
635 |
- # Cache updates - all handled by kde eclass for all environments |
636 |
- kde4-base_pkg_preinst |
637 |
-} |
638 |
- |
639 |
-pkg_postinst() { |
640 |
- kde4-base_pkg_postinst |
641 |
- |
642 |
- use java || \ |
643 |
- ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.' |
644 |
-} |
645 |
- |
646 |
-pkg_postrm() { |
647 |
- kde4-base_pkg_postrm |
648 |
-} |
649 |
|
650 |
diff --git a/app-office/libreoffice/libreoffice-5.0.3.1.ebuild b/app-office/libreoffice/libreoffice-5.0.3.1.ebuild |
651 |
deleted file mode 100644 |
652 |
index 912f7c6..0000000 |
653 |
--- a/app-office/libreoffice/libreoffice-5.0.3.1.ebuild |
654 |
+++ /dev/null |
655 |
@@ -1,609 +0,0 @@ |
656 |
-# Copyright 1999-2015 Gentoo Foundation |
657 |
-# Distributed under the terms of the GNU General Public License v2 |
658 |
-# $Id$ |
659 |
- |
660 |
-EAPI=5 |
661 |
- |
662 |
-KDE_REQUIRED="optional" |
663 |
-QT_MINIMAL="4.7.4" |
664 |
-KDE_SCM="git" |
665 |
-CMAKE_REQUIRED="never" |
666 |
- |
667 |
-PYTHON_COMPAT=( python2_7 python3_4 ) |
668 |
-PYTHON_REQ_USE="threads,xml" |
669 |
- |
670 |
-# experimental ; release ; old |
671 |
-# Usually the tarballs are moved a lot so this should make |
672 |
-# everyone happy. |
673 |
-DEV_URI=" |
674 |
- http://dev-builds.libreoffice.org/pre-releases/src |
675 |
- http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
676 |
- http://download.documentfoundation.org/libreoffice/old/${PV}/ |
677 |
-" |
678 |
-EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
679 |
-ADDONS_URI="http://dev-www.libreoffice.org/src/" |
680 |
- |
681 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
682 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
683 |
- |
684 |
-[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" |
685 |
-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} |
686 |
-unset SCM_ECLASS |
687 |
- |
688 |
-DESCRIPTION="LibreOffice, a full office productivity suite" |
689 |
-HOMEPAGE="http://www.libreoffice.org" |
690 |
-SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
691 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
692 |
- |
693 |
-# Split modules following git/tarballs |
694 |
-# Core MUST be first! |
695 |
-# Help is used for the image generator |
696 |
-MODULES="core help" |
697 |
-# Only release has the tarballs |
698 |
-if [[ ${PV} != *9999* ]]; then |
699 |
- for i in ${DEV_URI}; do |
700 |
- for mod in ${MODULES}; do |
701 |
- if [[ ${mod} == core ]]; then |
702 |
- SRC_URI+=" ${i}/${P}.tar.xz" |
703 |
- else |
704 |
- SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
705 |
- fi |
706 |
- done |
707 |
- unset mod |
708 |
- done |
709 |
- unset i |
710 |
-fi |
711 |
-unset DEV_URI |
712 |
- |
713 |
-# Really required addons |
714 |
-# These are bundles that can't be removed for now due to huge patchsets. |
715 |
-# If you want them gone, patches are welcome. |
716 |
-ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz" |
717 |
-ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code |
718 |
-ADDONS_SRC+=" collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )" |
719 |
-ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
720 |
-ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it? |
721 |
-ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all |
722 |
-ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino |
723 |
-ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable |
724 |
-SRC_URI+=" ${ADDONS_SRC}" |
725 |
- |
726 |
-unset ADDONS_URI |
727 |
-unset EXT_URI |
728 |
-unset ADDONS_SRC |
729 |
- |
730 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer |
731 |
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc" |
732 |
- |
733 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
734 |
-# Unpackaged separate extensions: |
735 |
-# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf? |
736 |
-# hunart: only on ooo extensions -> fubared download path somewhere on sf |
737 |
-# numbertext, typo, validator, watch-window: ^^ |
738 |
-# oooblogger: no homepage or anything |
739 |
-# Extensions that need extra work: |
740 |
-for lo_xt in ${LO_EXTS}; do |
741 |
- IUSE+=" libreoffice_extensions_${lo_xt}" |
742 |
-done |
743 |
-unset lo_xt |
744 |
- |
745 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
746 |
-SLOT="0" |
747 |
-[[ ${PV} == *9999* ]] || \ |
748 |
-KEYWORDS="" |
749 |
-# KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
750 |
- |
751 |
-COMMON_DEPEND=" |
752 |
- ${PYTHON_DEPS} |
753 |
- app-arch/zip |
754 |
- app-arch/unzip |
755 |
- >=app-text/hunspell-1.3.2-r3 |
756 |
- app-text/mythes |
757 |
- >=app-text/libabw-0.1.0 |
758 |
- >=app-text/libexttextcat-3.2 |
759 |
- >=app-text/libebook-0.1.1 |
760 |
- >=app-text/libetonyek-0.1.2 |
761 |
- app-text/liblangtag |
762 |
- >=app-text/libmspub-0.1.0 |
763 |
- >=app-text/libmwaw-0.3.5 |
764 |
- >=app-text/libodfgen-0.1.0 |
765 |
- app-text/libwpd:0.10[tools] |
766 |
- app-text/libwpg:0.3 |
767 |
- =app-text/libwps-0.4* |
768 |
- >=app-text/poppler-0.16:=[xpdf-headers(+),cxx] |
769 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
770 |
- =dev-cpp/libcmis-0.5* |
771 |
- dev-db/unixODBC |
772 |
- >=dev-libs/boost-1.55:= |
773 |
- dev-libs/expat |
774 |
- >=dev-libs/hyphen-2.7.1 |
775 |
- >=dev-libs/icu-4.8.1.1:= |
776 |
- =dev-libs/liborcus-0.7* |
777 |
- >=dev-libs/librevenge-0.0.1 |
778 |
- >=dev-libs/nspr-4.8.8 |
779 |
- >=dev-libs/nss-3.12.9 |
780 |
- >=dev-lang/perl-5.0 |
781 |
- !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) |
782 |
- libressl? ( dev-libs/libressl ) |
783 |
- >=dev-libs/redland-1.0.16 |
784 |
- media-gfx/graphite2 |
785 |
- >=media-libs/fontconfig-2.8.0 |
786 |
- media-libs/freetype:2 |
787 |
- >=media-libs/glew-1.10 |
788 |
- >=media-libs/harfbuzz-0.9.18:=[icu(+)] |
789 |
- media-libs/lcms:2 |
790 |
- >=media-libs/libpng-1.4:0= |
791 |
- >=media-libs/libcdr-0.1.0 |
792 |
- >=media-libs/libfreehand-0.1.0 |
793 |
- media-libs/libpagemaker |
794 |
- >=media-libs/libvisio-0.1.0 |
795 |
- >=net-misc/curl-7.21.4 |
796 |
- net-libs/neon |
797 |
- net-nds/openldap |
798 |
- sci-mathematics/lpsolve |
799 |
- virtual/jpeg:0 |
800 |
- >=x11-libs/cairo-1.10.0[X] |
801 |
- x11-libs/libXinerama |
802 |
- x11-libs/libXrandr |
803 |
- x11-libs/libXrender |
804 |
- virtual/glu |
805 |
- virtual/opengl |
806 |
- bluetooth? ( net-wireless/bluez ) |
807 |
- coinmp? ( sci-libs/coinor-mp ) |
808 |
- collada? ( >=media-libs/opencollada-1.2.2_p20150207 ) |
809 |
- cups? ( net-print/cups ) |
810 |
- dbus? ( >=dev-libs/dbus-glib-0.92 ) |
811 |
- eds? ( gnome-extra/evolution-data-server ) |
812 |
- firebird? ( >=dev-db/firebird-2.5 ) |
813 |
- gltf? ( media-libs/libgltf ) |
814 |
- gnome? ( gnome-base/gconf:2 ) |
815 |
- gtk? ( |
816 |
- x11-libs/gdk-pixbuf[X] |
817 |
- >=x11-libs/gtk+-2.24:2 |
818 |
- ) |
819 |
- gtk3? ( >=x11-libs/gtk+-3.8:3 ) |
820 |
- gstreamer? ( |
821 |
- media-libs/gstreamer:1.0 |
822 |
- media-libs/gst-plugins-base:1.0 |
823 |
- ) |
824 |
- jemalloc? ( dev-libs/jemalloc ) |
825 |
- libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) |
826 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
827 |
- libreoffice_extensions_wiki-publisher? ( |
828 |
- dev-java/commons-codec:0 |
829 |
- dev-java/commons-httpclient:3 |
830 |
- dev-java/commons-lang:2.1 |
831 |
- dev-java/commons-logging:0 |
832 |
- dev-java/tomcat-servlet-api:3.0 |
833 |
- ) |
834 |
- mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
835 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
836 |
- telepathy? ( |
837 |
- dev-libs/glib:2 |
838 |
- >=net-libs/telepathy-glib-0.18.0 |
839 |
- >=x11-libs/gtk+-2.24:2 |
840 |
- ) |
841 |
-" |
842 |
- |
843 |
-RDEPEND="${COMMON_DEPEND} |
844 |
- !app-office/libreoffice-bin |
845 |
- !app-office/libreoffice-bin-debug |
846 |
- !<app-office/openoffice-bin-3.4.0-r1 |
847 |
- !app-office/openoffice |
848 |
- media-fonts/libertine |
849 |
- media-fonts/liberation-fonts |
850 |
- media-fonts/urw-fonts |
851 |
- java? ( >=virtual/jre-1.6 ) |
852 |
- kde? ( $(add_kdeapps_dep kioclient) ) |
853 |
- vlc? ( media-video/vlc ) |
854 |
-" |
855 |
- |
856 |
-if [[ ${PV} != *9999* ]]; then |
857 |
- PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" |
858 |
-else |
859 |
- # Translations are not reliable on live ebuilds |
860 |
- # rather force people to use english only. |
861 |
- PDEPEND="!app-office/libreoffice-l10n" |
862 |
-fi |
863 |
- |
864 |
-# FIXME: cppunit should be moved to test conditional |
865 |
-# after everything upstream is under gbuild |
866 |
-# as dmake execute tests right away |
867 |
-DEPEND="${COMMON_DEPEND} |
868 |
- >=dev-libs/libatomic_ops-7.2d |
869 |
- >=dev-libs/libxml2-2.7.8 |
870 |
- dev-libs/libxslt |
871 |
- dev-perl/Archive-Zip |
872 |
- dev-util/cppunit |
873 |
- >=dev-util/gperf-3 |
874 |
- dev-util/intltool |
875 |
- >=dev-util/mdds-0.12.0:= |
876 |
- media-libs/glm |
877 |
- net-misc/npapi-sdk |
878 |
- >=sys-apps/findutils-4.4.2 |
879 |
- sys-devel/bison |
880 |
- sys-apps/coreutils |
881 |
- sys-devel/flex |
882 |
- sys-devel/gettext |
883 |
- >=sys-devel/make-3.82 |
884 |
- sys-devel/ucpp |
885 |
- sys-libs/zlib |
886 |
- virtual/pkgconfig |
887 |
- x11-libs/libXt |
888 |
- x11-libs/libXtst |
889 |
- x11-proto/randrproto |
890 |
- x11-proto/xextproto |
891 |
- x11-proto/xineramaproto |
892 |
- x11-proto/xproto |
893 |
- java? ( |
894 |
- >=virtual/jdk-1.6 |
895 |
- >=dev-java/ant-core-1.7 |
896 |
- ) |
897 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
898 |
- test? ( dev-util/cppunit ) |
899 |
-" |
900 |
- |
901 |
-PATCHES=( |
902 |
- # not upstreamable stuff |
903 |
- "${FILESDIR}/${PN}-4.4-system-pyuno.patch" |
904 |
-) |
905 |
- |
906 |
-REQUIRED_USE=" |
907 |
- ${PYTHON_REQUIRED_USE} |
908 |
- bluetooth? ( dbus ) |
909 |
- collada? ( gltf ) |
910 |
- gnome? ( gtk ) |
911 |
- eds? ( gnome ) |
912 |
- telepathy? ( gtk ) |
913 |
- libreoffice_extensions_nlpsolver? ( java ) |
914 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
915 |
- libreoffice_extensions_scripting-javascript? ( java ) |
916 |
- libreoffice_extensions_wiki-publisher? ( java ) |
917 |
-" |
918 |
- |
919 |
-CHECKREQS_MEMORY="512M" |
920 |
-if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi |
921 |
- |
922 |
-pkg_pretend() { |
923 |
- local pgslot |
924 |
- |
925 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
926 |
- check-reqs_pkg_pretend |
927 |
- |
928 |
- if [[ $(gcc-major-version) -lt 4 ]] || \ |
929 |
- ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \ |
930 |
- ; then |
931 |
- eerror "Compilation with gcc older than 4.6 is not supported" |
932 |
- die "Too old gcc found." |
933 |
- fi |
934 |
- fi |
935 |
- |
936 |
- # Ensure pg version but we have to be sure the pg is installed (first |
937 |
- # install on clean system) |
938 |
- if use postgres && has_version dev-db/postgresql; then |
939 |
- pgslot=$(postgresql-config show) |
940 |
- if [[ ${pgslot//.} < 90 ]] ; then |
941 |
- eerror "PostgreSQL slot must be set to 9.0 or higher." |
942 |
- eerror " postgresql-config set 9.0" |
943 |
- die "PostgreSQL slot is not set to 9.0 or higher." |
944 |
- fi |
945 |
- fi |
946 |
-} |
947 |
- |
948 |
-pkg_setup() { |
949 |
- java-pkg-opt-2_pkg_setup |
950 |
- kde4-base_pkg_setup |
951 |
- python-single-r1_pkg_setup |
952 |
- |
953 |
- [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup |
954 |
-} |
955 |
- |
956 |
-src_unpack() { |
957 |
- local mod mod2 dest tmplfile tmplname mypv |
958 |
- |
959 |
- [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
960 |
- use branding && unpack "${BRANDING}" |
961 |
- |
962 |
- if [[ ${PV} != *9999* ]]; then |
963 |
- unpack "${P}.tar.xz" |
964 |
- for mod in ${MODULES}; do |
965 |
- [[ ${mod} == core ]] && continue |
966 |
- unpack "${PN}-${mod}-${PV}.tar.xz" |
967 |
- done |
968 |
- else |
969 |
- for mod in ${MODULES}; do |
970 |
- mypv=${PV/.9999} |
971 |
- [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
972 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" |
973 |
- [[ ${mod} != core ]] && EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${mod}-${PV}" |
974 |
- EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
975 |
- git-r3_src_unpack |
976 |
- if [[ ${mod} != core ]]; then |
977 |
- mod2=${mod} |
978 |
- # mapping does not match on help |
979 |
- [[ ${mod} == help ]] && mod2="helpcontent2" |
980 |
- mkdir -p "${S}/${mod2}/" || die |
981 |
- mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die |
982 |
- rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
983 |
- fi |
984 |
- done |
985 |
- unset EGIT_CHECKOUT_DIR EGIT_REPO_URI EGIT_BRANCH |
986 |
- fi |
987 |
-} |
988 |
- |
989 |
-src_prepare() { |
990 |
- # optimization flags |
991 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
992 |
- # System python 2.7 enablement: |
993 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
994 |
- export PYTHON_LIBS=$(python_get_LIBS) |
995 |
- |
996 |
- if use collada; then |
997 |
- export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser" |
998 |
- export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser" |
999 |
- fi |
1000 |
- |
1001 |
- # patchset |
1002 |
- if [[ -n ${PATCHSET} ]]; then |
1003 |
- EPATCH_FORCE="yes" \ |
1004 |
- EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
1005 |
- EPATCH_SUFFIX="patch" \ |
1006 |
- epatch |
1007 |
- fi |
1008 |
- |
1009 |
- base_src_prepare |
1010 |
- |
1011 |
- AT_M4DIR="m4" eautoreconf |
1012 |
- # hack in the autogen.sh |
1013 |
- touch autogen.lastrun |
1014 |
- |
1015 |
- # system pyuno mess |
1016 |
- sed \ |
1017 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
1018 |
- -e "s:%libdir%:$(get_libdir):g" \ |
1019 |
- -i pyuno/source/module/uno.py \ |
1020 |
- -i pyuno/source/officehelper.py || die |
1021 |
- # sed in the tests |
1022 |
- sed -i \ |
1023 |
- -e 's#all : build unitcheck#all : build#g' \ |
1024 |
- solenv/gbuild/Module.mk || die |
1025 |
- sed -i \ |
1026 |
- -e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \ |
1027 |
- -e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \ |
1028 |
- Makefile.in || die |
1029 |
- |
1030 |
- if use branding; then |
1031 |
- # hack... |
1032 |
- mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
1033 |
- fi |
1034 |
-} |
1035 |
- |
1036 |
-src_configure() { |
1037 |
- local java_opts |
1038 |
- local internal_libs |
1039 |
- local lo_ext |
1040 |
- local ext_opts |
1041 |
- |
1042 |
- # sane: just sane.h header that is used for scan in writer, not |
1043 |
- # linked or anything else, worthless to depend on |
1044 |
- # vigra: just uses templates from there |
1045 |
- # it is serious pain in the ass for packaging |
1046 |
- # should be replaced by boost::gil if someone interested |
1047 |
- internal_libs+=" |
1048 |
- --without-system-sane |
1049 |
- --without-system-vigra |
1050 |
- " |
1051 |
- |
1052 |
- # libreoffice extensions handling |
1053 |
- for lo_xt in ${LO_EXTS}; do |
1054 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
1055 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})" |
1056 |
- else |
1057 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
1058 |
- fi |
1059 |
- done |
1060 |
- |
1061 |
- if use java; then |
1062 |
- # hsqldb: system one is too new |
1063 |
- java_opts=" |
1064 |
- --without-junit |
1065 |
- --without-system-hsqldb |
1066 |
- --with-ant-home="${ANT_HOME}" |
1067 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
1068 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
1069 |
- " |
1070 |
- |
1071 |
- use libreoffice_extensions_scripting-beanshell && \ |
1072 |
- java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
1073 |
- |
1074 |
- use libreoffice_extensions_scripting-javascript && \ |
1075 |
- java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
1076 |
- |
1077 |
- if use libreoffice_extensions_wiki-publisher; then |
1078 |
- java_opts+=" |
1079 |
- --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar) |
1080 |
- --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar) |
1081 |
- --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) |
1082 |
- --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar) |
1083 |
- --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar) |
1084 |
- " |
1085 |
- fi |
1086 |
- fi |
1087 |
- |
1088 |
- # system headers/libs/...: enforce using system packages |
1089 |
- # --enable-cairo: ensure that cairo is always required |
1090 |
- # --enable-graphite: disabling causes build breakages |
1091 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
1092 |
- # --enable-release-build: build the libreoffice as release |
1093 |
- # --disable-fetch-external: prevent dowloading during compile phase |
1094 |
- # --disable-gnome-vfs: old gnome virtual fs support |
1095 |
- # --disable-kdeab: kde3 adressbook |
1096 |
- # --disable-kde: kde3 support |
1097 |
- # --disable-systray: quickstarter does not actually work at all so do not |
1098 |
- # promote it |
1099 |
- # --enable-extension-integration: enable any extension integration support |
1100 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
1101 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
1102 |
- econf \ |
1103 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
1104 |
- --with-system-headers \ |
1105 |
- --with-system-libs \ |
1106 |
- --with-system-jars \ |
1107 |
- --with-system-dicts \ |
1108 |
- --enable-cairo-canvas \ |
1109 |
- --enable-graphite \ |
1110 |
- --enable-largefile \ |
1111 |
- --enable-mergelibs \ |
1112 |
- --enable-neon \ |
1113 |
- --enable-python=system \ |
1114 |
- --enable-randr \ |
1115 |
- --enable-randr-link \ |
1116 |
- --enable-release-build \ |
1117 |
- --disable-hardlink-deliver \ |
1118 |
- --disable-ccache \ |
1119 |
- --disable-crashdump \ |
1120 |
- --disable-dependency-tracking \ |
1121 |
- --disable-epm \ |
1122 |
- --disable-fetch-external \ |
1123 |
- --disable-gnome-vfs \ |
1124 |
- --disable-gstreamer-0-10 \ |
1125 |
- --disable-report-builder \ |
1126 |
- --disable-kdeab \ |
1127 |
- --disable-kde \ |
1128 |
- --disable-online-update \ |
1129 |
- --disable-systray \ |
1130 |
- --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
1131 |
- --with-build-version="Gentoo official package" \ |
1132 |
- --enable-extension-integration \ |
1133 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
1134 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
1135 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
1136 |
- --with-external-tar="${DISTDIR}" \ |
1137 |
- --with-lang="" \ |
1138 |
- --with-parallelism=$(makeopts_jobs) \ |
1139 |
- --with-system-ucpp \ |
1140 |
- --with-vendor="Gentoo Foundation" \ |
1141 |
- --with-x \ |
1142 |
- --without-fonts \ |
1143 |
- --without-myspell-dicts \ |
1144 |
- --without-help \ |
1145 |
- --with-helppack-integration \ |
1146 |
- --without-sun-templates \ |
1147 |
- $(use_enable bluetooth sdremote-bluetooth) \ |
1148 |
- $(use_enable coinmp) \ |
1149 |
- $(use_enable collada) \ |
1150 |
- $(use_enable cups) \ |
1151 |
- $(use_enable debug) \ |
1152 |
- $(use_enable dbus) \ |
1153 |
- $(use_enable eds evolution2) \ |
1154 |
- $(use_enable firebird firebird-sdbc) \ |
1155 |
- $(use_enable gltf) \ |
1156 |
- $(use_enable gnome gconf) \ |
1157 |
- $(use_enable gnome gio) \ |
1158 |
- $(use_enable gnome lockdown) \ |
1159 |
- $(use_enable gstreamer gstreamer-1-0) \ |
1160 |
- $(use_enable gtk) \ |
1161 |
- $(use_enable gtk3) \ |
1162 |
- $(use_enable kde kde4) \ |
1163 |
- $(use_enable mysql ext-mariadb-connector) \ |
1164 |
- $(use_enable odk) \ |
1165 |
- $(use_enable postgres postgresql-sdbc) \ |
1166 |
- $(use_enable telepathy) \ |
1167 |
- $(use_enable vlc) \ |
1168 |
- $(use_with coinmp system-coinmp) \ |
1169 |
- $(use_with collada system-opencollada) \ |
1170 |
- $(use_with gltf system-libgltf) \ |
1171 |
- $(use_with java) \ |
1172 |
- $(use_with mysql system-mysql-cppconn) \ |
1173 |
- $(use_with odk doxygen) \ |
1174 |
- ${internal_libs} \ |
1175 |
- ${java_opts} \ |
1176 |
- ${ext_opts} |
1177 |
-} |
1178 |
- |
1179 |
-src_compile() { |
1180 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
1181 |
- # bug 501508, bug 540624, bug 545974 and probably more |
1182 |
- addpredict /dev/dri |
1183 |
- addpredict /dev/ati |
1184 |
- addpredict /dev/nvidiactl |
1185 |
- |
1186 |
- # hack for offlinehelp, this needs fixing upstream at some point |
1187 |
- # it is broken because we send --without-help |
1188 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1189 |
- ( |
1190 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" |
1191 |
- source "${T}/config_host.mk" 2&> /dev/null |
1192 |
- |
1193 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
1194 |
- mkdir -p "${path}" || die |
1195 |
- |
1196 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" |
1197 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
1198 |
- -dir=icon-themes/galaxy/res/helpimg \ |
1199 |
- > "${path}/helpimg.ilst" |
1200 |
- [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug." |
1201 |
- ) |
1202 |
- |
1203 |
- local target |
1204 |
- use test && target="build" || target="build-nocheck" |
1205 |
- |
1206 |
- # this is not a proper make script |
1207 |
- make ${target} || die |
1208 |
-} |
1209 |
- |
1210 |
-src_test() { |
1211 |
- make unitcheck || die |
1212 |
- make slowcheck || die |
1213 |
-} |
1214 |
- |
1215 |
-src_install() { |
1216 |
- # This is not Makefile so no buildserver |
1217 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
1218 |
- |
1219 |
- # Fix bash completion placement |
1220 |
- newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
1221 |
- bashcomp_alias \ |
1222 |
- libreoffice \ |
1223 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
1224 |
- rm -rf "${ED}"/etc/ || die |
1225 |
- |
1226 |
- if use branding; then |
1227 |
- insinto /usr/$(get_libdir)/${PN}/program |
1228 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
1229 |
- dodir /etc/env.d |
1230 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} |
1231 |
- fi |
1232 |
- |
1233 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
1234 |
- # It is broken because we send --without-help |
1235 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1236 |
- insinto /usr/$(get_libdir)/libreoffice/help |
1237 |
- doins xmlhelp/util/*.xsl |
1238 |
- |
1239 |
- # Remove desktop files for support to old installs that can't parse mime |
1240 |
- rm -rf "${ED}"/usr/share/mimelnk/ |
1241 |
- |
1242 |
- # FIXME: Hack add missing file |
1243 |
- insinto /usr/$(get_libdir)/${PN}/program |
1244 |
- doins "${S}"/instdir/program/libsaxlo.so |
1245 |
- |
1246 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
1247 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
1248 |
-} |
1249 |
- |
1250 |
-pkg_preinst() { |
1251 |
- # Cache updates - all handled by kde eclass for all environments |
1252 |
- kde4-base_pkg_preinst |
1253 |
-} |
1254 |
- |
1255 |
-pkg_postinst() { |
1256 |
- kde4-base_pkg_postinst |
1257 |
- |
1258 |
- use java || \ |
1259 |
- ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.' |
1260 |
-} |
1261 |
- |
1262 |
-pkg_postrm() { |
1263 |
- kde4-base_pkg_postrm |
1264 |
-} |