1 |
commit: d678e7ae57b537f75179aaed8307b9212140eb22 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 23 20:55:56 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 23 22:52:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d678e7ae |
7 |
|
8 |
app-office/libreoffice: Drop 6.2.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-office/libreoffice/Manifest | 2 - |
14 |
.../files/libreoffice-6.2.0.1-poppler-0.71-1.patch | 164 ------ |
15 |
.../files/libreoffice-6.2.0.1-poppler-0.71-2.patch | 72 --- |
16 |
.../files/libreoffice-6.2.0.1-poppler-0.72.patch | 43 -- |
17 |
.../files/libreoffice-6.2.0.2-poppler-0.73.patch | 101 ---- |
18 |
app-office/libreoffice/libreoffice-6.2.0.2.ebuild | 582 --------------------- |
19 |
6 files changed, 964 deletions(-) |
20 |
|
21 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
22 |
index 15390722f85..5effcd09b23 100644 |
23 |
--- a/app-office/libreoffice/Manifest |
24 |
+++ b/app-office/libreoffice/Manifest |
25 |
@@ -5,10 +5,8 @@ DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c18 |
26 |
DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
27 |
DIST libreoffice-6.1.4.2.tar.xz 207710664 BLAKE2B 52bab412094c1ff7e184ea65c588360c18b061c3e14b7be07171f6b5831261766e2ac7d7373f5f789d125671da41e8b67d34360d4b7014dcb98df01828aeb094 SHA512 ba81b7744b908f9fe67a83e72c17c08b3b2e99599a5fd4f9cc1f2d81b3fd0ddb8065ae466205f85185ab9420350cea0b2d60108df3e583b74bd1fcd9e4eb0c3c |
28 |
DIST libreoffice-6.1.5.1.tar.xz 207920688 BLAKE2B 7e435a62b880839c752ba90693918242ec29807acb73a22d6101d74f8c8d712a5a26a85cea334a6e66811b7a4f8e016b87932390f2746da4effcb74a416ca973 SHA512 fab7f0bb6fb113c0bfa8bbc0424568c37a04f301d6e44f5755dcbb21cc6df964819a2e143b10f5c6352bfbea438df0b136ba55caf7be3bbbb83bcebba4ceadae |
29 |
-DIST libreoffice-6.2.0.2.tar.xz 213471412 BLAKE2B 61c07f0b6e2c12d197d93346ae4b9f583189a093f9fe49156c5f6ccee4309a77b4a6f6a133a61764d11dd56e7e36734ed4ebf3abab035021c0692477d556acf7 SHA512 6c8e039548b50071e50eea6719a92c11c85da2c7ae73bc70bddc5eb32859823fc5f5ab5867ec0b76d8a094cd21a228d6b0d3a7fa834e8005a2d7a82c7ecdb278 |
30 |
DIST libreoffice-6.2.0.3.tar.xz 213476336 BLAKE2B e0a44098aa46c86d5fb7d26366d57d4bf395f642cf228a426446067a7037b5199715a7d34a2b28664123f814cc23da7e299da4f93ed8b65c29ae90056cc40399 SHA512 991cab829c88010b5df0c40e6422fd725f7854d256cfa7ffcf595549ccc49aeebe135513b56c5ccdc810ea07b8df186004a3d9e5d84b5d69992996158166d0c1 |
31 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
32 |
DIST libreoffice-help-6.1.4.2.tar.xz 15757700 BLAKE2B 53c398efb3b839740a9146ea1b0f70f019936c914f7aedf38b7da69faf532ab139a8847d6eb251b2850511e0e7bd169c74fafedd0926dc987659aa27878cf740 SHA512 e24f2f6795856da62f77ebfdcfedc8190b8ecef74e395fc263f0cab4a27c0fe3d95f37665747a590fc7a6a93c6c3473a2a4501c50d415cc602f85838955fe9ab |
33 |
DIST libreoffice-help-6.1.5.1.tar.xz 15756964 BLAKE2B 0d7b32488e2e0ccab0ff067ba19dbbcdcc57f80280c74c6aa0f2e0f6cd49f2eeb67adb1d8f0e88459636d6301329fed3c5837b246571cecfa27a1e334d9b8579 SHA512 f9ae9134eb322f7cfc1cb2a18d23edfaed880925c289d49136d9e7ce026bfa2fbbf148b14a88e8f68d6f5bd8a04a97265c5c15d1eb92ef6fef50a899388617a3 |
34 |
-DIST libreoffice-help-6.2.0.2.tar.xz 16186468 BLAKE2B 3846172642023633420ba83f3c65430dd7c1e5b4fc652e758081175d6b52c412822acd2af1dc31ebcc5344bd4f4b5ba6d49beb4f43f997fd99cbe1ecd69a9f96 SHA512 43c99f3db3d773d3f724600a875b964a65ae3dcab4ab7348289828cf860475a036cd6ba2d54d57cfec4ca259c085932fa479d465475591919e86108c56ed5feb |
35 |
DIST libreoffice-help-6.2.0.3.tar.xz 16186548 BLAKE2B 95d7fbdaac774032f5ddac121eec5ace9f7964a112f8137d8cf3b999e4ba6685048c027b5635283de9913547c2776ba9b9ab7e28b97cf94fac536decc12fda98 SHA512 7b1c7949ede3fdd6dcc09fd38b62f17d68c5f79e75fb72cedb9d55889d8d8cf261d6614aa5e2e3eae3e26764b2cdb0e4344bef25851daef6041ac3935ad64fb1 |
36 |
|
37 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-1.patch b/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-1.patch |
38 |
deleted file mode 100644 |
39 |
index 9899f5864ca..00000000000 |
40 |
--- a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-1.patch |
41 |
+++ /dev/null |
42 |
@@ -1,164 +0,0 @@ |
43 |
-From 5e8bdd9203dd642111c62a6668ee665a20d4ba19 Mon Sep 17 00:00:00 2001 |
44 |
-From: Mike Kaganski <mike.kaganski@×××××××××.com> |
45 |
-Date: Tue, 20 Nov 2018 08:45:38 +0100 |
46 |
-Subject: poppler dropped GBool since 0.71 |
47 |
- |
48 |
-See https://lists.freedesktop.org/archives/libreoffice/2018-November/081410.html |
49 |
- |
50 |
-Change-Id: I258e08894486a925bed50a3a4232b6e805af6784 |
51 |
-Reviewed-on: https://gerrit.libreoffice.org/63625 |
52 |
-Tested-by: Jenkins |
53 |
-Reviewed-by: Stephan Bergmann <sbergman@××××××.com> |
54 |
---- |
55 |
- .../pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 21 +++++++------ |
56 |
- .../pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 35 +++++++++++++--------- |
57 |
- 2 files changed, 31 insertions(+), 25 deletions(-) |
58 |
- |
59 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
60 |
-index 575a90a..ab74b36 100644 |
61 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
62 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
63 |
-@@ -514,7 +514,7 @@ void PDFOutDev::printPath( GfxPath* pPath ) |
64 |
- PDFOutDev::PDFOutDev( PDFDoc* pDoc ) : |
65 |
- m_pDoc( pDoc ), |
66 |
- m_aFontMap(), |
67 |
-- m_pUtf8Map( new UnicodeMap("UTF-8", gTrue, &mapUTF8) ), |
68 |
-+ m_pUtf8Map( new UnicodeMap("UTF-8", true, &mapUTF8) ), |
69 |
- m_bSkipImages(false) |
70 |
- { |
71 |
- } |
72 |
-@@ -939,9 +939,9 @@ void PDFOutDev::endTextObject(GfxState*) |
73 |
- } |
74 |
- |
75 |
- void PDFOutDev::drawImageMask(GfxState* pState, Object*, Stream* str, |
76 |
-- int width, int height, GBool invert, |
77 |
-- GBool /*interpolate*/, |
78 |
-- GBool /*inlineImg*/ ) |
79 |
-+ int width, int height, poppler_bool invert, |
80 |
-+ poppler_bool /*interpolate*/, |
81 |
-+ poppler_bool /*inlineImg*/ ) |
82 |
- { |
83 |
- if (m_bSkipImages) |
84 |
- return; |
85 |
-@@ -969,8 +969,8 @@ void PDFOutDev::drawImageMask(GfxState* pState, Object*, Stream* str, |
86 |
- |
87 |
- void PDFOutDev::drawImage(GfxState*, Object*, Stream* str, |
88 |
- int width, int height, GfxImageColorMap* colorMap, |
89 |
-- GBool /*interpolate*/, |
90 |
-- int* maskColors, GBool /*inlineImg*/ ) |
91 |
-+ poppler_bool /*interpolate*/, |
92 |
-+ int* maskColors, poppler_bool /*inlineImg*/ ) |
93 |
- { |
94 |
- if (m_bSkipImages) |
95 |
- return; |
96 |
-@@ -1018,11 +1018,10 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str, |
97 |
- void PDFOutDev::drawMaskedImage(GfxState*, Object*, Stream* str, |
98 |
- int width, int height, |
99 |
- GfxImageColorMap* colorMap, |
100 |
-- GBool /*interpolate*/, |
101 |
-+ poppler_bool /*interpolate*/, |
102 |
- Stream* maskStr, |
103 |
- int maskWidth, int maskHeight, |
104 |
-- GBool maskInvert |
105 |
-- , GBool /*maskInterpolate*/ |
106 |
-+ poppler_bool maskInvert, poppler_bool /*maskInterpolate*/ |
107 |
- ) |
108 |
- { |
109 |
- if (m_bSkipImages) |
110 |
-@@ -1036,11 +1035,11 @@ void PDFOutDev::drawMaskedImage(GfxState*, Object*, Stream* str, |
111 |
- void PDFOutDev::drawSoftMaskedImage(GfxState*, Object*, Stream* str, |
112 |
- int width, int height, |
113 |
- GfxImageColorMap* colorMap, |
114 |
-- GBool /*interpolate*/, |
115 |
-+ poppler_bool /*interpolate*/, |
116 |
- Stream* maskStr, |
117 |
- int maskWidth, int maskHeight, |
118 |
- GfxImageColorMap* maskColorMap |
119 |
-- , GBool /*maskInterpolate*/ |
120 |
-+ , poppler_bool /*maskInterpolate*/ |
121 |
- ) |
122 |
- { |
123 |
- if (m_bSkipImages) |
124 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
125 |
-index da021a2a..a6135fa 100644 |
126 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
127 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
128 |
-@@ -130,6 +130,13 @@ namespace pdfi |
129 |
- { return const_cast<GooString &>(familyName); } |
130 |
- }; |
131 |
- |
132 |
-+ // Versions before 0.15 defined GBool as int; 0.15 redefined it as bool; 0.71 dropped GBool |
133 |
-+#if POPPLER_VERSION_MAJOR == 0 && POPPLER_VERSION_MINOR < 71 |
134 |
-+ typedef GBool poppler_bool; |
135 |
-+#else |
136 |
-+ typedef bool poppler_bool; |
137 |
-+#endif |
138 |
-+ |
139 |
- class PDFOutDev : public OutputDev |
140 |
- { |
141 |
- // not owned by this class |
142 |
-@@ -151,17 +158,17 @@ namespace pdfi |
143 |
- |
144 |
- // Does this device use upside-down coordinates? |
145 |
- // (Upside-down means (0,0) is the top left corner of the page.) |
146 |
-- virtual GBool upsideDown() override { return gTrue; } |
147 |
-+ virtual poppler_bool upsideDown() override { return true; } |
148 |
- |
149 |
- // Does this device use drawChar() or drawString()? |
150 |
-- virtual GBool useDrawChar() override { return gTrue; } |
151 |
-+ virtual poppler_bool useDrawChar() override { return true; } |
152 |
- |
153 |
- // Does this device use beginType3Char/endType3Char? Otherwise, |
154 |
- // text in Type 3 fonts will be drawn with drawChar/drawString. |
155 |
-- virtual GBool interpretType3Chars() override { return gFalse; } |
156 |
-+ virtual poppler_bool interpretType3Chars() override { return false; } |
157 |
- |
158 |
- // Does this device need non-text content? |
159 |
-- virtual GBool needNonText() override { return gTrue; } |
160 |
-+ virtual poppler_bool needNonText() override { return true; } |
161 |
- |
162 |
- //----- initialization and control |
163 |
- |
164 |
-@@ -233,29 +240,29 @@ namespace pdfi |
165 |
- |
166 |
- //----- image drawing |
167 |
- virtual void drawImageMask(GfxState *state, Object *ref, Stream *str, |
168 |
-- int width, int height, GBool invert, |
169 |
-- GBool interpolate, |
170 |
-- GBool inlineImg) override; |
171 |
-+ int width, int height, poppler_bool invert, |
172 |
-+ poppler_bool interpolate, |
173 |
-+ poppler_bool inlineImg) override; |
174 |
- virtual void drawImage(GfxState *state, Object *ref, Stream *str, |
175 |
- int width, int height, GfxImageColorMap *colorMap, |
176 |
-- GBool interpolate, |
177 |
-- int *maskColors, GBool inlineImg) override; |
178 |
-+ poppler_bool interpolate, |
179 |
-+ int* maskColors, poppler_bool inlineImg) override; |
180 |
- virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str, |
181 |
- int width, int height, |
182 |
- GfxImageColorMap *colorMap, |
183 |
-- GBool interpolate, |
184 |
-+ poppler_bool interpolate, |
185 |
- Stream *maskStr, int maskWidth, int maskHeight, |
186 |
-- GBool maskInvert |
187 |
-- , GBool maskInterpolate |
188 |
-+ poppler_bool maskInvert, |
189 |
-+ poppler_bool maskInterpolate |
190 |
- ) override; |
191 |
- virtual void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str, |
192 |
- int width, int height, |
193 |
- GfxImageColorMap *colorMap, |
194 |
-- GBool interpolate, |
195 |
-+ poppler_bool interpolate, |
196 |
- Stream *maskStr, |
197 |
- int maskWidth, int maskHeight, |
198 |
- GfxImageColorMap *maskColorMap |
199 |
-- , GBool maskInterpolate |
200 |
-+ , poppler_bool maskInterpolate |
201 |
- ) override; |
202 |
- |
203 |
- static void setPageNum( int nNumPages ); |
204 |
--- |
205 |
-cgit v1.1 |
206 |
- |
207 |
|
208 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-2.patch b/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-2.patch |
209 |
deleted file mode 100644 |
210 |
index 37b44556219..00000000000 |
211 |
--- a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.71-2.patch |
212 |
+++ /dev/null |
213 |
@@ -1,72 +0,0 @@ |
214 |
-From 8ff41a26caf51544699863c89598d37d93dc1b21 Mon Sep 17 00:00:00 2001 |
215 |
-From: Aleksei Nikiforov <darktemplar@×××××××.ru> |
216 |
-Date: Thu, 22 Nov 2018 17:54:00 +0300 |
217 |
-Subject: Fix build with poppler 0.71 |
218 |
- |
219 |
-Change-Id: I470ece9dc4766e10e1ccb5e99b25a8d8cc4cbf38 |
220 |
-Reviewed-on: https://gerrit.libreoffice.org/63860 |
221 |
-Tested-by: Jenkins |
222 |
-Reviewed-by: Stephan Bergmann <sbergman@××××××.com> |
223 |
---- |
224 |
- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 4 ++++ |
225 |
- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 4 ++++ |
226 |
- sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx | 4 ++-- |
227 |
- 3 files changed, 10 insertions(+), 2 deletions(-) |
228 |
- |
229 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
230 |
-index ab74b36..101e3be 100644 |
231 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
232 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
233 |
-@@ -578,7 +578,11 @@ void PDFOutDev::restoreState(GfxState*) |
234 |
- printf( "restoreState\n" ); |
235 |
- } |
236 |
- |
237 |
-+#if POPPLER_CHECK_VERSION(0, 71, 0) |
238 |
-+void PDFOutDev::setDefaultCTM(const double *pMat) |
239 |
-+#else |
240 |
- void PDFOutDev::setDefaultCTM(double *pMat) |
241 |
-+#endif |
242 |
- { |
243 |
- assert(pMat); |
244 |
- |
245 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
246 |
-index a6135fa..98d8ede 100644 |
247 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
248 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
249 |
-@@ -173,7 +173,11 @@ namespace pdfi |
250 |
- //----- initialization and control |
251 |
- |
252 |
- // Set default transform matrix. |
253 |
-+#if POPPLER_CHECK_VERSION(0, 71, 0) |
254 |
-+ virtual void setDefaultCTM(const double *ctm) override; |
255 |
-+#else |
256 |
- virtual void setDefaultCTM(double *ctm) override; |
257 |
-+#endif |
258 |
- |
259 |
- // Start a page. |
260 |
- virtual void startPage(int pageNum, GfxState *state |
261 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx |
262 |
-index 0f4a35b..b0a6ac4 100644 |
263 |
---- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx |
264 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx |
265 |
-@@ -69,7 +69,7 @@ int main(int argc, char **argv) |
266 |
- |
267 |
- // read config file |
268 |
- globalParams = new GlobalParams(); |
269 |
-- globalParams->setErrQuiet(gTrue); |
270 |
-+ globalParams->setErrQuiet(true); |
271 |
- #if defined(_MSC_VER) |
272 |
- globalParams->setupBaseFonts(nullptr); |
273 |
- #endif |
274 |
-@@ -145,7 +145,7 @@ int main(int argc, char **argv) |
275 |
- i, |
276 |
- PDFI_OUTDEV_RESOLUTION, |
277 |
- PDFI_OUTDEV_RESOLUTION, |
278 |
-- 0, gTrue, gTrue, gTrue); |
279 |
-+ 0, true, true, true); |
280 |
- rDoc.processLinks(&aOutDev, i); |
281 |
- } |
282 |
- |
283 |
--- |
284 |
-cgit v1.1 |
285 |
- |
286 |
|
287 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.72.patch b/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.72.patch |
288 |
deleted file mode 100644 |
289 |
index 7f0b1f71a1e..00000000000 |
290 |
--- a/app-office/libreoffice/files/libreoffice-6.2.0.1-poppler-0.72.patch |
291 |
+++ /dev/null |
292 |
@@ -1,43 +0,0 @@ |
293 |
-From 65a6c9ae4791188ffcecf489073cf38873ce5e17 Mon Sep 17 00:00:00 2001 |
294 |
-From: Andreas Sturmlechner <asturm@g.o> |
295 |
-Date: Tue, 8 Jan 2019 11:24:40 +0100 |
296 |
-Subject: Fix build with poppler-0.72 |
297 |
- |
298 |
-Change-Id: I0664d1b39e97b7555c0a3cba442db52b84f37134 |
299 |
-Reviewed-on: https://gerrit.libreoffice.org/65960 |
300 |
-Tested-by: Jenkins |
301 |
-Reviewed-by: Michael Stahl <Michael.Stahl@×××.de> |
302 |
---- |
303 |
- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 8 ++++++++ |
304 |
- 1 file changed, 8 insertions(+) |
305 |
- |
306 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
307 |
-index 101e3be..dab405b 100644 |
308 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
309 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
310 |
-@@ -555,7 +555,11 @@ void PDFOutDev::processLink(Link* link, Catalog*) |
311 |
- LinkAction* pAction = link->getAction(); |
312 |
- if (pAction && pAction->getKind() == actionURI) |
313 |
- { |
314 |
-+#if POPPLER_CHECK_VERSION(0, 72, 0) |
315 |
-+ const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str(); |
316 |
-+#else |
317 |
- const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString(); |
318 |
-+#endif |
319 |
- |
320 |
- std::vector<char> aEsc( lcl_escapeLineFeeds(pURI) ); |
321 |
- |
322 |
-@@ -757,7 +761,11 @@ void PDFOutDev::updateFont(GfxState *state) |
323 |
- |
324 |
- aFont = it->second; |
325 |
- |
326 |
-+#if POPPLER_CHECK_VERSION(0, 72, 0) |
327 |
-+ std::vector<char> aEsc( lcl_escapeLineFeeds(aFont.familyName.c_str()) ); |
328 |
-+#else |
329 |
- std::vector<char> aEsc( lcl_escapeLineFeeds(aFont.familyName.getCString()) ); |
330 |
-+#endif |
331 |
- printf( " %d %d %d %d %f %d %s", |
332 |
- aFont.isEmbedded, |
333 |
- aFont.isBold, |
334 |
--- |
335 |
-cgit v1.1 |
336 |
|
337 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch b/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch |
338 |
deleted file mode 100644 |
339 |
index fb9112bc398..00000000000 |
340 |
--- a/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch |
341 |
+++ /dev/null |
342 |
@@ -1,101 +0,0 @@ |
343 |
-From 9e1522ad1d2c2bd775fa50c2b142eb110a56af72 Mon Sep 17 00:00:00 2001 |
344 |
-From: Michael Stahl <Michael.Stahl@×××.de> |
345 |
-Date: Mon, 14 Jan 2019 15:08:42 +0100 |
346 |
-Subject: sdext: fix build with poppler 0.73 |
347 |
-MIME-Version: 1.0 |
348 |
-Content-Type: text/plain; charset=UTF-8 |
349 |
-Content-Transfer-Encoding: 8bit |
350 |
- |
351 |
-... which has removed Guchar, Gushort, Guint, Gulong... |
352 |
- |
353 |
-Change-Id: Ia54ad378031f167f6779f6ffe574b85c1e72f26d |
354 |
-Reviewed-on: https://gerrit.libreoffice.org/66305 |
355 |
-Tested-by: Jenkins |
356 |
-Reviewed-by: Michael Stahl <Michael.Stahl@×××.de> |
357 |
-(cherry picked from commit 50d371ae08c66648d9f32f633b2245e1746e2bb6) |
358 |
-Reviewed-on: https://gerrit.libreoffice.org/66356 |
359 |
-Reviewed-by: Caolán McNamara <caolanm@××××××.com> |
360 |
-Tested-by: Caolán McNamara <caolanm@××××××.com> |
361 |
---- |
362 |
- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 4 ++-- |
363 |
- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 6 +++++- |
364 |
- sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx | 6 +++--- |
365 |
- 3 files changed, 10 insertions(+), 6 deletions(-) |
366 |
- |
367 |
-(limited to 'sdext/source/pdfimport/xpdfwrapper') |
368 |
- |
369 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
370 |
-index 575a90a..35490a0 100644 |
371 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
372 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
373 |
-@@ -298,7 +298,7 @@ static void writePpm_( OutputBuffer& o_rOutputBuf, |
374 |
- o_rOutputBuf.resize(header_size); |
375 |
- |
376 |
- // initialize stream |
377 |
-- Guchar *p; |
378 |
-+ unsigned char *p; |
379 |
- GfxRGB rgb; |
380 |
- std::unique_ptr<ImageStream> imgStr( |
381 |
- new ImageStream(str, |
382 |
-@@ -401,7 +401,7 @@ static void writeImage_( OutputBuffer& o_rOutputBuf, |
383 |
- oneColor = { byteToCol( 0xff ), byteToCol( 0xff ), byteToCol( 0xff ) }; |
384 |
- if( colorMap->getColorSpace()->getMode() == csIndexed || colorMap->getColorSpace()->getMode() == csDeviceGray ) |
385 |
- { |
386 |
-- Guchar nIndex = 0; |
387 |
-+ unsigned char nIndex = 0; |
388 |
- colorMap->getRGB( &nIndex, &zeroColor ); |
389 |
- nIndex = 1; |
390 |
- colorMap->getRGB( &nIndex, &oneColor ); |
391 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
392 |
-index da021a2a..443e757 100644 |
393 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
394 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
395 |
-@@ -267,9 +267,13 @@ extern FILE* g_binary_out; |
396 |
- |
397 |
- // note: if you ever change Output_t, please keep in mind that the current code |
398 |
- // relies on it being of 8 bit size |
399 |
--typedef Guchar Output_t; |
400 |
-+typedef unsigned char Output_t; |
401 |
- typedef std::vector< Output_t > OutputBuffer; |
402 |
- |
403 |
-+#if !POPPLER_CHECK_VERSION(0, 73, 0) |
404 |
-+static_assert(std::is_same<Guchar, unsigned char>::value, "unexpected typedef"); |
405 |
-+#endif |
406 |
-+ |
407 |
- #endif // INCLUDED_SDEXT_SOURCE_PDFIMPORT_XPDFWRAPPER_PDFIOUTDEV_GPL_HXX |
408 |
- |
409 |
- /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |
410 |
-diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx |
411 |
-index 4d9e3bb..b582856 100644 |
412 |
---- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx |
413 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx |
414 |
-@@ -242,7 +242,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, |
415 |
- appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image |
416 |
- |
417 |
- // initialize stream |
418 |
-- Guchar *p, *pm; |
419 |
-+ unsigned char *p, *pm; |
420 |
- GfxRGB rgb; |
421 |
- GfxGray alpha; |
422 |
- std::unique_ptr<ImageStream> imgStr( |
423 |
-@@ -328,7 +328,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, |
424 |
- appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image |
425 |
- |
426 |
- // initialize stream |
427 |
-- Guchar *p; |
428 |
-+ unsigned char *p; |
429 |
- GfxRGB rgb; |
430 |
- std::unique_ptr<ImageStream> imgStr( |
431 |
- new ImageStream(str, |
432 |
-@@ -374,7 +374,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, |
433 |
- { |
434 |
- for( int x = 0; x < maskWidth; ++x ) |
435 |
- { |
436 |
-- Guchar aPixel = 0; |
437 |
-+ unsigned char aPixel = 0; |
438 |
- imgStrMask->getPixel( &aPixel ); |
439 |
- int nIndex = (y*height/maskHeight) * (width*4+1) + // mapped line |
440 |
- (x*width/maskWidth)*4 + 1 + 3 // mapped column |
441 |
--- |
442 |
-cgit v1.1 |
443 |
- |
444 |
|
445 |
diff --git a/app-office/libreoffice/libreoffice-6.2.0.2.ebuild b/app-office/libreoffice/libreoffice-6.2.0.2.ebuild |
446 |
deleted file mode 100644 |
447 |
index e2865fbd55d..00000000000 |
448 |
--- a/app-office/libreoffice/libreoffice-6.2.0.2.ebuild |
449 |
+++ /dev/null |
450 |
@@ -1,582 +0,0 @@ |
451 |
-# Copyright 1999-2019 Gentoo Authors |
452 |
-# Distributed under the terms of the GNU General Public License v2 |
453 |
- |
454 |
-EAPI=6 |
455 |
- |
456 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
457 |
-PYTHON_REQ_USE="threads(+),xml" |
458 |
- |
459 |
-MY_PV="${PV/_alpha/.alpha}" |
460 |
-MY_PV="${MY_PV/_beta/.beta}" |
461 |
-# experimental ; release ; old |
462 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
463 |
-DEV_URI=" |
464 |
- https://dev-builds.libreoffice.org/pre-releases/src |
465 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
466 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
467 |
-" |
468 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
469 |
- |
470 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
471 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
472 |
- |
473 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
474 |
-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 |
475 |
- |
476 |
-DESCRIPTION="A full office productivity suite" |
477 |
-HOMEPAGE="https://www.libreoffice.org" |
478 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
479 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
480 |
- |
481 |
-# Split modules following git/tarballs; Core MUST be first! |
482 |
-# Help is used for the image generator |
483 |
-# Only release has the tarballs |
484 |
-if [[ ${MY_PV} != *9999* ]]; then |
485 |
- for i in ${DEV_URI}; do |
486 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
487 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
488 |
- done |
489 |
- unset i |
490 |
-fi |
491 |
-unset DEV_URI |
492 |
- |
493 |
-# Really required addons |
494 |
-# These are bundles that can't be removed for now due to huge patchsets. |
495 |
-# If you want them gone, patches are welcome. |
496 |
-ADDONS_SRC=( |
497 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
498 |
- # no release for 8 years, should we package it? |
499 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
500 |
- # Does not build with 1.6 rhino at all |
501 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
502 |
- # requirement of rhino |
503 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
504 |
- # not packageable |
505 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
506 |
-) |
507 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
508 |
- |
509 |
-unset ADDONS_URI |
510 |
-unset ADDONS_SRC |
511 |
- |
512 |
-# Extensions that need extra work: |
513 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
514 |
- |
515 |
-IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
516 |
-googledrive gstreamer +gtk gtk2 kde mysql odk pdfimport postgres test vlc |
517 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
518 |
- |
519 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
520 |
- bluetooth? ( dbus ) |
521 |
- libreoffice_extensions_nlpsolver? ( java ) |
522 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
523 |
- libreoffice_extensions_scripting-javascript? ( java ) |
524 |
- libreoffice_extensions_wiki-publisher? ( java ) |
525 |
-" |
526 |
- |
527 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
528 |
-SLOT="0" |
529 |
-[[ ${MY_PV} == *9999* ]] || \ |
530 |
-KEYWORDS="" |
531 |
-# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
532 |
- |
533 |
-COMMON_DEPEND="${PYTHON_DEPS} |
534 |
- app-arch/unzip |
535 |
- app-arch/zip |
536 |
- app-crypt/gpgme[cxx] |
537 |
- app-text/hunspell:= |
538 |
- >=app-text/libabw-0.1.0 |
539 |
- >=app-text/libebook-0.1 |
540 |
- app-text/libepubgen |
541 |
- >=app-text/libetonyek-0.1 |
542 |
- app-text/libexttextcat |
543 |
- app-text/liblangtag |
544 |
- >=app-text/libmspub-0.1.0 |
545 |
- >=app-text/libmwaw-0.3.1 |
546 |
- app-text/libnumbertext |
547 |
- >=app-text/libodfgen-0.1.0 |
548 |
- app-text/libqxp |
549 |
- app-text/libstaroffice |
550 |
- app-text/libwpd:0.10[tools] |
551 |
- app-text/libwpg:0.3 |
552 |
- >=app-text/libwps-0.4 |
553 |
- app-text/mythes |
554 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
555 |
- =dev-cpp/libcmis-0.5* |
556 |
- dev-db/unixODBC |
557 |
- dev-lang/perl |
558 |
- dev-libs/boost:=[nls] |
559 |
- dev-libs/expat |
560 |
- dev-libs/hyphen |
561 |
- dev-libs/icu:= |
562 |
- dev-libs/libassuan |
563 |
- dev-libs/libgpg-error |
564 |
- >=dev-libs/liborcus-0.14.0 |
565 |
- dev-libs/librevenge |
566 |
- dev-libs/libxml2 |
567 |
- dev-libs/libxslt |
568 |
- dev-libs/nspr |
569 |
- dev-libs/nss |
570 |
- >=dev-libs/redland-1.0.16 |
571 |
- >=dev-libs/xmlsec-1.2.24[nss] |
572 |
- media-gfx/fontforge |
573 |
- media-gfx/graphite2 |
574 |
- media-libs/fontconfig |
575 |
- media-libs/freetype:2 |
576 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
577 |
- media-libs/lcms:2 |
578 |
- >=media-libs/libcdr-0.1.0 |
579 |
- >=media-libs/libepoxy-1.3.1[X] |
580 |
- >=media-libs/libfreehand-0.1.0 |
581 |
- media-libs/libpagemaker |
582 |
- >=media-libs/libpng-1.4:0= |
583 |
- >=media-libs/libvisio-0.1.0 |
584 |
- media-libs/libzmf |
585 |
- net-libs/neon |
586 |
- net-misc/curl |
587 |
- net-nds/openldap |
588 |
- sci-mathematics/lpsolve |
589 |
- sys-libs/zlib |
590 |
- virtual/glu |
591 |
- virtual/jpeg:0 |
592 |
- virtual/opengl |
593 |
- x11-libs/cairo[X] |
594 |
- x11-libs/libXinerama |
595 |
- x11-libs/libXrandr |
596 |
- x11-libs/libXrender |
597 |
- accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
598 |
- bluetooth? ( |
599 |
- dev-libs/glib:2 |
600 |
- net-wireless/bluez |
601 |
- ) |
602 |
- coinmp? ( sci-libs/coinor-mp ) |
603 |
- cups? ( net-print/cups ) |
604 |
- dbus? ( sys-apps/dbus ) |
605 |
- eds? ( |
606 |
- dev-libs/glib:2 |
607 |
- gnome-base/dconf |
608 |
- gnome-extra/evolution-data-server |
609 |
- ) |
610 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
611 |
- gstreamer? ( |
612 |
- media-libs/gstreamer:1.0 |
613 |
- media-libs/gst-plugins-base:1.0 |
614 |
- ) |
615 |
- gtk? ( |
616 |
- dev-libs/glib:2 |
617 |
- dev-libs/gobject-introspection |
618 |
- gnome-base/dconf |
619 |
- media-libs/mesa[egl] |
620 |
- x11-libs/gtk+:3 |
621 |
- x11-libs/pango |
622 |
- ) |
623 |
- gtk2? ( |
624 |
- x11-libs/gdk-pixbuf |
625 |
- >=x11-libs/gtk+-2.24:2 |
626 |
- x11-libs/pango |
627 |
- ) |
628 |
- kde? ( |
629 |
- dev-qt/qtcore:5 |
630 |
- dev-qt/qtgui:5 |
631 |
- dev-qt/qtx11extras:5 |
632 |
- dev-qt/qtwidgets:5 |
633 |
- kde-frameworks/kconfig:5 |
634 |
- kde-frameworks/kcoreaddons:5 |
635 |
- kde-frameworks/ki18n:5 |
636 |
- kde-frameworks/kio:5 |
637 |
- kde-frameworks/kwindowsystem:5 |
638 |
- ) |
639 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
640 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
641 |
- mysql? ( dev-db/mysql-connector-c ) |
642 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
643 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
644 |
-" |
645 |
- |
646 |
-RDEPEND="${COMMON_DEPEND} |
647 |
- !app-office/libreoffice-bin |
648 |
- !app-office/libreoffice-bin-debug |
649 |
- !app-office/openoffice |
650 |
- media-fonts/liberation-fonts |
651 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
652 |
- java? ( >=virtual/jre-1.6 ) |
653 |
- kde? ( kde-frameworks/breeze-icons:* ) |
654 |
- vlc? ( media-video/vlc ) |
655 |
-" |
656 |
- |
657 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
658 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
659 |
-else |
660 |
- # Translations are not reliable on live ebuilds |
661 |
- # rather force people to use english only. |
662 |
- PDEPEND="!app-office/libreoffice-l10n" |
663 |
-fi |
664 |
- |
665 |
-# FIXME: cppunit should be moved to test conditional |
666 |
-# after everything upstream is under gbuild |
667 |
-# as dmake execute tests right away |
668 |
-# tests apparently also need google-carlito-fonts (not packaged) |
669 |
-DEPEND="${COMMON_DEPEND} |
670 |
- >=dev-libs/libatomic_ops-7.2d |
671 |
- dev-perl/Archive-Zip |
672 |
- >=dev-util/cppunit-1.14.0 |
673 |
- >=dev-util/gperf-3 |
674 |
- dev-util/intltool |
675 |
- >=dev-util/mdds-1.4.1:1= |
676 |
- media-libs/glm |
677 |
- sys-devel/bison |
678 |
- sys-devel/flex |
679 |
- sys-devel/gettext |
680 |
- sys-devel/ucpp |
681 |
- virtual/pkgconfig |
682 |
- x11-base/xorg-proto |
683 |
- x11-libs/libXt |
684 |
- x11-libs/libXtst |
685 |
- java? ( |
686 |
- dev-java/ant-core |
687 |
- >=virtual/jdk-1.6 |
688 |
- ) |
689 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
690 |
- test? ( |
691 |
- app-crypt/gnupg |
692 |
- dev-util/cppunit |
693 |
- media-fonts/dejavu |
694 |
- media-fonts/liberation-fonts |
695 |
- ) |
696 |
-" |
697 |
- |
698 |
-PATCHES=( |
699 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
700 |
- |
701 |
- # not upstreamable stuff |
702 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
703 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
704 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
705 |
- |
706 |
- # 6.2 branch |
707 |
- "${FILESDIR}"/${PN}-6.2.0.1-poppler-0.71-{1,2}.patch |
708 |
- "${FILESDIR}"/${PN}-6.2.0.1-poppler-0.72.patch |
709 |
- "${FILESDIR}"/${P}-poppler-0.73.patch |
710 |
-) |
711 |
- |
712 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
713 |
- |
714 |
-_check_reqs() { |
715 |
- CHECKREQS_MEMORY="512M" |
716 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
717 |
- CHECKREQS_DISK_BUILD="22G" |
718 |
- else |
719 |
- CHECKREQS_DISK_BUILD="6G" |
720 |
- fi |
721 |
- check-reqs_$1 |
722 |
-} |
723 |
- |
724 |
-pkg_pretend() { |
725 |
- use java || \ |
726 |
- ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
727 |
- |
728 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
729 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
730 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
731 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
732 |
- fi |
733 |
- |
734 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
735 |
-} |
736 |
- |
737 |
-pkg_setup() { |
738 |
- java-pkg-opt-2_pkg_setup |
739 |
- python-single-r1_pkg_setup |
740 |
- xdg_environment_reset |
741 |
- |
742 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
743 |
-} |
744 |
- |
745 |
-src_unpack() { |
746 |
- default |
747 |
- |
748 |
- if [[ ${MY_PV} = *9999* ]]; then |
749 |
- local base_uri branch mypv |
750 |
- base_uri="https://anongit.freedesktop.org/git" |
751 |
- branch="master" |
752 |
- mypv=${MY_PV/.9999} |
753 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
754 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
755 |
- git-r3_checkout "${base_uri}/${PN}/core" |
756 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
757 |
- |
758 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
759 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
760 |
- fi |
761 |
-} |
762 |
- |
763 |
-src_prepare() { |
764 |
- default |
765 |
- |
766 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
767 |
- sed -i \ |
768 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
769 |
- configure.ac || die "Failed to disable kf5-config" |
770 |
- |
771 |
- AT_M4DIR="m4" eautoreconf |
772 |
- # hack in the autogen.sh |
773 |
- touch autogen.lastrun |
774 |
- |
775 |
- # system pyuno mess |
776 |
- sed -i \ |
777 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
778 |
- -e "s:%libdir%:$(get_libdir):g" \ |
779 |
- pyuno/source/module/uno.py \ |
780 |
- pyuno/source/officehelper.py || die |
781 |
- # sed in the tests |
782 |
- sed -i \ |
783 |
- -e "s#all : build unitcheck#all : build#g" \ |
784 |
- solenv/gbuild/Module.mk || die |
785 |
- sed -i \ |
786 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
787 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
788 |
- Makefile.in || die |
789 |
- |
790 |
- sed -i \ |
791 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
792 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
793 |
- bin/distro-install-desktop-integration || die |
794 |
- |
795 |
- if use branding; then |
796 |
- # hack... |
797 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
798 |
- fi |
799 |
- |
800 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
801 |
- if ! use pdfimport; then |
802 |
- sed -i \ |
803 |
- -e ":MimeType: s:application/pdf;::" \ |
804 |
- -e ":Keywords: s:pdf;::" \ |
805 |
- sysui/desktop/menus/draw.desktop || die |
806 |
- fi |
807 |
-} |
808 |
- |
809 |
-src_configure() { |
810 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
811 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
812 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
813 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
814 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
815 |
- |
816 |
- # optimization flags |
817 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
818 |
- # System python enablement: |
819 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
820 |
- export PYTHON_LIBS=$(python_get_LIBS) |
821 |
- |
822 |
- if use kde; then |
823 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
824 |
- export QT5DIR="$(qt5_get_bindir)/../" |
825 |
- export MOC5="$(qt5_get_bindir)/moc" |
826 |
- fi |
827 |
- |
828 |
- local gentoo_buildid="Gentoo official package" |
829 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
830 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
831 |
- fi |
832 |
- |
833 |
- # system headers/libs/...: enforce using system packages |
834 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
835 |
- # --enable-cairo: ensure that cairo is always required |
836 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
837 |
- # --enable-release-build: build the libreoffice as release |
838 |
- # --disable-fetch-external: prevent dowloading during compile phase |
839 |
- # --enable-extension-integration: enable any extension integration support |
840 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
841 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
842 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
843 |
- # not linked or anything else, worthless to depend on |
844 |
- # --disable-pdfium: not yet packaged |
845 |
- local myeconfargs=( |
846 |
- --with-system-dicts |
847 |
- --with-system-epoxy |
848 |
- --with-system-headers |
849 |
- --with-system-jars |
850 |
- --with-system-libs |
851 |
- --enable-build-opensymbol |
852 |
- --enable-cairo-canvas |
853 |
- --enable-largefile |
854 |
- --enable-mergelibs |
855 |
- --enable-neon |
856 |
- --enable-python=system |
857 |
- --enable-randr |
858 |
- --enable-release-build |
859 |
- --disable-breakpad |
860 |
- --disable-ccache |
861 |
- --disable-dependency-tracking |
862 |
- --disable-epm |
863 |
- --disable-fetch-external |
864 |
- --disable-gstreamer-0-10 |
865 |
- --disable-online-update |
866 |
- --disable-openssl |
867 |
- --disable-pdfium |
868 |
- --disable-report-builder |
869 |
- --with-build-version="${gentoo_buildid}" |
870 |
- --enable-extension-integration |
871 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
872 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
873 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
874 |
- --with-external-tar="${DISTDIR}" |
875 |
- --with-lang="" |
876 |
- --with-parallelism=$(makeopts_jobs) |
877 |
- --with-system-ucpp |
878 |
- --with-tls=nss |
879 |
- --with-vendor="Gentoo Foundation" |
880 |
- --with-x |
881 |
- --without-fonts |
882 |
- --without-myspell-dicts |
883 |
- --without-help |
884 |
- --with-helppack-integration |
885 |
- --with-system-gpgmepp |
886 |
- --without-system-sane |
887 |
- $(use_enable bluetooth sdremote-bluetooth) |
888 |
- $(use_enable coinmp) |
889 |
- $(use_enable cups) |
890 |
- $(use_enable dbus) |
891 |
- $(use_enable debug) |
892 |
- $(use_enable eds evolution2) |
893 |
- $(use_enable firebird firebird-sdbc) |
894 |
- $(use_enable gstreamer gstreamer-1-0) |
895 |
- $(use_enable gtk gtk3) |
896 |
- $(use_enable gtk2 gtk) |
897 |
- $(use_enable kde kde5) |
898 |
- $(use_enable kde qt5) |
899 |
- $(use_enable mysql bundle-mariadb) |
900 |
- $(use_enable odk) |
901 |
- $(use_enable pdfimport) |
902 |
- $(use_enable postgres postgresql-sdbc) |
903 |
- $(use_enable vlc) |
904 |
- $(use_with accessibility lxml) |
905 |
- $(use_with coinmp system-coinmp) |
906 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
907 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
908 |
- $(use_with java) |
909 |
- $(use_with odk doxygen) |
910 |
- ) |
911 |
- |
912 |
- if use gtk && use kde; then |
913 |
- myeconfargs+=( --enable-gtk3-kde5 ) |
914 |
- fi |
915 |
- |
916 |
- if use eds || use gtk; then |
917 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
918 |
- else |
919 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
920 |
- fi |
921 |
- |
922 |
- # libreoffice extensions handling |
923 |
- for lo_xt in ${LO_EXTS}; do |
924 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
925 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
926 |
- else |
927 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
928 |
- fi |
929 |
- done |
930 |
- |
931 |
- if use java; then |
932 |
- # hsqldb: system one is too new |
933 |
- myeconfargs+=( |
934 |
- --without-junit |
935 |
- --without-system-hsqldb |
936 |
- --with-ant-home="${ANT_HOME}" |
937 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
938 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
939 |
- ) |
940 |
- |
941 |
- use libreoffice_extensions_scripting-beanshell && \ |
942 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
943 |
- |
944 |
- use libreoffice_extensions_scripting-javascript && \ |
945 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
946 |
- fi |
947 |
- |
948 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
949 |
- |
950 |
- econf "${myeconfargs[@]}" |
951 |
-} |
952 |
- |
953 |
-src_compile() { |
954 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
955 |
- # bug 501508, bug 540624, bug 545974 and probably more |
956 |
- addpredict /dev/dri |
957 |
- addpredict /dev/ati |
958 |
- addpredict /dev/nvidiactl |
959 |
- |
960 |
- # hack for offlinehelp, this needs fixing upstream at some point |
961 |
- # it is broken because we send --without-help |
962 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
963 |
- ( |
964 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
965 |
- source "${T}/config_host.mk" 2&> /dev/null |
966 |
- |
967 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
968 |
- mkdir -p "${path}" || die |
969 |
- |
970 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
971 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
972 |
- -dir=helpcontent2/source/media/helpimg \ |
973 |
- > "${path}/helpimg.ilst" |
974 |
- [[ -s "${path}/helpimg.ilst" ]] || \ |
975 |
- ewarn "The help images list is empty, something is fishy, report a bug." |
976 |
- ) |
977 |
- |
978 |
- local target |
979 |
- use test && target="build" || target="build-nocheck" |
980 |
- |
981 |
- # this is not a proper make script |
982 |
- make ${target} || die |
983 |
-} |
984 |
- |
985 |
-src_test() { |
986 |
- make unitcheck || die |
987 |
- make slowcheck || die |
988 |
-} |
989 |
- |
990 |
-src_install() { |
991 |
- # This is not Makefile so no buildserver |
992 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
993 |
- |
994 |
- # bug 593514 |
995 |
- if use gtk; then |
996 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
997 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
998 |
- fi |
999 |
- |
1000 |
- # bash completion aliases |
1001 |
- bashcomp_alias \ |
1002 |
- libreoffice \ |
1003 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
1004 |
- |
1005 |
- if use branding; then |
1006 |
- insinto /usr/$(get_libdir)/${PN}/program |
1007 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
1008 |
- dodir /etc/env.d |
1009 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
1010 |
- fi |
1011 |
- |
1012 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
1013 |
- # It is broken because we send --without-help |
1014 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1015 |
- insinto /usr/$(get_libdir)/libreoffice/help |
1016 |
- doins xmlhelp/util/*.xsl |
1017 |
- |
1018 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
1019 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
1020 |
-} |
1021 |
- |
1022 |
-pkg_postinst() { |
1023 |
- gnome2_icon_cache_update |
1024 |
- xdg_desktop_database_update |
1025 |
- xdg_mimeinfo_database_update |
1026 |
-} |
1027 |
- |
1028 |
-pkg_postrm() { |
1029 |
- gnome2_icon_cache_update |
1030 |
- xdg_desktop_database_update |
1031 |
- xdg_mimeinfo_database_update |
1032 |
-} |