git: 1aaa04ca5ddc - main - graphics/xpdf4: Install desktop icons
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jan 2022 13:58:02 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1aaa04ca5ddc38c0d4a28647b980489469a0d5a4
commit 1aaa04ca5ddc38c0d4a28647b980489469a0d5a4
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-01-21 13:06:15 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-01-22 13:57:10 +0000
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
---
graphics/xpdf4/Makefile | 5 +++++
graphics/xpdf4/pkg-plist | 2 ++
2 files changed, 7 insertions(+)
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