Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/zathura-pdf-mupdf/
Date: Sun, 27 Oct 2019 17:55:01
Message-Id: 1572198894.f943f3366f195f77db1cbf7949e4ad289bddd0ad.zlogene@gentoo
1 commit: f943f3366f195f77db1cbf7949e4ad289bddd0ad
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 27 14:27:01 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 27 17:54:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f943f336
7
8 app-text/zathura-pdf-mupdf: make patch conditional
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 .../zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild | 18 +++++++++++++++---
14 1 file changed, 15 insertions(+), 3 deletions(-)
15
16 diff --git a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild
17 index ec8c60cf28e..fa515bf718e 100644
18 --- a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild
19 +++ b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=7
23
24 -inherit meson
25 +inherit meson xdg-utils
26
27 if [[ ${PV} == *9999 ]]; then
28 inherit git-r3
29 @@ -20,7 +20,7 @@ HOMEPAGE="https://pwmt.org/projects/zathura-pdf-mupdf/"
30 LICENSE="ZLIB"
31 SLOT="0"
32
33 -DEPEND="app-text/mupdf
34 +DEPEND="app-text/mupdf:=
35 >=app-text/zathura-0.3.9
36 dev-libs/girara
37 dev-libs/glib:2
38 @@ -35,6 +35,18 @@ BDEPEND="virtual/pkgconfig"
39
40 src_prepare() {
41 sed -i -e '/mupdfthird/d' meson.build || die "sed failed"
42 - eapply "${FILESDIR}"/${PV}-compile-fix.patch
43 +
44 + if has_version '<app-text/mupdf-1.16.1'; then
45 + eapply "${FILESDIR}"/${PV}-compile-fix.patch
46 + fi
47 +
48 default
49 }
50 +
51 +pkg_postinst() {
52 + xdg_desktop_database_update
53 +}
54 +
55 +pkg_postrm() {
56 + xdg_desktop_database_update
57 +}