summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Rösner <rndxelement@protonmail.com>2022-11-28 21:18:46 +0100
committerPacho Ramos <pacho@gentoo.org>2022-12-04 15:49:21 +0100
commit68a51347c5983bdddb0f1c8a5f748528e8e9996b (patch)
tree3526a4fb73ea0fdeaff59e34c50750b02eff8db0 /app-text/mupdf
parentx11-terms/xterm: Use higher quality icons (diff)
downloadgentoo-68a51347c5983bdddb0f1c8a5f748528e8e9996b.tar.gz
gentoo-68a51347c5983bdddb0f1c8a5f748528e8e9996b.tar.bz2
gentoo-68a51347c5983bdddb0f1c8a5f748528e8e9996b.zip
app-text/mupdf: add high resolution icon
As pointed out by <pacho@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@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/28467 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'app-text/mupdf')
-rw-r--r--app-text/mupdf/files/mupdf-1.21.0-add-desktop-pc-files.patch33
-rw-r--r--app-text/mupdf/mupdf-1.21.0.ebuild4
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