pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xpopple: Update to git commit 983483136e61e41dda4fd370dd85166152e45714



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Wed Oct 14 12:51:06 2026 +0200
Changeset:	22bfdaa27f618016c24135e6f7fa6e766cd30676

Modified Files:
	xpopple/Makefile
	xpopple/PLIST
Added Files:
	xpopple/files/xpdf.desktop

Log Message:
xpopple: Update to git commit 983483136e61e41dda4fd370dd85166152e45714

- Add XDG desktop file and Icon

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=22bfdaa27f618016c24135e6f7fa6e766cd30676

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xpopple/Makefile           | 13 ++++++++++---
 xpopple/PLIST              |  2 ++
 xpopple/files/xpdf.desktop | 15 +++++++++++++++
 3 files changed, 27 insertions(+), 3 deletions(-)

diffs:
diff --git a/xpopple/Makefile b/xpopple/Makefile
index 7c5cae459c..24363243aa 100644
--- a/xpopple/Makefile
+++ b/xpopple/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	xpopple-3.04.0
 CATEGORIES=	print
 GIT_REPO=	http://offog.org/git/xpopple.git
-GIT_REVISION=	f110e3e00731011dfb6487e33c23f93ed77397c4
+GIT_REVISION=	983483136e61e41dda4fd370dd85166152e45714
 
 MAINTAINER=	micha%NetBSD.org@localhost
 HOMEPAGE=	https://offog.org/code/xpopple/
@@ -31,7 +31,8 @@ DEPENDS+=	urw-fonts-[0-9]*:../../fonts/urw-fonts
 PKG_SYSCONFSUBDIR=	xpdf
 EGDIR=			${PREFIX}/share/examples/xpdf
 CONF_FILES=		${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
-INSTALLATION_DIRS=	${EGDIR}
+INSTALLATION_DIRS=	${EGDIR} ${PREFIX}/share/applications \
+				${PREFIX}/share/icons/hicolor/48x48/apps
 
 SUBST_CLASSES+=		paths
 SUBST_STAGE.paths=	pre-configure
@@ -46,12 +47,18 @@ pre-configure:
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc \
 		${DESTDIR}${EGDIR}/xpdfrc
+	${INSTALL_DATA} ${FILESDIR}/xpdf.desktop \
+		${DESTDIR}${PREFIX}/share/applications/xpdf.desktop
+	${INSTALL_DATA} ${WRKSRC}/xpdf/xpdfIcon.xpm \
+		${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/xpdf.xpm
 
 .include "../../mk/motif.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
-BUILDLINK_API_DEPENDS.poppler+=	poppler>=24.03.0
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+BUILDLINK_API_DEPENDS.poppler+=	poppler>=25.08.0
 .include "../../print/poppler/buildlink3.mk"
 .include "../../print/poppler-includes/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../x11/libXt/buildlink3.mk"
 
diff --git a/xpopple/PLIST b/xpopple/PLIST
index 6c07d31d67..fb08ea8e6c 100644
--- a/xpopple/PLIST
+++ b/xpopple/PLIST
@@ -2,4 +2,6 @@
 bin/xpdf
 man/man1/xpdf.1
 man/man5/xpdfrc.5
+share/applications/xpdf.desktop
 share/examples/xpdf/xpdfrc
+share/icons/hicolor/48x48/apps/xpdf.xpm
diff --git a/xpopple/files/xpdf.desktop b/xpopple/files/xpdf.desktop
new file mode 100644
index 0000000000..abee4bd63d
--- /dev/null
+++ b/xpopple/files/xpdf.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+# Conformant to desktop-entry-spec-1.5
+Version=1.5
+Type=Application
+Name=xpdf
+GenericName=PDF viewer
+Comment=Based on Motif and Poppler
+Exec=xpdf
+Terminal=false
+DBusActivatable=false
+Keywords=PDF;
+# Conformant to menu-spec-1.1
+Categories=Office;Viewer;
+# Conformant to icon-theme-spec-0.11
+Icon=xpdf


Home | Main Index | Thread Index | Old Index