summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-10-27 17:27:01 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-10-27 20:54:54 +0300
commitf943f3366f195f77db1cbf7949e4ad289bddd0ad (patch)
tree2e232dbad8b54a2a03c16174e6c9d31e8952affd /app-text/zathura-pdf-mupdf
parentsys-kernel/git-sources: Linux patch 5.4-rc5 (diff)
downloadgentoo-f943f3366f195f77db1cbf7949e4ad289bddd0ad.tar.gz
gentoo-f943f3366f195f77db1cbf7949e4ad289bddd0ad.tar.bz2
gentoo-f943f3366f195f77db1cbf7949e4ad289bddd0ad.zip
app-text/zathura-pdf-mupdf: make patch conditional
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'app-text/zathura-pdf-mupdf')
-rw-r--r--app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild18
1 files changed, 15 insertions, 3 deletions
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
index ec8c60cf28ef..fa515bf718e6 100644
--- 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
@@ -3,7 +3,7 @@
EAPI=7
-inherit meson
+inherit meson xdg-utils
if [[ ${PV} == *9999 ]]; then
inherit git-r3
@@ -20,7 +20,7 @@ HOMEPAGE="https://pwmt.org/projects/zathura-pdf-mupdf/"
LICENSE="ZLIB"
SLOT="0"
-DEPEND="app-text/mupdf
+DEPEND="app-text/mupdf:=
>=app-text/zathura-0.3.9
dev-libs/girara
dev-libs/glib:2
@@ -35,6 +35,18 @@ BDEPEND="virtual/pkgconfig"
src_prepare() {
sed -i -e '/mupdfthird/d' meson.build || die "sed failed"
- eapply "${FILESDIR}"/${PV}-compile-fix.patch
+
+ if has_version '<app-text/mupdf-1.16.1'; then
+ eapply "${FILESDIR}"/${PV}-compile-fix.patch
+ fi
+
default
}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}