commit: 68a51347c5983bdddb0f1c8a5f748528e8e9996b Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com> AuthorDate: Mon Nov 28 20:18:46 2022 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Dec 4 14:49:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68a51347
app-text/mupdf: add high resolution icon As pointed out by <pacho <AT> gentoo.org> a high resolution icon for MuPDF is available at docs/logo. Closes: https://bugs.gentoo.org/882701 Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/28467 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> .../files/mupdf-1.21.0-add-desktop-pc-files.patch | 33 ++++++++++++++++++++++ app-text/mupdf/mupdf-1.21.0.ebuild | 4 +-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/app-text/mupdf/files/mupdf-1.21.0-add-desktop-pc-files.patch b/app-text/mupdf/files/mupdf-1.21.0-add-desktop-pc-files.patch new file mode 100644 index 000000000000..4d449a2fec15 --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.21.0-add-desktop-pc-files.patch @@ -0,0 +1,33 @@ +--- /dev/null ++++ ./platform/debian/mupdf.desktop +@@ -0,0 +1,15 @@ ++[Desktop Entry] ++Name=MuPDF ++GenericName=PDF file viewer ++Exec=mupdf %f ++TryExec=mupdf ++Icon=new-mupdf-icon ++Terminal=false ++Type=Application ++MimeType=application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;image/jpeg;image/pjpeg;image/png;image/tiff;image/x-tiff; ++Categories=Viewer;Graphics; ++Actions=View; ++ ++[Desktop Action View] ++Name=View with mupdf ++Exec=mupdf %f +--- /dev/null ++++ ./platform/debian/mupdf.pc +@@ -0,0 +1,12 @@ ++prefix=/usr ++exec_prefix=${prefix} ++libdir=${exec_prefix}/lib ++includedir=${prefix}/include ++ ++Name: mupdf ++Description: Library for rendering PDF documents ++Requires: freetype2 libopenjp2 libcrypto ++Version: 0.5.0 ++Libs: -L${libdir} -lmupdf ++Libs.private: -lmupdf-js-none ++Cflags: -I${includedir} diff --git a/app-text/mupdf/mupdf-1.21.0.ebuild b/app-text/mupdf/mupdf-1.21.0.ebuild index 0eaa99a07eba..c2d55d2bd989 100644 --- a/app-text/mupdf/mupdf-1.21.0.ebuild +++ b/app-text/mupdf/mupdf-1.21.0.ebuild @@ -46,7 +46,7 @@ BDEPEND="X? ( x11-base/xorg-proto ) PATCHES=( "${FILESDIR}"/${PN}-1.15-CFLAGS.patch "${FILESDIR}"/${PN}-1.19.0-Makefile.patch - "${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch + "${FILESDIR}"/${P}-add-desktop-pc-files.patch "${FILESDIR}"/${PN}-1.19.0-darwin.patch # See bugs #662352 "${FILESDIR}"/${PN}-1.15-openssl-x11.patch @@ -126,7 +126,7 @@ src_compile() { src_install() { if use opengl || use X ; then domenu platform/debian/${PN}.desktop - doicon platform/debian/${PN}.xpm + doicon -s scalable docs/logo/new-${PN}-icon.svg else rm docs/man/${PN}.1 || die "Failed to remove man page in src_install()" fi
