Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: app-office/libreoffice/, app-office/libreoffice/files/
Date: Tue, 15 Jan 2019 10:30:21
Message-Id: 1547548199.f59563efa6da68cb2767e5b6d44c65934d4836db.blueness@gentoo
1 commit: f59563efa6da68cb2767e5b6d44c65934d4836db
2 Author: callmetango <callmetango <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Tue Jan 8 06:49:45 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 15 10:29:59 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=f59563ef
7
8 app-office/libreoffice: version bump to 6.1.4.2
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11
12 app-office/libreoffice/Manifest | 13 +-
13 .../files/libreoffice-6.1-nomancompress.patch | 29 ++
14 ...eoffice-6.1.4.2-disable-liborcus-unittest.patch | 13 +
15 .../files/libreoffice-6.1.4.2-linux-musl.patch | 60 +++
16 .../libreoffice-6.1.4.2-musl-fix-execinfo.patch | 39 ++
17 .../libreoffice-6.1.4.2-musl-fix-includes.patch | 13 +
18 .../files/libreoffice-6.1.4.2-musl-stacksize.patch | 39 ++
19 app-office/libreoffice/libreoffice-6.1.4.2.ebuild | 578 +++++++++++++++++++++
20 8 files changed, 773 insertions(+), 11 deletions(-)
21
22 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
23 index 1bba52d..866b812 100644
24 --- a/app-office/libreoffice/Manifest
25 +++ b/app-office/libreoffice/Manifest
26 @@ -1,12 +1,3 @@
27 -AUX libreoffice-5.2.5.1-glibc-2.24.patch 361 BLAKE2B d95ded4f051c77aed22ce99f6273b73ec0893190622f55a3d6d3c3e3e53c59a2f3ce3f645b011c1afa02b727ee803898c65f8feff723955a2fe1a69de6d24480 SHA512 b5ff4c6d3771bcdde21613ad15459120ac1d759b1b3b422b5cba3ee23f7ddf88fde274956f2c91f0a6a37cb36a8d90d8f90bd865e6c2d3ff7c2100e2b469dbd8
28 -AUX libreoffice-5.3.4.2-kioclient5.patch 605 BLAKE2B 30961066c080c4d06ca978b7c0ad4b57a3739d6d34a2941f2ea57d3a5c4ab65e3f3c2376243aa88c9c05b1038cf9bfb7605a370d11513bb4553de2d268010519 SHA512 2aa6d1fc96749b79b3291f6e27630c6cf59d2c743f0dd8603867ba8aec2c17f87b70e1dd031365013f7e9ea53c160e9cb3f48af592a587dc05f3ae4cc1b35df6
29 -AUX libreoffice-5.4-system-pyuno.patch 1399 BLAKE2B d7516b0ac19509dae8eaaac94acad65e35c71b68ea0f2962c41d9422a89993dc90e76b1f7cd3d19f8f3860b443f063ee1c17024c7f56fd3b8470d2b690eb9c32 SHA512 41b57b857a294b8ac234aaf160dbd380008f716ffdf481b7c733f1dab8702876aad827ab9f1b8f2f26778f0b3a6dfdc9e3ae190188a484d9aeb4568df2e9b418
30 -AUX libreoffice-6.0.3.2-disable-flaky-tests-1.patch 8928 BLAKE2B e5399e0e520dfe4ac5d0a02c3bf3372ccdc7725f073aabb74c36600a7cd09eb45a9e5d5486bf700ae374723206e3a421069b298137d14a9b05e17e70f2d9d3b4 SHA512 ca100dc389ed93a5eeed35f001d9e0f6f886782bfaa3dead3105b9bce91ca9e721354b55cd67fdb40c7d2d64966c530ebc6ba6a4e3c62b0e006759c7b64f1b29
31 -AUX libreoffice-6.0.3.2-testTdf108947.patch 638 BLAKE2B 38da9bf34a921d22002d45e650c738687706c77a67ac2748ee14efb48f47a328b1339712687b525a4f66a1ad0b36fc69c0613ef441067a206ea4df81754f4727 SHA512 a712fb653d86a74a96d568805ca48d183a7ec71f32ef34cfb98a4999cb7fead3f5cd11f5d8f8944041583d5221b0dbaeb3cdfc625a1958118e867569d0c56479
32 -AUX libreoffice-6.0.6.2-disable-liborcus-unittest.patch 806 BLAKE2B 80fe7c24fad360092b9642aa2ab6bbe7eadfa561312908a7d2b5541551c6f03f17573b51fdd2d82ea435555dc0762df9d3f07d3d91a8255786ffb82a24d48c34 SHA512 056ec393ef36aa790919bdb976b100593481a3dffec0ec4095023df6706e0a2ccc3aec9383d8382b2fecbc77e13833599ead82fb712d7b7147bdf01175b4c5a9
33 -AUX libreoffice-6.0.6.2-linux-musl.patch 1812 BLAKE2B 7d18cdbd40d5b2a56f55500b57d6104cdd0bb6211aec5d4096752736cf5e71be1b8770bc6978c466ba16f139ccc3adc769015880c16bacbcbf94a54ee65c5193 SHA512 10a1ee056ebce41b2f6d3863b220f8529f70b7fd159ff2d36967ad96d9653166737db4ba865c10769c37afad553f59fb9629437c0d8a1afbbff963fc36dbbf1a
34 -AUX libreoffice-6.0.6.2-musl-fix-execinfo.patch 1014 BLAKE2B d252b43c98ebf9708430d0531d0ed9f5b99f249a98fbab48f13dc750a5e5091442ae8d0c56ba81eb4a2c634be81bec6d82bbc94bda8b7b23a2ab3d9509524e3d SHA512 4aa595588226ac2060ae78f4f857db1b148735429a47389f75313df61cabf0819ad2add15c09cae5c5ebbce64852589ca89932c72281ba662ab53dddec4e1336
35 -AUX libreoffice-6.0.6.2-musl-fix-includes.patch 1123 BLAKE2B fc1c1a871ba0f8d903d0f06a9bfa71890ee5def1f55345b47d12cabb762510149a9a49e761b2ced2452b44a505ad3685f8d5ecdf23fac90871c13058c418cdf9 SHA512 ae36500897db9d758e95da1791ef2577d59b0e0865baba316b4a1f1f48ce9fd5e52fc3f14fa45aeeab73c5b93f57e89f9a42c996bdb3c85eb3beb2634543d85e
36 DIST 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip 3519470 BLAKE2B ccfdf6b7f88f22d3ec7898c529c374f13059979450aabdccc9781ca91dd27d0119dfec3d33dda073c2973fa4a8aacae13924c9a67e38a1422c48bfee41b6f3e8 SHA512 a231eba4a1baca11766ef292ab45e302081115477fe23018652882923308856835cf8c9ecba61a5cf22543474ccef3136965d794a90c9e4e9e6dcc21f9af6e1a
37 DIST 185d60944ea767075d27247c3162b3bc-unowinreg.dll 12288 BLAKE2B c067f60d0ee325feae4f168ad0f84602708fe724a1d9a9a054ed4991992c1d4637b31083cf569326b8aac1ec598e71ec65fb31ee16233b9c736e97ef062b47d7 SHA512 854b8ae29b57b40ba6bb6ff66e723a0e8dad053fcc2849f0ad763cd8a31352f4aeba9636fd4e3f0f2a0cd985a6f49b4261b9ace68d6be821ed42cfa7a73eb13c
38 DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23092bc57ccd989f26ea04a323dcb17a0ea8baaa6a21b5d5e2b6e29fcae9d18ecd043073030e104ad56c86a115760590f57eda86c22c9fe478b0 SHA512 4a48f1e32907fb2dee601cda3cd7a0d7198b2d51f2a572b647f1e93f901fd511eef3567676e52dfb1723a2cdfbc01f2015ca0bb22903b0bc1476dd618cc9aa8a
39 @@ -14,7 +5,7 @@ DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c18
40 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a
41 DIST libreoffice-6.0.5.2-patchset-01.tar.xz 39820 BLAKE2B d8b436378b05a8a58156817b5d1e0323fd6fcfde9aa9fc4fc6a8056a06a16c84c5860ffe1ae715faddb707c5aa417b43e6c7f5c05821f86208edbb3778d830a1 SHA512 ec99a6358c0a20075abc0aa136ad6ccded4562fa0f25897efe2a8783fb33b97b92a2dd8041206b3344a79dfd10ebe98b79c8bf0b4e8539e45942978f0028dc59
42 DIST libreoffice-6.0.6.2.tar.xz 205022916 BLAKE2B 715d24c7bbfe4d570011f5090cf647421f68e73fb76047ec0fb973ec0bfb30be3ec1d521bdd92369e23abaa444e7afd3e070ff613486e8f85b9ca76d9496fd0e SHA512 8cf7bd4d8f81ee09f8a21c4ccb12f788c67cf1cba71e08b9b720f9e8b4ec2dfcc25452ef05b6b60529463241c2b23a70eb6a79a8f15b95e890a2ea9cbb458517
43 +DIST libreoffice-6.1.4.2.tar.xz 207710664 BLAKE2B 52bab412094c1ff7e184ea65c588360c18b061c3e14b7be07171f6b5831261766e2ac7d7373f5f789d125671da41e8b67d34360d4b7014dcb98df01828aeb094 SHA512 ba81b7744b908f9fe67a83e72c17c08b3b2e99599a5fd4f9cc1f2d81b3fd0ddb8065ae466205f85185ab9420350cea0b2d60108df3e583b74bd1fcd9e4eb0c3c
44 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
45 DIST libreoffice-help-6.0.6.2.tar.xz 2972748 BLAKE2B 38534d5fd08751af587fd5b5be03b39b086e2bc26878c50e98bafd7a2b48f517ac29b8d434748449b0a3e8a451c31f40255094d64965800aadfd94c111295be5 SHA512 89caab57774f85f3e58523c0debb57247a0f10959634bf296aaacc4928bcce6ea8ed9f167b267e2e0eeb52b69714eeb094fedfa3e810cf409dfbc7c5e49b7c13
46 -EBUILD libreoffice-6.0.6.2.ebuild 17001 BLAKE2B bf32a9fb7399f9bdef68abf3985fb07ff726dcecd8631f43ae936d9b815ee8c31bf11e82b2c39dc3b473726b97d90931560a9a79a556a61edc3f37d4c4a0733a SHA512 c058c8823afd9318e19b230e7d26b30b40d7d6780672767d5a6c3fb0e90257cb7cfb78f86f36061a975afe2cb86637ed0e9cdfa7944f4a85cacd1172efad0fc9
47 -MISC metadata.xml 1090 BLAKE2B b30fc707317ea0601859f327540712eae38a9fc7365675501fca648e17e2ee3b35c2391e76dc7878b53e5216ca4eb2618595fbac2e07d8680f8daeaa67aaeeeb SHA512 4ffa1f2d605bc5666e25ce126d3264f9ed272ae1b12b9dd17ae366462d58de4a64767ee63928b233c21a15a77b549eb5c574064e73164cb20b0adb6ce12a9ec2
48 +DIST libreoffice-help-6.1.4.2.tar.xz 15757700 BLAKE2B 53c398efb3b839740a9146ea1b0f70f019936c914f7aedf38b7da69faf532ab139a8847d6eb251b2850511e0e7bd169c74fafedd0926dc987659aa27878cf740 SHA512 e24f2f6795856da62f77ebfdcfedc8190b8ecef74e395fc263f0cab4a27c0fe3d95f37665747a590fc7a6a93c6c3473a2a4501c50d415cc602f85838955fe9ab
49
50 diff --git a/app-office/libreoffice/files/libreoffice-6.1-nomancompress.patch b/app-office/libreoffice/files/libreoffice-6.1-nomancompress.patch
51 new file mode 100644
52 index 0000000..ea6eb8b
53 --- /dev/null
54 +++ b/app-office/libreoffice/files/libreoffice-6.1-nomancompress.patch
55 @@ -0,0 +1,29 @@
56 +--- a/bin/distro-install-desktop-integration 2018-10-29 20:55:29.000000000 +0100
57 ++++ b/bin/distro-install-desktop-integration 2018-11-22 02:03:36.464866894 +0100
58 +@@ -39,22 +39,20 @@
59 +
60 + create_man_link()
61 + {
62 +- echo "Install $MANDIR/man1/$1.1.gz"
63 ++ echo "Install $MANDIR/man1/$1.1"
64 +
65 + mkdir -p $DESTDIR$MANDIR/man1
66 + echo ".so man1/$2.1" >| $DESTDIR$MANDIR/man1/$1.1
67 +- gzip -f $DESTDIR$MANDIR/man1/$1.1
68 +- test -f "$DESTDIR/$3" && echo "$MANDIR/man1/$1.1.gz" >>"$DESTDIR/$3"
69 ++ test -f "$DESTDIR/$3" && echo "$MANDIR/man1/$1.1" >>"$DESTDIR/$3"
70 + }
71 +
72 + install_man()
73 + {
74 +- echo "Install $MANDIR/man1/$1.1.gz"
75 ++ echo "Install $MANDIR/man1/$1.1"
76 +
77 + mkdir -p $DESTDIR$MANDIR/man1
78 + cp "${SRCDIR?}"/sysui/desktop/man/$1.1 $DESTDIR$MANDIR/man1 || exit 1;
79 +- gzip -f $DESTDIR$MANDIR/man1/$1.1
80 +- test -f "$DESTDIR/$2" && echo "$MANDIR/man1/$1.1.gz" >>"$DESTDIR/$2"
81 ++ test -f "$DESTDIR/$2" && echo "$MANDIR/man1/$1.1" >>"$DESTDIR/$2"
82 + }
83 +
84 +
85
86 diff --git a/app-office/libreoffice/files/libreoffice-6.1.4.2-disable-liborcus-unittest.patch b/app-office/libreoffice/files/libreoffice-6.1.4.2-disable-liborcus-unittest.patch
87 new file mode 100644
88 index 0000000..afdca6b
89 --- /dev/null
90 +++ b/app-office/libreoffice/files/libreoffice-6.1.4.2-disable-liborcus-unittest.patch
91 @@ -0,0 +1,13 @@
92 +--- a/sc/qa/unit/subsequent_filters-test.cxx 2018-02-22 18:45:41.000000000 +0100
93 ++++ b/sc/qa/unit/subsequent_filters-test.cxx 2018-03-02 11:24:08.616015560 +0100
94 +@@ -2395,7 +2395,9 @@
95 + CPPUNIT_ASSERT_MESSAGE("Style Name1 : Doesn't have Attribute background, but it should have.",
96 + pStyleSheet->GetItemSet().HasItem(ATTR_BACKGROUND, &pItem));
97 + const SvxBrushItem* pBackground = static_cast<const SvxBrushItem*>(pItem);
98 +- CPPUNIT_ASSERT_EQUAL(Color(254, 255, 204), pBackground->GetColor());
99 ++ /* This test fails with liborcus >= 0.13.3
100 ++ * CPPUNIT_ASSERT_EQUAL(Color(254, 255, 204), pBackground->GetColor());
101 ++ */
102 +
103 + CPPUNIT_ASSERT_MESSAGE("Style Name1 : Doesn't have Attribute border, but it should have.",
104 + pStyleSheet->GetItemSet().HasItem(ATTR_BORDER, &pItem));
105
106 diff --git a/app-office/libreoffice/files/libreoffice-6.1.4.2-linux-musl.patch b/app-office/libreoffice/files/libreoffice-6.1.4.2-linux-musl.patch
107 new file mode 100644
108 index 0000000..5fbf6b3
109 --- /dev/null
110 +++ b/app-office/libreoffice/files/libreoffice-6.1.4.2-linux-musl.patch
111 @@ -0,0 +1,60 @@
112 +--- libreoffice-5.3.0.3/configure.ac.orig 2017-01-26 22:22:46.000000000 +0000
113 ++++ libreoffice-5.3.0.3/configure.ac 2017-02-08 13:14:16.777547599 +0000
114 +@@ -652,7 +652,7 @@
115 + fi
116 + ;;
117 +
118 +-linux-gnu*|k*bsd*-gnu*)
119 ++linux-gnu*|linux-musl*|k*bsd*-gnu*)
120 + test_gtk=yes
121 + build_gstreamer_1_0=yes
122 + build_gstreamer_0_10=yes
123 +@@ -4170,7 +4170,7 @@
124 + esac
125 + ;;
126 +
127 +-linux-gnu*)
128 ++linux-gnu*|linux-musl*)
129 + COM=GCC
130 + USING_X11=TRUE
131 + OS=LINUX
132 +@@ -7197,7 +7197,7 @@
133 + test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
134 + ;;
135 +
136 +- linux-gnu*)
137 ++ linux-gnu*|linux-musl*)
138 + JAVAINC="-I$JAVA_HOME/include"
139 + JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux"
140 + test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
141 +@@ -9748,21 +9748,6 @@
142 + fi
143 + AC_SUBST(SYSTEM_LIBEXTTEXTCAT_DATA)
144 +
145 +-dnl ***************************************
146 +-dnl testing libc version for Linux...
147 +-dnl ***************************************
148 +-if test "$_os" = "Linux"; then
149 +- AC_MSG_CHECKING([whether libc is >= 2.1.1])
150 +- exec 6>/dev/null # no output
151 +- AC_CHECK_LIB(c, gnu_get_libc_version, HAVE_LIBC=yes; export HAVE_LIBC)
152 +- exec 6>&1 # output on again
153 +- if test "$HAVE_LIBC"; then
154 +- AC_MSG_RESULT([yes])
155 +- else
156 +- AC_MSG_ERROR([no, upgrade libc])
157 +- fi
158 +-fi
159 +-
160 + dnl =========================================
161 + dnl Check for the Windows SDK.
162 + dnl =========================================
163 +@@ -12775,7 +12760,7 @@
164 +
165 + case "$host_os" in
166 +
167 +- aix*|dragonfly*|freebsd*|linux-gnu*|*netbsd*|openbsd*)
168 ++ aix*|dragonfly*|freebsd*|linux-gnu*|linux-musl*|*netbsd*|openbsd*)
169 + if test "$ENABLE_JAVA" != ""; then
170 + pathmunge "$JAVA_HOME/bin" "after"
171 + fi
172
173 diff --git a/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-execinfo.patch b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-execinfo.patch
174 new file mode 100644
175 index 0000000..4c3b359
176 --- /dev/null
177 +++ b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-execinfo.patch
178 @@ -0,0 +1,39 @@
179 +diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h
180 +index 5fafc1c..408c12c 100644
181 +--- a/sal/osl/unx/backtrace.h
182 ++++ b/sal/osl/unx/backtrace.h
183 +@@ -20,7 +20,7 @@
184 + #ifndef INCLUDED_SAL_OSL_UNX_BACKTRACE_H
185 + #define INCLUDED_SAL_OSL_UNX_BACKTRACE_H
186 +
187 +-#if defined (LINUX)
188 ++#if defined (LINUX) && defined (__GLIBC__)
189 +
190 + #include <execinfo.h>
191 +
192 +diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx
193 +index f4c9a9c..da6d9cf 100644
194 +--- a/sal/osl/unx/signal.cxx
195 ++++ b/sal/osl/unx/signal.cxx
196 +@@ -35,7 +35,7 @@
197 +
198 + #endif /* MACOSX */
199 +
200 +-#ifdef LINUX
201 ++#if defined(LINUX) && defined(__GLIBC__)
202 + #include <execinfo.h>
203 + #include <link.h>
204 + #define INCLUDE_BACKTRACE
205 +diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c
206 +index 1d9a58b..fd648e4 100644
207 +--- a/sal/osl/unx/backtrace.c
208 ++++ b/sal/osl/unx/backtrace.c
209 +@@ -282,7 +282,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd )
210 + }
211 + }
212 +
213 +-#elif !defined LINUX
214 ++#elif !defined(__GLIBC__)
215 +
216 + int backtrace( void **buffer, int max_frames )
217 + {
218
219 diff --git a/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-includes.patch b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-includes.patch
220 new file mode 100644
221 index 0000000..d2048e2
222 --- /dev/null
223 +++ b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-fix-includes.patch
224 @@ -0,0 +1,13 @@
225 +diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
226 +index f177d86..99bb408 100644
227 +--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
228 ++++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
229 +@@ -21,7 +21,7 @@
230 + #include <dbus/dbus.h>
231 + #include <errno.h>
232 + #include <fcntl.h>
233 +- #include <sys/unistd.h>
234 ++ #include <unistd.h>
235 + #include <sys/socket.h>
236 + #include <bluetooth/bluetooth.h>
237 + #include <bluetooth/rfcomm.h>
238
239 diff --git a/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-stacksize.patch b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-stacksize.patch
240 new file mode 100644
241 index 0000000..9968ccb
242 --- /dev/null
243 +++ b/app-office/libreoffice/files/libreoffice-6.1.4.2-musl-stacksize.patch
244 @@ -0,0 +1,39 @@
245 +diff -Naur libreoffice-6.1.0.3/sal/osl/unx/thread.cxx libreoffice-6.1.0.3-patched/sal/osl/unx/thread.cxx
246 +--- libreoffice-6.1.0.3/sal/osl/unx/thread.cxx 2018-08-02 22:54:54.000000000 +0300
247 ++++ libreoffice-6.1.0.3-patched/sal/osl/unx/thread.cxx 2018-09-05 18:21:38.552838233 +0300
248 +@@ -249,7 +249,7 @@
249 + short nFlags)
250 + {
251 + Thread_Impl* pImpl;
252 +-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
253 ++#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
254 + pthread_attr_t attr;
255 + size_t stacksize;
256 + #endif
257 +@@ -265,7 +265,7 @@
258 +
259 + pthread_mutex_lock (&(pImpl->m_Lock));
260 +
261 +-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
262 ++#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
263 + if (pthread_attr_init(&attr) != 0)
264 + return nullptr;
265 +
266 +@@ -282,7 +282,7 @@
267 +
268 + if ((nRet = pthread_create (
269 + &(pImpl->m_hThread),
270 +-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
271 ++#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
272 + &attr,
273 + #else
274 + PTHREAD_ATTR_DEFAULT,
275 +@@ -301,7 +301,7 @@
276 + return nullptr;
277 + }
278 +
279 +-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
280 ++#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
281 + pthread_attr_destroy(&attr);
282 + #endif
283 +
284
285 diff --git a/app-office/libreoffice/libreoffice-6.1.4.2.ebuild b/app-office/libreoffice/libreoffice-6.1.4.2.ebuild
286 new file mode 100644
287 index 0000000..ba47781
288 --- /dev/null
289 +++ b/app-office/libreoffice/libreoffice-6.1.4.2.ebuild
290 @@ -0,0 +1,578 @@
291 +# Copyright 1999-2019 Gentoo Authors
292 +# Distributed under the terms of the GNU General Public License v2
293 +
294 +EAPI=6
295 +
296 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
297 +PYTHON_REQ_USE="threads(+),xml"
298 +
299 +MY_PV="${PV/_alpha/.alpha}"
300 +MY_PV="${MY_PV/_beta/.beta}"
301 +# experimental ; release ; old
302 +# Usually the tarballs are moved a lot so this should make everyone happy.
303 +DEV_URI="
304 + https://dev-builds.libreoffice.org/pre-releases/src
305 + https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
306 + https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
307 +"
308 +ADDONS_URI="https://dev-www.libreoffice.org/src/"
309 +
310 +BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
311 +# PATCHSET="${P}-patchset-01.tar.xz"
312 +
313 +[[ ${MY_PV} == *9999* ]] && inherit git-r3
314 +inherit autotools bash-completion-r1 check-reqs eapi7-ver flag-o-matic gnome2-utils java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg-utils
315 +
316 +DESCRIPTION="A full office productivity suite"
317 +HOMEPAGE="https://www.libreoffice.org"
318 +SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
319 +[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
320 +
321 +# Split modules following git/tarballs; Core MUST be first!
322 +# Help is used for the image generator
323 +# Only release has the tarballs
324 +if [[ ${MY_PV} != *9999* ]]; then
325 + for i in ${DEV_URI}; do
326 + SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
327 + SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
328 + done
329 + unset i
330 +fi
331 +unset DEV_URI
332 +
333 +# Really required addons
334 +# These are bundles that can't be removed for now due to huge patchsets.
335 +# If you want them gone, patches are welcome.
336 +ADDONS_SRC=(
337 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
338 + # no release for 8 years, should we package it?
339 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
340 + # Does not build with 1.6 rhino at all
341 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
342 + # requirement of rhino
343 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
344 + # not packageable
345 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
346 +)
347 +SRC_URI+=" ${ADDONS_SRC[*]}"
348 +
349 +unset ADDONS_URI
350 +unset ADDONS_SRC
351 +
352 +# Extensions that need extra work:
353 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
354 +
355 +IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
356 +googledrive gstreamer +gtk gtk2 kde mysql odk pdfimport postgres test vlc
357 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
358 +
359 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
360 + bluetooth? ( dbus )
361 + kde? ( gtk )
362 + libreoffice_extensions_nlpsolver? ( java )
363 + libreoffice_extensions_scripting-beanshell? ( java )
364 + libreoffice_extensions_scripting-javascript? ( java )
365 + libreoffice_extensions_wiki-publisher? ( java )
366 +"
367 +
368 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
369 +SLOT="0"
370 +[[ ${MY_PV} == *9999* ]] || \
371 +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
372 +
373 +COMMON_DEPEND="${PYTHON_DEPS}
374 + app-arch/unzip
375 + app-arch/zip
376 + app-crypt/gpgme[cxx]
377 + app-text/hunspell:=
378 + >=app-text/libabw-0.1.0
379 + >=app-text/libebook-0.1
380 + app-text/libepubgen
381 + >=app-text/libetonyek-0.1
382 + app-text/libexttextcat
383 + app-text/liblangtag
384 + >=app-text/libmspub-0.1.0
385 + >=app-text/libmwaw-0.3.1
386 + app-text/libnumbertext
387 + >=app-text/libodfgen-0.1.0
388 + app-text/libqxp
389 + app-text/libstaroffice
390 + app-text/libwpd:0.10[tools]
391 + app-text/libwpg:0.3
392 + >=app-text/libwps-0.4
393 + app-text/mythes
394 + >=dev-cpp/clucene-2.3.3.4-r2
395 + =dev-cpp/libcmis-0.5*
396 + dev-db/unixODBC
397 + dev-lang/perl
398 + dev-libs/boost:=[nls]
399 + dev-libs/expat
400 + dev-libs/hyphen
401 + dev-libs/icu:=
402 + dev-libs/libassuan
403 + dev-libs/libgpg-error
404 + =dev-libs/liborcus-0.13*
405 + dev-libs/librevenge
406 + dev-libs/libxml2
407 + dev-libs/libxslt
408 + dev-libs/nspr
409 + dev-libs/nss
410 + >=dev-libs/redland-1.0.16
411 + >=dev-libs/xmlsec-1.2.24[nss]
412 + media-gfx/graphite2
413 + media-libs/fontconfig
414 + media-libs/freetype:2
415 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
416 + media-libs/lcms:2
417 + >=media-libs/libcdr-0.1.0
418 + >=media-libs/libepoxy-1.3.1[X]
419 + >=media-libs/libfreehand-0.1.0
420 + media-libs/libpagemaker
421 + >=media-libs/libpng-1.4:0=
422 + >=media-libs/libvisio-0.1.0
423 + media-libs/libzmf
424 + net-libs/neon
425 + net-misc/curl
426 + net-nds/openldap
427 + sci-mathematics/lpsolve
428 + sys-libs/zlib
429 + virtual/glu
430 + virtual/jpeg:0
431 + virtual/opengl
432 + x11-libs/cairo[X]
433 + x11-libs/libXinerama
434 + x11-libs/libXrandr
435 + x11-libs/libXrender
436 + accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
437 + bluetooth? ( net-wireless/bluez )
438 + coinmp? ( sci-libs/coinor-mp )
439 + cups? ( net-print/cups )
440 + dbus? ( dev-libs/dbus-glib )
441 + eds? (
442 + dev-libs/glib:2
443 + gnome-base/dconf
444 + gnome-extra/evolution-data-server
445 + )
446 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
447 + gstreamer? (
448 + media-libs/gstreamer:1.0
449 + media-libs/gst-plugins-base:1.0
450 + )
451 + gtk? (
452 + dev-libs/glib:2
453 + dev-libs/gobject-introspection
454 + gnome-base/dconf
455 + media-libs/mesa[egl]
456 + x11-libs/gtk+:3
457 + x11-libs/pango
458 + )
459 + gtk2? (
460 + x11-libs/gdk-pixbuf
461 + >=x11-libs/gtk+-2.24:2
462 + x11-libs/pango
463 + )
464 + kde? (
465 + dev-qt/qtcore:5
466 + dev-qt/qtgui:5
467 + dev-qt/qtx11extras:5
468 + dev-qt/qtwidgets:5
469 + kde-frameworks/kconfig:5
470 + kde-frameworks/kcoreaddons:5
471 + kde-frameworks/ki18n:5
472 + kde-frameworks/kio:5
473 + kde-frameworks/kwindowsystem:5
474 + )
475 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
476 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
477 + mysql? ( dev-db/mysql-connector-c++ )
478 + pdfimport? ( app-text/poppler:=[cxx] )
479 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
480 +"
481 +
482 +RDEPEND="${COMMON_DEPEND}
483 + !app-office/libreoffice-bin
484 + !app-office/libreoffice-bin-debug
485 + !app-office/openoffice
486 + media-fonts/liberation-fonts
487 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
488 + java? ( >=virtual/jre-1.6 )
489 + kde? ( kde-frameworks/breeze-icons:* )
490 + vlc? ( media-video/vlc )
491 +"
492 +
493 +if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
494 + PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
495 +else
496 + # Translations are not reliable on live ebuilds
497 + # rather force people to use english only.
498 + PDEPEND="!app-office/libreoffice-l10n"
499 +fi
500 +
501 +# FIXME: cppunit should be moved to test conditional
502 +# after everything upstream is under gbuild
503 +# as dmake execute tests right away
504 +# tests apparently also need google-carlito-fonts (not packaged)
505 +DEPEND="${COMMON_DEPEND}
506 + >=dev-libs/libatomic_ops-7.2d
507 + dev-perl/Archive-Zip
508 + >=dev-util/cppunit-1.14.0
509 + >=dev-util/gperf-3
510 + dev-util/intltool
511 + =dev-util/mdds-1.3*:1=
512 + media-libs/glm
513 + sys-devel/bison
514 + sys-devel/flex
515 + sys-devel/gettext
516 + sys-devel/ucpp
517 + virtual/pkgconfig
518 + x11-base/xorg-proto
519 + x11-libs/libXt
520 + x11-libs/libXtst
521 + java? (
522 + dev-java/ant-core
523 + >=virtual/jdk-1.6
524 + )
525 + odk? ( >=app-doc/doxygen-1.8.4 )
526 + test? (
527 + app-crypt/gnupg
528 + dev-util/cppunit
529 + media-fonts/dejavu
530 + media-fonts/liberation-fonts
531 + )
532 +"
533 +
534 +PATCHES=(
535 + # "${WORKDIR}"/${PATCHSET/.tar.xz/}
536 +
537 + # not upstreamable stuff
538 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
539 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
540 + "${FILESDIR}/${PN}-6.1-nomancompress.patch"
541 +
542 + # musl compatibility by AlpineLinux
543 + "${FILESDIR}/${PN}-6.1.4.2-linux-musl.patch"
544 + "${FILESDIR}/${PN}-6.1.4.2-musl-fix-execinfo.patch"
545 + "${FILESDIR}/${PN}-6.1.4.2-musl-fix-includes.patch"
546 + "${FILESDIR}/${PN}-6.1.4.2-disable-liborcus-unittest.patch"
547 + "${FILESDIR}/${PN}-6.1.4.2-musl-stacksize.patch"
548 +)
549 +
550 +S="${WORKDIR}/${PN}-${MY_PV}"
551 +
552 +_check_reqs() {
553 + CHECKREQS_MEMORY="512M"
554 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
555 + CHECKREQS_DISK_BUILD="22G"
556 + else
557 + CHECKREQS_DISK_BUILD="6G"
558 + fi
559 + check-reqs_$1
560 +}
561 +
562 +pkg_pretend() {
563 + use java || \
564 + ewarn "If you plan to use Base application you should enable java or you will get various crashes."
565 +
566 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
567 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
568 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
569 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
570 + fi
571 +
572 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
573 +}
574 +
575 +pkg_setup() {
576 + java-pkg-opt-2_pkg_setup
577 + python-single-r1_pkg_setup
578 + xdg_environment_reset
579 +
580 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
581 +}
582 +
583 +src_unpack() {
584 + default
585 +
586 + if [[ ${MY_PV} = *9999* ]]; then
587 + local base_uri branch mypv
588 + base_uri="https://anongit.freedesktop.org/git"
589 + branch="master"
590 + mypv=${MY_PV/.9999}
591 + [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
592 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
593 + git-r3_checkout "${base_uri}/${PN}/core"
594 + LOCOREGIT_VERSION=${EGIT_VERSION}
595 +
596 + git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
597 + git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
598 + fi
599 +}
600 +
601 +src_prepare() {
602 + default
603 +
604 + # sandbox violations on many systems, we don't need it. Bug #646406
605 + sed -i \
606 + -e "/KF5_CONFIG/s/kf5-config/no/" \
607 + configure.ac || die "Failed to disable kf5-config"
608 +
609 + AT_M4DIR="m4" eautoreconf
610 + # hack in the autogen.sh
611 + touch autogen.lastrun
612 +
613 + # system pyuno mess
614 + sed -i \
615 + -e "s:%eprefix%:${EPREFIX}:g" \
616 + -e "s:%libdir%:$(get_libdir):g" \
617 + pyuno/source/module/uno.py \
618 + pyuno/source/officehelper.py || die
619 + # sed in the tests
620 + sed -i \
621 + -e "s#all : build unitcheck#all : build#g" \
622 + solenv/gbuild/Module.mk || die
623 + sed -i \
624 + -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
625 + -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
626 + Makefile.in || die
627 +
628 + sed -i \
629 + -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
630 + -e "s,\$INSTALLDIRNAME.sh,${PN}," \
631 + bin/distro-install-desktop-integration || die
632 +
633 + if use branding; then
634 + # hack...
635 + mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
636 + fi
637 +
638 + # Don't list pdfimport support in desktop when built with none, bug # 605464
639 + if ! use pdfimport; then
640 + sed -i \
641 + -e ":MimeType: s:application/pdf;::" \
642 + -e ":Keywords: s:pdf;::" \
643 + sysui/desktop/menus/draw.desktop || die
644 + fi
645 +}
646 +
647 +src_configure() {
648 + # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
649 + # Note: these are for Gentoo use ONLY. For your own distribution, please get
650 + # your own set of keys. Feel free to contact chromium@g.o for more info.
651 + local google_default_client_id="329227923882.apps.googleusercontent.com"
652 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
653 +
654 + # optimization flags
655 + export GMAKE_OPTIONS="${MAKEOPTS}"
656 + # System python enablement:
657 + export PYTHON_CFLAGS=$(python_get_CFLAGS)
658 + export PYTHON_LIBS=$(python_get_LIBS)
659 +
660 + if use kde; then
661 + export QT_SELECT=5 # bug 639620 needs proper fix though
662 + export QT5DIR="$(qt5_get_bindir)/../"
663 + export MOC5="$(qt5_get_bindir)/moc"
664 + fi
665 +
666 + local gentoo_buildid="Gentoo official package"
667 + if [[ -n ${LOCOREGIT_VERSION} ]]; then
668 + gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
669 + fi
670 +
671 + # system headers/libs/...: enforce using system packages
672 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
673 + # --enable-cairo: ensure that cairo is always required
674 + # --enable-*-link: link to the library rather than just dlopen on runtime
675 + # --enable-release-build: build the libreoffice as release
676 + # --disable-fetch-external: prevent dowloading during compile phase
677 + # --enable-extension-integration: enable any extension integration support
678 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
679 + # --disable-report-builder: too much java packages pulled in without pkgs
680 + # --without-system-sane: just sane.h header that is used for scan in writer,
681 + # not linked or anything else, worthless to depend on
682 + # --disable-pdfium: not yet packaged
683 + local myeconfargs=(
684 + --with-system-dicts
685 + --with-system-epoxy
686 + --with-system-headers
687 + --with-system-jars
688 + --with-system-libs
689 + --enable-cairo-canvas
690 + --enable-largefile
691 + --enable-mergelibs
692 + --enable-neon
693 + --enable-python=system
694 + --enable-randr
695 + --enable-release-build
696 + --disable-breakpad
697 + --disable-ccache
698 + --disable-dependency-tracking
699 + --disable-epm
700 + --disable-fetch-external
701 + --disable-gstreamer-0-10
702 + --disable-kde5
703 + --disable-online-update
704 + --disable-openssl
705 + --disable-pdfium
706 + --disable-qt5
707 + --disable-report-builder
708 + --with-alloc=system
709 + --with-build-version="${gentoo_buildid}"
710 + --enable-extension-integration
711 + --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
712 + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
713 + --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
714 + --with-external-tar="${DISTDIR}"
715 + --with-lang=""
716 + --with-parallelism=$(makeopts_jobs)
717 + --with-system-ucpp
718 + --with-tls=nss
719 + --with-vendor="Gentoo Foundation"
720 + --with-x
721 + --without-fonts
722 + --without-myspell-dicts
723 + --without-help
724 + --with-helppack-integration
725 + --with-system-gpgmepp
726 + --without-system-sane
727 + $(use_enable bluetooth sdremote-bluetooth)
728 + $(use_enable coinmp)
729 + $(use_enable cups)
730 + $(use_enable dbus)
731 + $(use_enable debug)
732 + $(use_enable eds evolution2)
733 + $(use_enable firebird firebird-sdbc)
734 + $(use_enable gstreamer gstreamer-1-0)
735 + $(use_enable gtk gtk3)
736 + $(use_enable gtk2 gtk)
737 + $(use_enable kde gtk3-kde5)
738 + $(use_enable mysql ext-mariadb-connector)
739 + $(use_enable odk)
740 + $(use_enable pdfimport)
741 + $(use_enable postgres postgresql-sdbc)
742 + $(use_enable vlc)
743 + $(use_with accessibility lxml)
744 + $(use_with coinmp system-coinmp)
745 + $(use_with googledrive gdrive-client-id ${google_default_client_id})
746 + $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
747 + $(use_with java)
748 + $(use_with mysql system-mysql-cppconn)
749 + $(use_with odk doxygen)
750 + )
751 +
752 + if use eds || use gtk; then
753 + myeconfargs+=( --enable-dconf --enable-gio )
754 + else
755 + myeconfargs+=( --disable-dconf --disable-gio )
756 + fi
757 +
758 + # libreoffice extensions handling
759 + for lo_xt in ${LO_EXTS}; do
760 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
761 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
762 + else
763 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
764 + fi
765 + done
766 +
767 + if use java; then
768 + # hsqldb: system one is too new
769 + myeconfargs+=(
770 + --without-junit
771 + --without-system-hsqldb
772 + --with-ant-home="${ANT_HOME}"
773 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
774 + --with-jvm-path="${EPREFIX}/usr/lib/"
775 + )
776 +
777 + use libreoffice_extensions_scripting-beanshell && \
778 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
779 +
780 + use libreoffice_extensions_scripting-javascript && \
781 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
782 + fi
783 +
784 + is-flagq "-flto*" && myeconfargs+=( --enable-lto )
785 +
786 + econf "${myeconfargs[@]}"
787 +}
788 +
789 +src_compile() {
790 + # more and more LO stuff tries to use OpenGL, including tests during build
791 + # bug 501508, bug 540624, bug 545974 and probably more
792 + addpredict /dev/dri
793 + addpredict /dev/ati
794 + addpredict /dev/nvidiactl
795 +
796 + # hack for offlinehelp, this needs fixing upstream at some point
797 + # it is broken because we send --without-help
798 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
799 + (
800 + grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
801 + source "${T}/config_host.mk" 2&> /dev/null
802 +
803 + local path="${WORKDIR}/helpcontent2/source/auxiliary/"
804 + mkdir -p "${path}" || die
805 +
806 + echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
807 + perl "${S}/helpcontent2/helpers/create_ilst.pl" \
808 + -dir=helpcontent2/source/media/helpimg \
809 + > "${path}/helpimg.ilst"
810 + [[ -s "${path}/helpimg.ilst" ]] || \
811 + ewarn "The help images list is empty, something is fishy, report a bug."
812 + )
813 +
814 + local target
815 + use test && target="build" || target="build-nocheck"
816 +
817 + # this is not a proper make script
818 + make ${target} || die
819 +}
820 +
821 +src_test() {
822 + make unitcheck || die
823 + make slowcheck || die
824 +}
825 +
826 +src_install() {
827 + # This is not Makefile so no buildserver
828 + make DESTDIR="${D}" distro-pack-install -o build -o check || die
829 +
830 + # bug 593514
831 + if use gtk; then
832 + dosym libreoffice/program/liblibreofficekitgtk.so \
833 + /usr/$(get_libdir)/liblibreofficekitgtk.so
834 + fi
835 +
836 + # bash completion aliases
837 + bashcomp_alias \
838 + libreoffice \
839 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
840 +
841 + if use branding; then
842 + insinto /usr/$(get_libdir)/${PN}/program
843 + newins "${WORKDIR}/branding-sofficerc" sofficerc
844 + dodir /etc/env.d
845 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
846 + fi
847 +
848 + # Hack for offlinehelp, this needs fixing upstream at some point.
849 + # It is broken because we send --without-help
850 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
851 + insinto /usr/$(get_libdir)/libreoffice/help
852 + doins xmlhelp/util/*.xsl
853 +
854 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
855 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
856 +}
857 +
858 +pkg_postinst() {
859 + gnome2_icon_cache_update
860 + xdg_desktop_database_update
861 + xdg_mimeinfo_database_update
862 +}
863 +
864 +pkg_postrm() {
865 + gnome2_icon_cache_update
866 + xdg_desktop_database_update
867 + xdg_mimeinfo_database_update
868 +}