1 |
commit: 0f5d484ee208b2c918e0778c6d259bd97ee77475 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 18 20:57:03 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 18 20:59:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f5d484e |
7 |
|
8 |
app-text/mupdf: drop old and vulnerable |
9 |
|
10 |
We have to drop alpha, ppc, ppc64 and sparc due to slow stabilization. |
11 |
We've already missed our target delay for resolving the security bug by |
12 |
a lot. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/658618 |
15 |
Package-Manager: Portage-2.3.47, Repoman-2.3.10 |
16 |
|
17 |
app-text/mupdf/Manifest | 2 - |
18 |
app-text/mupdf/files/mupdf-1.11-CFLAGS.patch | 10 -- |
19 |
.../mupdf/files/mupdf-1.11-CVE-2017-6060.patch | 15 -- |
20 |
.../files/mupdf-1.11-openssl-curl-x11-r1.patch | 37 ----- |
21 |
.../mupdf/files/mupdf-1.11-openssl-curl-x11.patch | 37 ----- |
22 |
app-text/mupdf/files/mupdf-1.11-system-glfw.patch | 11 -- |
23 |
app-text/mupdf/mupdf-1.11-r1.ebuild | 152 ------------------- |
24 |
app-text/mupdf/mupdf-1.11-r2.ebuild | 152 ------------------- |
25 |
app-text/mupdf/mupdf-1.12.0-r2.ebuild | 166 --------------------- |
26 |
app-text/mupdf/mupdf-1.12.0.ebuild | 160 -------------------- |
27 |
10 files changed, 742 deletions(-) |
28 |
|
29 |
diff --git a/app-text/mupdf/Manifest b/app-text/mupdf/Manifest |
30 |
index a37226db36a..6e813b10936 100644 |
31 |
--- a/app-text/mupdf/Manifest |
32 |
+++ b/app-text/mupdf/Manifest |
33 |
@@ -1,3 +1 @@ |
34 |
-DIST mupdf-1.11-source.tar.gz 40156070 BLAKE2B 2a9991a11355a449b91955bd897b5da175d3a89943277345779ea52c74f57c58226ee4087b23e3f434c0a45ae7a39df95c81c26c55d959f362bd1a0d0216716d SHA512 501670f540e298a8126806ebbd9db8b29866f663b7bbf26c9ade1933e42f0c00ad410b9d93f3ddbfb3e45c38722869095de28d832fe3fb3703c55cc9a01dbf63 |
35 |
-DIST mupdf-1.12.0-source.tar.gz 51508917 BLAKE2B c34df17f0df7a200897d678514ff4012e02b1cef71189fe48740948c88cb544c6ce80f52a5dc335d70002806a7b413e5f79a1edee88865e42daf76e49416d9bf SHA512 11ae620e55e9ebd5844abd7decacc0dafc90dd1f4907ba6ed12f5c725d3920187fc730a7fc33979bf3ff9451da7dbb51f34480a878083e2064f3455555f47d96 |
36 |
DIST mupdf-1.13.0-source.tar.gz 51425034 BLAKE2B 7f4a1c84b5840991cc7879f3617165579f4db1f7a010a8313b0eaf94ad59af60bb3d0e4a0f2acc14d2c7511dd0f8b96c89c51e360ab379ba32590b887dd3be6a SHA512 d7fca7292e612959893a728d35964cf7b4e607385bdd72e81b8ca1de6ab642f999b734afbbf32d75400cd29b7e178ec360e65c91d7b1e1a53c2a04ff0adbd707 |
37 |
|
38 |
diff --git a/app-text/mupdf/files/mupdf-1.11-CFLAGS.patch b/app-text/mupdf/files/mupdf-1.11-CFLAGS.patch |
39 |
deleted file mode 100644 |
40 |
index 2ffd326e5e4..00000000000 |
41 |
--- a/app-text/mupdf/files/mupdf-1.11-CFLAGS.patch |
42 |
+++ /dev/null |
43 |
@@ -1,10 +0,0 @@ |
44 |
---- mupdf-1.11-source/Makerules |
45 |
-+++ mupdf-1.11-source/Makerules |
46 |
-@@ -23,7 +23,6 @@ |
47 |
- endif |
48 |
- |
49 |
- ifeq "$(build)" "debug" |
50 |
--CFLAGS += -pipe -g |
51 |
- LDFLAGS += -g |
52 |
- else ifeq "$(build)" "release" |
53 |
- CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer |
54 |
|
55 |
diff --git a/app-text/mupdf/files/mupdf-1.11-CVE-2017-6060.patch b/app-text/mupdf/files/mupdf-1.11-CVE-2017-6060.patch |
56 |
deleted file mode 100644 |
57 |
index a595253e864..00000000000 |
58 |
--- a/app-text/mupdf/files/mupdf-1.11-CVE-2017-6060.patch |
59 |
+++ /dev/null |
60 |
@@ -1,15 +0,0 @@ |
61 |
-X-Git-Url: http://git.ghostscript.com/?p=user%2Fsebras%2Fmupdf.git;a=blobdiff_plain;f=platform%2Fx11%2Fjstest_main.c;h=f158d9628ed0c0a84e37fe128277679e8334422a;hp=13c3a0a3ba3ff4aae29f6882d23740833c1d842f;hb=06a012a42c9884e3cd653e7826cff1ddec04eb6e;hpb=34e18d127a02146e3415b33c4b67389ce1ddb614 |
62 |
- |
63 |
-diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c |
64 |
-index 13c3a0a..f158d96 100644 |
65 |
---- a/platform/x11/jstest_main.c |
66 |
-+++ b/platform/x11/jstest_main.c |
67 |
-@@ -346,7 +346,7 @@ main(int argc, char *argv[]) |
68 |
- } |
69 |
- else if (match(&line, "OPEN")) |
70 |
- { |
71 |
-- char path[1024]; |
72 |
-+ char path[LONGLINE]; |
73 |
- if (file_open) |
74 |
- pdfapp_close(&gapp); |
75 |
- if (prefix) |
76 |
|
77 |
diff --git a/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11-r1.patch b/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11-r1.patch |
78 |
deleted file mode 100644 |
79 |
index 92845a0eef2..00000000000 |
80 |
--- a/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11-r1.patch |
81 |
+++ /dev/null |
82 |
@@ -1,37 +0,0 @@ |
83 |
---- mupdf-1.11-source/Makerules |
84 |
-+++ mupdf-1.11-source/Makerules |
85 |
-@@ -116,12 +116,17 @@ |
86 |
- SYS_PTHREAD_CFLAGS := |
87 |
- SYS_PTHREAD_LIBS := -lpthread |
88 |
- |
89 |
-+WANT_OPENSSL ?= yes |
90 |
-+ifeq "$(WANT_OPENSSL)" "yes" |
91 |
- ifeq "$(shell pkg-config --exists 'libcrypto <= 1.0.1t' && echo yes)" "yes" |
92 |
- HAVE_LIBCRYPTO := yes |
93 |
- SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto) |
94 |
- SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto) |
95 |
- endif |
96 |
-+endif |
97 |
- |
98 |
-+WANT_CURL ?= yes |
99 |
-+ifeq "$(WANT_CURL)" "yes" |
100 |
- ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes" |
101 |
- HAVE_CURL := yes |
102 |
- SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl) |
103 |
-@@ -133,12 +138,16 @@ |
104 |
- endif |
105 |
- endif |
106 |
- SYS_CURL_DEPS += -lpthread -lrt |
107 |
-+endif |
108 |
- |
109 |
-+WANT_X11 ?= yes |
110 |
-+ifeq "$(WANT_X11)" "yes" |
111 |
- ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes" |
112 |
- HAVE_X11 := yes |
113 |
- SYS_X11_CFLAGS := $(shell pkg-config --cflags x11 xext) |
114 |
- SYS_X11_LIBS := $(shell pkg-config --libs x11 xext) |
115 |
- endif |
116 |
-+endif |
117 |
- |
118 |
- ifeq "$(shell pkg-config --exists harfbuzz && echo yes)" "yes" |
119 |
- SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz) |
120 |
|
121 |
diff --git a/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11.patch b/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11.patch |
122 |
deleted file mode 100644 |
123 |
index 91fd9f6485d..00000000000 |
124 |
--- a/app-text/mupdf/files/mupdf-1.11-openssl-curl-x11.patch |
125 |
+++ /dev/null |
126 |
@@ -1,37 +0,0 @@ |
127 |
---- mupdf-1.11-source/Makerules |
128 |
-+++ mupdf-1.11-source/Makerules |
129 |
-@@ -116,12 +116,17 @@ |
130 |
- SYS_PTHREAD_CFLAGS := |
131 |
- SYS_PTHREAD_LIBS := -lpthread |
132 |
- |
133 |
-+WANT_OPENSSL ?= yes |
134 |
-+ifeq "$(WANT_OPENSSL)" "yes" |
135 |
- ifeq "$(shell pkg-config --exists 'libcrypto <= 1.0.1t' && echo yes)" "yes" |
136 |
- HAVE_LIBCRYPTO := yes |
137 |
- SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto) |
138 |
- SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto) |
139 |
- endif |
140 |
-+endif |
141 |
- |
142 |
-+WANT_CURL ?= yes |
143 |
-+ifeq "$(WANT_CURL)" "yes" |
144 |
- ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes" |
145 |
- HAVE_CURL := yes |
146 |
- SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl) |
147 |
-@@ -133,12 +138,16 @@ |
148 |
- endif |
149 |
- endif |
150 |
- SYS_CURL_DEPS += -lpthread -lrt |
151 |
-+endif |
152 |
- |
153 |
-+WANT_X!! ?= yes |
154 |
-+ifeq "$(WANT_X11)" "yes" |
155 |
- ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes" |
156 |
- HAVE_X11 := yes |
157 |
- SYS_X11_CFLAGS := $(shell pkg-config --cflags x11 xext) |
158 |
- SYS_X11_LIBS := $(shell pkg-config --libs x11 xext) |
159 |
- endif |
160 |
-+endif |
161 |
- |
162 |
- ifeq "$(shell pkg-config --exists harfbuzz && echo yes)" "yes" |
163 |
- SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz) |
164 |
|
165 |
diff --git a/app-text/mupdf/files/mupdf-1.11-system-glfw.patch b/app-text/mupdf/files/mupdf-1.11-system-glfw.patch |
166 |
deleted file mode 100644 |
167 |
index 90189f9400b..00000000000 |
168 |
--- a/app-text/mupdf/files/mupdf-1.11-system-glfw.patch |
169 |
+++ /dev/null |
170 |
@@ -1,11 +0,0 @@ |
171 |
---- mupdf-1.11-source/Makerules |
172 |
-+++ mupdf-1.11-source/Makerules |
173 |
-@@ -158,6 +158,8 @@ |
174 |
- SYS_JBIG2DEC_LIBS := -ljbig2dec |
175 |
- SYS_LIBJPEG_LIBS := -ljpeg |
176 |
- SYS_ZLIB_LIBS := -lz |
177 |
-+SYS_GLFW_CFLAGS = $(shell pkg-config --cflags glfw3 gl) |
178 |
-+SYS_GLFW_LIBS = $(shell pkg-config --libs glfw3 gl) |
179 |
- |
180 |
- endif |
181 |
- |
182 |
|
183 |
diff --git a/app-text/mupdf/mupdf-1.11-r1.ebuild b/app-text/mupdf/mupdf-1.11-r1.ebuild |
184 |
deleted file mode 100644 |
185 |
index 0b2990cc8b2..00000000000 |
186 |
--- a/app-text/mupdf/mupdf-1.11-r1.ebuild |
187 |
+++ /dev/null |
188 |
@@ -1,152 +0,0 @@ |
189 |
-# Copyright 1999-2018 Gentoo Foundation |
190 |
-# Distributed under the terms of the GNU General Public License v2 |
191 |
- |
192 |
-EAPI=6 |
193 |
- |
194 |
-inherit flag-o-matic toolchain-funcs |
195 |
- |
196 |
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" |
197 |
-HOMEPAGE="https://mupdf.com/" |
198 |
-SRC_URI="https://mupdf.com/downloads/${P}-source.tar.gz" |
199 |
- |
200 |
-LICENSE="AGPL-3" |
201 |
-SLOT="0/${PV}" |
202 |
-KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
203 |
-IUSE="X +curl javascript libressl opengl +openssl static static-libs vanilla" |
204 |
- |
205 |
-LIB_DEPEND=" |
206 |
- !libressl? ( dev-libs/openssl:0[static-libs?] ) |
207 |
- libressl? ( dev-libs/libressl[static-libs?] ) |
208 |
- javascript? ( >=dev-lang/mujs-0_p20160504 ) |
209 |
- media-libs/freetype:2[static-libs?] |
210 |
- media-libs/harfbuzz[static-libs?] |
211 |
- media-libs/jbig2dec[static-libs?] |
212 |
- media-libs/libpng:0[static-libs?] |
213 |
- >=media-libs/openjpeg-2.1:2[static-libs?] |
214 |
- net-misc/curl[static-libs?] |
215 |
- virtual/jpeg[static-libs?] |
216 |
- X? ( x11-libs/libX11[static-libs?] |
217 |
- x11-libs/libXext[static-libs?] ) |
218 |
- opengl? ( >=media-libs/glfw-3.2 )" |
219 |
-RDEPEND="${LIB_DEPEND}" |
220 |
-DEPEND="${RDEPEND} |
221 |
- virtual/pkgconfig |
222 |
- static-libs? ( ${LIB_DEPEND} ) |
223 |
- static? ( ${LIB_DEPEND//?} |
224 |
- app-arch/bzip2[static-libs] |
225 |
- x11-libs/libXau[static-libs] |
226 |
- x11-libs/libXdmcp[static-libs] |
227 |
- x11-libs/libxcb[static-libs] )" |
228 |
- |
229 |
-REQUIRED_USE="opengl? ( X !static !static-libs )" |
230 |
- |
231 |
-S=${WORKDIR}/${P}-source |
232 |
- |
233 |
-PATCHES=( |
234 |
- "${FILESDIR}"/${PN}-1.11-CFLAGS.patch |
235 |
- "${FILESDIR}"/${PN}-1.9a-debug-build.patch |
236 |
- "${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch |
237 |
- "${FILESDIR}"/${PN}-1.11-openssl-curl-x11.patch |
238 |
- "${FILESDIR}"/${PN}-1.11-system-glfw.patch |
239 |
- "${FILESDIR}"/${PN}-1.11-CVE-2017-6060.patch |
240 |
-) |
241 |
- |
242 |
-src_prepare() { |
243 |
- default |
244 |
- use hppa && append-cflags -ffunction-sections |
245 |
- |
246 |
- rm -rf thirdparty || die |
247 |
- |
248 |
- if has_version ">=media-libs/openjpeg-2.1:2" ; then |
249 |
- # Remove a switch, which prevents using shared libraries for openjpeg2. |
250 |
- # See http://www.linuxfromscratch.org/blfs/view/cvs/pst/mupdf.html |
251 |
- sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c |
252 |
- fi |
253 |
- |
254 |
- use javascript || \ |
255 |
- sed -e '/* #define FZ_ENABLE_JS/ a\#define FZ_ENABLE_JS 0' \ |
256 |
- -i include/mupdf/fitz/config.h |
257 |
- |
258 |
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \ |
259 |
- -e "/^prefix=/s:=.*:=${EROOT}/usr:" \ |
260 |
- -i platform/debian/${PN}.pc || die |
261 |
- |
262 |
- use vanilla || eapply \ |
263 |
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch |
264 |
- |
265 |
- sed -e "1iOS = Linux" \ |
266 |
- -e "1iCC = $(tc-getCC)" \ |
267 |
- -e "1iLD = $(tc-getCC)" \ |
268 |
- -e "1iAR = $(tc-getAR)" \ |
269 |
- -e "1iverbose = yes" \ |
270 |
- -e "1ibuild = debug" \ |
271 |
- -e "1iprefix = ${ED}usr" \ |
272 |
- -e "1ilibdir = ${ED}usr/$(get_libdir)" \ |
273 |
- -e "1idocdir = ${ED}usr/share/doc/${PF}" \ |
274 |
- -e "1iWANT_X11 = $(usex X)" \ |
275 |
- -e "1iWANT_OPENSSL = $(usex openssl)" \ |
276 |
- -e "1iWANT_CURL = $(usex curl)" \ |
277 |
- -e "1iHAVE_MUJS = $(usex javascript)" \ |
278 |
- -e "1iMUJS_LIBS = $(usex javascript -lmujs '')" \ |
279 |
- -e "1iMUJS_CFLAGS =" \ |
280 |
- -e "1iHAVE_GLFW = $(usex opengl yes no)" \ |
281 |
- -i Makerules || die |
282 |
- |
283 |
- if use static-libs || use static ; then |
284 |
- cp -a "${S}" "${S}"-static || die |
285 |
- #add missing Libs.private for xcb and freetype |
286 |
- sed -e 's:\(pkg-config --libs\):\1 --static:' \ |
287 |
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \ |
288 |
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \ |
289 |
- -i "${S}"-static/Makerules || die |
290 |
- fi |
291 |
- |
292 |
- my_soname=libmupdf.so.${PV} |
293 |
- my_soname_js_none=libmupdf-js-none.so.${PV} |
294 |
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \ |
295 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \ |
296 |
- -e "/^MUPDF_LIB =/s:=.*:= \$(OUT)/${my_soname}:" \ |
297 |
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \ |
298 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \ |
299 |
- -e "/install/s: COPYING : :" \ |
300 |
- -i Makefile || die |
301 |
-} |
302 |
- |
303 |
-src_compile() { |
304 |
- emake XCFLAGS="-fpic" |
305 |
- use static-libs && \ |
306 |
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a |
307 |
- use static && \ |
308 |
- emake -C "${S}"-static XLIBS="-static" |
309 |
-} |
310 |
- |
311 |
-src_install() { |
312 |
- if use X ; then |
313 |
- domenu platform/debian/${PN}.desktop |
314 |
- doicon platform/debian/${PN}.xpm |
315 |
- else |
316 |
- rm docs/man/${PN}.1 |
317 |
- fi |
318 |
- |
319 |
- emake install |
320 |
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so |
321 |
- |
322 |
- use static-libs && \ |
323 |
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a |
324 |
- if use static ; then |
325 |
- dobin "${S}"-static/build/debug/mu{tool,draw} |
326 |
- use X && dobin "${S}"-static/build/debug/${PN}-x11 |
327 |
- fi |
328 |
- if use X ; then |
329 |
- if use opengl ; then |
330 |
- dosym ${PN}-gl /usr/bin/${PN} |
331 |
- einfo "mupdf symlink points to mupdf-gl (bug 616654)" |
332 |
- else |
333 |
- dosym ${PN}-x11 /usr/bin/${PN} |
334 |
- fi |
335 |
- fi |
336 |
- insinto /usr/$(get_libdir)/pkgconfig |
337 |
- doins platform/debian/${PN}.pc |
338 |
- |
339 |
- dodoc README docs/*.{txt,c} |
340 |
-} |
341 |
|
342 |
diff --git a/app-text/mupdf/mupdf-1.11-r2.ebuild b/app-text/mupdf/mupdf-1.11-r2.ebuild |
343 |
deleted file mode 100644 |
344 |
index da582f3a291..00000000000 |
345 |
--- a/app-text/mupdf/mupdf-1.11-r2.ebuild |
346 |
+++ /dev/null |
347 |
@@ -1,152 +0,0 @@ |
348 |
-# Copyright 1999-2018 Gentoo Foundation |
349 |
-# Distributed under the terms of the GNU General Public License v2 |
350 |
- |
351 |
-EAPI=6 |
352 |
- |
353 |
-inherit flag-o-matic toolchain-funcs |
354 |
- |
355 |
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" |
356 |
-HOMEPAGE="https://mupdf.com/" |
357 |
-SRC_URI="https://mupdf.com/downloads/${P}-source.tar.gz" |
358 |
- |
359 |
-LICENSE="AGPL-3" |
360 |
-SLOT="0/${PV}" |
361 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
362 |
-IUSE="X +curl javascript libressl opengl +openssl static static-libs vanilla" |
363 |
- |
364 |
-LIB_DEPEND=" |
365 |
- !libressl? ( dev-libs/openssl:0[static-libs?] ) |
366 |
- libressl? ( dev-libs/libressl[static-libs?] ) |
367 |
- javascript? ( >=dev-lang/mujs-0_p20160504 ) |
368 |
- media-libs/freetype:2[static-libs?] |
369 |
- media-libs/harfbuzz[static-libs?] |
370 |
- media-libs/jbig2dec[static-libs?] |
371 |
- media-libs/libpng:0[static-libs?] |
372 |
- >=media-libs/openjpeg-2.1:2[static-libs?] |
373 |
- net-misc/curl[static-libs?] |
374 |
- virtual/jpeg[static-libs?] |
375 |
- X? ( x11-libs/libX11[static-libs?] |
376 |
- x11-libs/libXext[static-libs?] ) |
377 |
- opengl? ( >=media-libs/glfw-3.2 )" |
378 |
-RDEPEND="${LIB_DEPEND}" |
379 |
-DEPEND="${RDEPEND} |
380 |
- virtual/pkgconfig |
381 |
- static-libs? ( ${LIB_DEPEND} ) |
382 |
- static? ( ${LIB_DEPEND//?} |
383 |
- app-arch/bzip2[static-libs] |
384 |
- x11-libs/libXau[static-libs] |
385 |
- x11-libs/libXdmcp[static-libs] |
386 |
- x11-libs/libxcb[static-libs] )" |
387 |
- |
388 |
-REQUIRED_USE="opengl? ( !static !static-libs )" |
389 |
- |
390 |
-S=${WORKDIR}/${P}-source |
391 |
- |
392 |
-PATCHES=( |
393 |
- "${FILESDIR}"/${PN}-1.11-CFLAGS.patch |
394 |
- "${FILESDIR}"/${PN}-1.9a-debug-build.patch |
395 |
- "${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch |
396 |
- "${FILESDIR}"/${PN}-1.11-openssl-curl-x11.patch |
397 |
- "${FILESDIR}"/${PN}-1.11-system-glfw.patch |
398 |
- "${FILESDIR}"/${PN}-1.11-CVE-2017-6060.patch |
399 |
- "${FILESDIR}"/${PN}-1.11-drop-libmupdfthird.patch |
400 |
-) |
401 |
- |
402 |
-src_prepare() { |
403 |
- default |
404 |
- use hppa && append-cflags -ffunction-sections |
405 |
- |
406 |
- rm -rf thirdparty || die |
407 |
- |
408 |
- if has_version ">=media-libs/openjpeg-2.1:2" ; then |
409 |
- # Remove a switch, which prevents using shared libraries for openjpeg2. |
410 |
- # See http://www.linuxfromscratch.org/blfs/view/cvs/pst/mupdf.html |
411 |
- sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c |
412 |
- fi |
413 |
- |
414 |
- use javascript || \ |
415 |
- sed -e '/* #define FZ_ENABLE_JS/ a\#define FZ_ENABLE_JS 0' \ |
416 |
- -i include/mupdf/fitz/config.h |
417 |
- |
418 |
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \ |
419 |
- -e "/^prefix=/s:=.*:=${EROOT}/usr:" \ |
420 |
- -i platform/debian/${PN}.pc || die |
421 |
- |
422 |
- use vanilla || eapply \ |
423 |
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch |
424 |
- |
425 |
- sed -e "1iOS = Linux" \ |
426 |
- -e "1iCC = $(tc-getCC)" \ |
427 |
- -e "1iLD = $(tc-getCC)" \ |
428 |
- -e "1iAR = $(tc-getAR)" \ |
429 |
- -e "1iverbose = yes" \ |
430 |
- -e "1ibuild = debug" \ |
431 |
- -e "1iprefix = ${ED}usr" \ |
432 |
- -e "1ilibdir = ${ED}usr/$(get_libdir)" \ |
433 |
- -e "1idocdir = ${ED}usr/share/doc/${PF}" \ |
434 |
- -e "1iWANT_X11 = $(usex X)" \ |
435 |
- -e "1iWANT_OPENSSL = $(usex openssl)" \ |
436 |
- -e "1iWANT_CURL = $(usex curl)" \ |
437 |
- -e "1iHAVE_MUJS = $(usex javascript)" \ |
438 |
- -e "1iMUJS_LIBS = $(usex javascript -lmujs '')" \ |
439 |
- -e "1iMUJS_CFLAGS =" \ |
440 |
- -e "1iHAVE_GLFW = $(usex opengl yes no)" \ |
441 |
- -i Makerules || die |
442 |
- |
443 |
- if use static-libs || use static ; then |
444 |
- cp -a "${S}" "${S}"-static || die |
445 |
- #add missing Libs.private for xcb and freetype |
446 |
- sed -e 's:\(pkg-config --libs\):\1 --static:' \ |
447 |
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \ |
448 |
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \ |
449 |
- -i "${S}"-static/Makerules || die |
450 |
- fi |
451 |
- |
452 |
- my_soname=libmupdf.so.${PV} |
453 |
- my_soname_js_none=libmupdf-js-none.so.${PV} |
454 |
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \ |
455 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \ |
456 |
- -e "/^MUPDF_LIB =/s:=.*:= \$(OUT)/${my_soname}:" \ |
457 |
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \ |
458 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \ |
459 |
- -e "/install/s: COPYING : :" \ |
460 |
- -i Makefile || die |
461 |
-} |
462 |
- |
463 |
-src_compile() { |
464 |
- emake XCFLAGS="-fpic" |
465 |
- use static-libs && \ |
466 |
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a |
467 |
- use static && \ |
468 |
- emake -C "${S}"-static XLIBS="-static" |
469 |
-} |
470 |
- |
471 |
-src_install() { |
472 |
- if use X || use opengl ; then |
473 |
- domenu platform/debian/${PN}.desktop |
474 |
- doicon platform/debian/${PN}.xpm |
475 |
- else |
476 |
- rm docs/man/${PN}.1 |
477 |
- fi |
478 |
- |
479 |
- emake install |
480 |
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so |
481 |
- |
482 |
- use static-libs && \ |
483 |
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a |
484 |
- if use static ; then |
485 |
- dobin "${S}"-static/build/debug/mu{tool,draw} |
486 |
- use X && dobin "${S}"-static/build/debug/${PN}-x11 |
487 |
- fi |
488 |
- if use opengl ; then |
489 |
- einfo "mupdf symlink points to mupdf-gl (bug 616654)" |
490 |
- dosym ${PN}-gl /usr/bin/${PN} |
491 |
- elif use X ; then |
492 |
- einfo "mupdf symlink points to mupdf-x11 (bug 616654)" |
493 |
- dosym ${PN}-x11 /usr/bin/${PN} |
494 |
- fi |
495 |
- insinto /usr/$(get_libdir)/pkgconfig |
496 |
- doins platform/debian/${PN}.pc |
497 |
- |
498 |
- dodoc README CHANGES docs/*.{txt,c} |
499 |
-} |
500 |
|
501 |
diff --git a/app-text/mupdf/mupdf-1.12.0-r2.ebuild b/app-text/mupdf/mupdf-1.12.0-r2.ebuild |
502 |
deleted file mode 100644 |
503 |
index 8810e2deaf0..00000000000 |
504 |
--- a/app-text/mupdf/mupdf-1.12.0-r2.ebuild |
505 |
+++ /dev/null |
506 |
@@ -1,166 +0,0 @@ |
507 |
-# Copyright 1999-2018 Gentoo Foundation |
508 |
-# Distributed under the terms of the GNU General Public License v2 |
509 |
- |
510 |
-EAPI=6 |
511 |
- |
512 |
-inherit flag-o-matic toolchain-funcs xdg |
513 |
- |
514 |
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" |
515 |
-HOMEPAGE="https://mupdf.com/" |
516 |
-SRC_URI="https://mupdf.com/downloads/${P}-source.tar.gz" |
517 |
- |
518 |
-LICENSE="AGPL-3" |
519 |
-SLOT="0/${PV}" |
520 |
-KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
521 |
-IUSE="X +curl javascript lcms libressl opengl +openssl static static-libs vanilla" |
522 |
- |
523 |
-LIB_DEPEND=" |
524 |
- !libressl? ( dev-libs/openssl:0=[static-libs?] ) |
525 |
- libressl? ( dev-libs/libressl:0=[static-libs?] ) |
526 |
- javascript? ( >=dev-lang/mujs-0_p20160504 ) |
527 |
- media-libs/freetype:2=[static-libs?] |
528 |
- media-libs/harfbuzz:=[static-libs?] |
529 |
- media-libs/jbig2dec:=[static-libs?] |
530 |
- media-libs/libpng:0=[static-libs?] |
531 |
- >=media-libs/openjpeg-2.1:2=[static-libs?] |
532 |
- net-misc/curl[static-libs?] |
533 |
- virtual/jpeg[static-libs?] |
534 |
- X? ( x11-libs/libX11[static-libs?] |
535 |
- x11-libs/libXext[static-libs?] ) |
536 |
- opengl? ( >=media-libs/freeglut-3.0.0:= )" |
537 |
-RDEPEND="${LIB_DEPEND}" |
538 |
-DEPEND="${RDEPEND} |
539 |
- virtual/pkgconfig |
540 |
- static-libs? ( ${LIB_DEPEND} ) |
541 |
- static? ( ${LIB_DEPEND//?} |
542 |
- app-arch/bzip2[static-libs] |
543 |
- x11-libs/libXau[static-libs] |
544 |
- x11-libs/libXdmcp[static-libs] |
545 |
- x11-libs/libxcb[static-libs] )" |
546 |
- |
547 |
-REQUIRED_USE="opengl? ( !static !static-libs )" |
548 |
- |
549 |
-S=${WORKDIR}/${P}-source |
550 |
- |
551 |
-PATCHES=( |
552 |
- "${FILESDIR}"/${PN}-1.12-CFLAGS.patch |
553 |
- "${FILESDIR}"/${PN}-1.9a-debug-build.patch |
554 |
- "${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch |
555 |
- "${FILESDIR}"/${PN}-1.11-openssl-curl-x11-r1.patch |
556 |
- "${FILESDIR}"/${PN}-1.11-drop-libmupdfthird.patch |
557 |
-) |
558 |
- |
559 |
-src_prepare() { |
560 |
- xdg_src_prepare |
561 |
- use hppa && append-cflags -ffunction-sections |
562 |
- |
563 |
- # specialized lcms2, keep it if wanted inside lubmupdfthird |
564 |
- if ! use lcms ; then |
565 |
- rm -rf thirdparty/lcms2 |
566 |
- fi |
567 |
- |
568 |
- rm -rf thirdparty/{README,curl,freeglut,freetype,harfbuzz,jbig2dec,libjpeg,mujs,openjpeg,zlib} || die |
569 |
- for my_third in thirdparty/* ; do |
570 |
- ewarn "Bundled thirdparty lib: ${my_third}" |
571 |
- done |
572 |
- |
573 |
- if has_version ">=media-libs/openjpeg-2.1:2" ; then |
574 |
- # Remove a switch, which prevents using shared libraries for openjpeg2. |
575 |
- # See http://www.linuxfromscratch.org/blfs/view/cvs/pst/mupdf.html |
576 |
- sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c |
577 |
- fi |
578 |
- |
579 |
- use javascript || \ |
580 |
- sed -e '/* #define FZ_ENABLE_JS/ a\#define FZ_ENABLE_JS 0' \ |
581 |
- -i include/mupdf/fitz/config.h |
582 |
- |
583 |
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \ |
584 |
- -e "/^prefix=/s:=.*:=${EROOT}/usr:" \ |
585 |
- -i platform/debian/${PN}.pc || die |
586 |
- |
587 |
- use vanilla || eapply \ |
588 |
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch |
589 |
- |
590 |
- sed -e "1iOS = Linux" \ |
591 |
- -e "1iCC = $(tc-getCC)" \ |
592 |
- -e "1iLD = $(tc-getCC)" \ |
593 |
- -e "1iAR = $(tc-getAR)" \ |
594 |
- -e "1iverbose = yes" \ |
595 |
- -e "1ibuild = debug" \ |
596 |
- -e "1iprefix = ${ED}usr" \ |
597 |
- -e "1ilibdir = ${ED}usr/$(get_libdir)" \ |
598 |
- -e "1idocdir = ${ED}usr/share/doc/${PF}" \ |
599 |
- -i Makerules || die |
600 |
- |
601 |
- if use static-libs || use static ; then |
602 |
- cp -a "${S}" "${S}"-static || die |
603 |
- #add missing Libs.private for xcb and freetype |
604 |
- sed -e 's:\(pkg-config --libs\):\1 --static:' \ |
605 |
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \ |
606 |
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \ |
607 |
- -i "${S}"-static/Makerules || die |
608 |
- fi |
609 |
- |
610 |
- my_soname=libmupdf.so.${PV} |
611 |
- my_soname_js_none=libmupdf-js-none.so.${PV} |
612 |
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \ |
613 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \ |
614 |
- -e "/^MUPDF_LIB =/s:=.*:= \$(OUT)/${my_soname}:" \ |
615 |
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \ |
616 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \ |
617 |
- -e "/install/s: COPYING : :" \ |
618 |
- -i Makefile || die |
619 |
-} |
620 |
- |
621 |
-src_compile() { |
622 |
- use lcms && emake XCFLAGS="-fpic" third |
623 |
- emake XCFLAGS="-fpic" \ |
624 |
- HAVE_GLUT=$(usex opengl yes no) \ |
625 |
- HAVE_MUJS=$(usex javascript) \ |
626 |
- MUJS_LIBS=$(usex javascript -lmujs '') \ |
627 |
- WANT_CURL=$(usex curl) \ |
628 |
- WANT_OPENSSL=$(usex openssl) \ |
629 |
- WANT_X11=$(usex X) |
630 |
- |
631 |
- use static-libs && \ |
632 |
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a |
633 |
- use static && \ |
634 |
- emake -C "${S}"-static XLIBS="-static" |
635 |
-} |
636 |
- |
637 |
-src_install() { |
638 |
- if use X || use opengl ; then |
639 |
- domenu platform/debian/${PN}.desktop |
640 |
- doicon platform/debian/${PN}.xpm |
641 |
- else |
642 |
- rm docs/man/${PN}.1 |
643 |
- fi |
644 |
- |
645 |
- emake install \ |
646 |
- HAVE_GLUT=$(usex opengl yes no) \ |
647 |
- HAVE_MUJS=$(usex javascript) \ |
648 |
- MUJS_LIBS=$(usex javascript -lmujs '') \ |
649 |
- WANT_CURL=$(usex curl) \ |
650 |
- WANT_OPENSSL=$(usex openssl) \ |
651 |
- WANT_X11=$(usex X) |
652 |
- |
653 |
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so |
654 |
- |
655 |
- use static-libs && \ |
656 |
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a |
657 |
- if use static ; then |
658 |
- dobin "${S}"-static/build/debug/mu{tool,draw} |
659 |
- use X && dobin "${S}"-static/build/debug/${PN}-x11 |
660 |
- fi |
661 |
- if use opengl ; then |
662 |
- einfo "mupdf symlink points to mupdf-gl (bug 616654)" |
663 |
- dosym ${PN}-gl /usr/bin/${PN} |
664 |
- elif use X ; then |
665 |
- einfo "mupdf symlink points to mupdf-x11 (bug 616654)" |
666 |
- dosym ${PN}-x11 /usr/bin/${PN} |
667 |
- fi |
668 |
- insinto /usr/$(get_libdir)/pkgconfig |
669 |
- doins platform/debian/${PN}.pc |
670 |
- |
671 |
- dodoc README CHANGES CONTRIBUTORS |
672 |
-} |
673 |
|
674 |
diff --git a/app-text/mupdf/mupdf-1.12.0.ebuild b/app-text/mupdf/mupdf-1.12.0.ebuild |
675 |
deleted file mode 100644 |
676 |
index 9f1100e51cb..00000000000 |
677 |
--- a/app-text/mupdf/mupdf-1.12.0.ebuild |
678 |
+++ /dev/null |
679 |
@@ -1,160 +0,0 @@ |
680 |
-# Copyright 1999-2018 Gentoo Foundation |
681 |
-# Distributed under the terms of the GNU General Public License v2 |
682 |
- |
683 |
-EAPI=6 |
684 |
- |
685 |
-inherit flag-o-matic toolchain-funcs xdg |
686 |
- |
687 |
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" |
688 |
-HOMEPAGE="https://mupdf.com/" |
689 |
-SRC_URI="https://mupdf.com/downloads/${P}-source.tar.gz" |
690 |
- |
691 |
-LICENSE="AGPL-3" |
692 |
-SLOT="0/${PV}" |
693 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
694 |
-IUSE="X +curl javascript lcms libressl opengl +openssl static static-libs vanilla" |
695 |
- |
696 |
-LIB_DEPEND=" |
697 |
- !libressl? ( dev-libs/openssl:0[static-libs?] ) |
698 |
- libressl? ( dev-libs/libressl[static-libs?] ) |
699 |
- javascript? ( >=dev-lang/mujs-0_p20160504 ) |
700 |
- media-libs/freetype:2[static-libs?] |
701 |
- media-libs/harfbuzz[static-libs?] |
702 |
- media-libs/jbig2dec[static-libs?] |
703 |
- media-libs/libpng:0[static-libs?] |
704 |
- >=media-libs/openjpeg-2.1:2[static-libs?] |
705 |
- net-misc/curl[static-libs?] |
706 |
- virtual/jpeg[static-libs?] |
707 |
- X? ( x11-libs/libX11[static-libs?] |
708 |
- x11-libs/libXext[static-libs?] ) |
709 |
- opengl? ( >=media-libs/glfw-3.2 )" |
710 |
-RDEPEND="${LIB_DEPEND}" |
711 |
-DEPEND="${RDEPEND} |
712 |
- virtual/pkgconfig |
713 |
- static-libs? ( ${LIB_DEPEND} ) |
714 |
- static? ( ${LIB_DEPEND//?} |
715 |
- app-arch/bzip2[static-libs] |
716 |
- x11-libs/libXau[static-libs] |
717 |
- x11-libs/libXdmcp[static-libs] |
718 |
- x11-libs/libxcb[static-libs] )" |
719 |
- |
720 |
-REQUIRED_USE="opengl? ( !static !static-libs )" |
721 |
- |
722 |
-S=${WORKDIR}/${P}-source |
723 |
- |
724 |
-PATCHES=( |
725 |
- "${FILESDIR}"/${PN}-1.12-CFLAGS.patch |
726 |
- "${FILESDIR}"/${PN}-1.9a-debug-build.patch |
727 |
- "${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch |
728 |
- "${FILESDIR}"/${PN}-1.11-openssl-curl-x11.patch |
729 |
- "${FILESDIR}"/${PN}-1.11-system-glfw.patch |
730 |
- "${FILESDIR}"/${PN}-1.11-drop-libmupdfthird.patch |
731 |
-) |
732 |
- |
733 |
-src_prepare() { |
734 |
- xdg_src_prepare |
735 |
- use hppa && append-cflags -ffunction-sections |
736 |
- |
737 |
- # specialized lcms2, keep it if wanted inside lubmupdfthird |
738 |
- if ! use lcms ; then |
739 |
- rm -rf thirdparty/lcms2 |
740 |
- fi |
741 |
- |
742 |
- rm -rf thirdparty/{README,curl,freeglut,freetype,harfbuzz,jbig2dec,libjpeg,mujs,openjpeg,zlib} || die |
743 |
- for my_third in thirdparty/* ; do |
744 |
- ewarn "Bundled thirdparty lib: ${my_third}" |
745 |
- done |
746 |
- |
747 |
- if has_version ">=media-libs/openjpeg-2.1:2" ; then |
748 |
- # Remove a switch, which prevents using shared libraries for openjpeg2. |
749 |
- # See http://www.linuxfromscratch.org/blfs/view/cvs/pst/mupdf.html |
750 |
- sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c |
751 |
- fi |
752 |
- |
753 |
- use javascript || \ |
754 |
- sed -e '/* #define FZ_ENABLE_JS/ a\#define FZ_ENABLE_JS 0' \ |
755 |
- -i include/mupdf/fitz/config.h |
756 |
- |
757 |
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \ |
758 |
- -e "/^prefix=/s:=.*:=${EROOT}/usr:" \ |
759 |
- -i platform/debian/${PN}.pc || die |
760 |
- |
761 |
- use vanilla || eapply \ |
762 |
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch |
763 |
- |
764 |
- sed -e "1iOS = Linux" \ |
765 |
- -e "1iCC = $(tc-getCC)" \ |
766 |
- -e "1iLD = $(tc-getCC)" \ |
767 |
- -e "1iAR = $(tc-getAR)" \ |
768 |
- -e "1iverbose = yes" \ |
769 |
- -e "1ibuild = debug" \ |
770 |
- -e "1iprefix = ${ED}usr" \ |
771 |
- -e "1ilibdir = ${ED}usr/$(get_libdir)" \ |
772 |
- -e "1idocdir = ${ED}usr/share/doc/${PF}" \ |
773 |
- -e "1iWANT_X11 = $(usex X)" \ |
774 |
- -e "1iWANT_OPENSSL = $(usex openssl)" \ |
775 |
- -e "1iWANT_CURL = $(usex curl)" \ |
776 |
- -e "1iHAVE_MUJS = $(usex javascript)" \ |
777 |
- -e "1iMUJS_LIBS = $(usex javascript -lmujs '')" \ |
778 |
- -e "1iMUJS_CFLAGS =" \ |
779 |
- -e "1iHAVE_GLFW = $(usex opengl yes no)" \ |
780 |
- -i Makerules || die |
781 |
- |
782 |
- if use static-libs || use static ; then |
783 |
- cp -a "${S}" "${S}"-static || die |
784 |
- #add missing Libs.private for xcb and freetype |
785 |
- sed -e 's:\(pkg-config --libs\):\1 --static:' \ |
786 |
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \ |
787 |
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \ |
788 |
- -i "${S}"-static/Makerules || die |
789 |
- fi |
790 |
- |
791 |
- my_soname=libmupdf.so.${PV} |
792 |
- my_soname_js_none=libmupdf-js-none.so.${PV} |
793 |
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \ |
794 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \ |
795 |
- -e "/^MUPDF_LIB =/s:=.*:= \$(OUT)/${my_soname}:" \ |
796 |
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \ |
797 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \ |
798 |
- -e "/install/s: COPYING : :" \ |
799 |
- -i Makefile || die |
800 |
-} |
801 |
- |
802 |
-src_compile() { |
803 |
- use lcms && emake XCFLAGS="-fpic" third |
804 |
- emake XCFLAGS="-fpic" |
805 |
- use static-libs && \ |
806 |
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a |
807 |
- use static && \ |
808 |
- emake -C "${S}"-static XLIBS="-static" |
809 |
-} |
810 |
- |
811 |
-src_install() { |
812 |
- if use X || use opengl ; then |
813 |
- domenu platform/debian/${PN}.desktop |
814 |
- doicon platform/debian/${PN}.xpm |
815 |
- else |
816 |
- rm docs/man/${PN}.1 |
817 |
- fi |
818 |
- |
819 |
- emake install |
820 |
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so |
821 |
- |
822 |
- use static-libs && \ |
823 |
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a |
824 |
- if use static ; then |
825 |
- dobin "${S}"-static/build/debug/mu{tool,draw} |
826 |
- use X && dobin "${S}"-static/build/debug/${PN}-x11 |
827 |
- fi |
828 |
- if use opengl ; then |
829 |
- einfo "mupdf symlink points to mupdf-gl (bug 616654)" |
830 |
- dosym ${PN}-gl /usr/bin/${PN} |
831 |
- elif use X ; then |
832 |
- einfo "mupdf symlink points to mupdf-x11 (bug 616654)" |
833 |
- dosym ${PN}-x11 /usr/bin/${PN} |
834 |
- fi |
835 |
- insinto /usr/$(get_libdir)/pkgconfig |
836 |
- doins platform/debian/${PN}.pc |
837 |
- |
838 |
- dodoc README CHANGES CONTRIBUTORS |
839 |
-} |