aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2022-01-21 13:06:15 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2022-01-22 13:57:10 +0000
commit1aaa04ca5ddc38c0d4a28647b980489469a0d5a4 (patch)
treed2cc76fbaf74ed34557ac980efa4e5e6810323cf
parent38a7e23fd5ba96cd2fc0e372f74e82c1eabefb57 (diff)
downloadports-1aaa04ca5ddc38c0d4a28647b980489469a0d5a4.tar.gz
ports-1aaa04ca5ddc38c0d4a28647b980489469a0d5a4.zip
graphics/xpdf4: Install desktop icons
This patch installs the missing Xpdf icons. With this patch applications like Xfce Application Finder display the Xpdf entry with an appropriate icon. PR: 261376 Reviewed by: cy Approved by: cy (maintainer) Differential Revision: https://reviews.freebsd.org/D33984
-rw-r--r--graphics/xpdf4/Makefile5
-rw-r--r--graphics/xpdf4/pkg-plist2
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/xpdf4/Makefile b/graphics/xpdf4/Makefile
index bd81dd1a16be..36bd84d97e7e 100644
--- a/graphics/xpdf4/Makefile
+++ b/graphics/xpdf4/Makefile
@@ -1,5 +1,6 @@
PORTNAME= xpdf
PORTVERSION= 4.03
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics print
MASTER_SITES= https://dl.xpdfreader.com/
@@ -70,5 +71,9 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf
${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256
+ ${INSTALL_DATA} ${WRKSRC}/xpdf-qt/xpdf-icon.ico ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/xpdf.png
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable
+ ${INSTALL_DATA} ${WRKSRC}/xpdf-qt/xpdf-icon.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/xpdf.svg
.include <bsd.port.mk>
diff --git a/graphics/xpdf4/pkg-plist b/graphics/xpdf4/pkg-plist
index e6cd3e15dd75..7eee2ae85bc6 100644
--- a/graphics/xpdf4/pkg-plist
+++ b/graphics/xpdf4/pkg-plist
@@ -10,6 +10,8 @@ libexec/xpdf/pdftotext
%%GUI%%libexec/xpdf/xpdf
%%GUI%%bin/xpdf
%%GUI%%%%DESKTOPDIR%%/xpdf.desktop
+%%GUI%%share/icons/hicolor/256x256/xpdf.png
+%%GUI%%share/icons/hicolor/scalable/xpdf.svg
etc/man.d/xpdf.conf
%%DATADIR%%/man/man1/pdfdetach.1.gz
%%DATADIR%%/man/man1/pdffonts.1.gz