Add xpdf.desktop files to both xpdf ports so that it is possible to set

xpdf to be the default PDF viewer via xdg-mime.

PR:		227627
Submitted by:	0mp@
This commit is contained in:
Cy Schubert 2018-04-20 01:54:02 +00:00
parent d06281fc0f
commit b4aef4b80b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467809
6 changed files with 37 additions and 3 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= xpdf
PORTVERSION= 3.04
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= graphics print
MASTER_SITES= http://mirrors.rit.edu/zi/ \
ftp://ftp.foolabs.com/pub/xpdf/ \
@ -54,7 +54,8 @@ CONFIGURE_ARGS+= --enable-a4-paper
.endif
X11_CONFIGURE_WITH= x
X11_USES= motif
X11_USES= desktop-file-utils motif
X11_PLIST_SUB= DESKTOPDIR=${DESKTOPDIR}
post-patch:
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \
@ -70,4 +71,7 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf
post-install-X11-on:
${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=xpdf
GenericName=PDF viewer
Comment=Display PDF files
Exec=xpdf %f
Icon=xpdf
Terminal=false
Type=Application
MimeType=application/pdf;
Categories=Viewer;Graphics;
Keywords=Viewer;Graphics;

View File

@ -9,6 +9,7 @@ libexec/xpdf/pdftops
libexec/xpdf/pdftotext
%%X11%%libexec/xpdf/xpdf
%%X11%%bin/xpdf
%%X11%%%%DESKTOPDIR%%/xpdf.desktop
etc/man.d/xpdf.conf
%%DATADIR%%/man/man1/pdfdetach.1.gz
%%DATADIR%%/man/man1/pdffonts.1.gz

View File

@ -2,6 +2,7 @@
PORTNAME= xpdf
PORTVERSION= 4.00
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics print
MASTER_SITES= https://xpdfreader-dl.s3.amazonaws.com/
@ -45,10 +46,12 @@ GUI_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=TRUE
GUI_DESC= QT5 interface
GUI_CMAKE_ARGS+= -DNO_TEXT_SELECT:BOOL=OFF
GUI_USE= QT5=buildtools_build,qmake_build,concurrent,core,gui,widgets,printsupport,svg
GUI_PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}"
GUI_USES= desktop-file-utils
PRINT_CMAKE_ON= -DXPDFWIDGET_PRINTING:BOOL=ON -DCUPS:BOOL=ON
PRINT_CMAKE_OFF= -DXPDFWIDGET_PRINTING:BOOL=OFF -DCUPS:BOOL=OFF
PRINT_DESC= Print support (CUPS dependency)
PRINT_DESC= Print support (CUPS dependency)
PRINT_LDFLAGS= -L${LOCALBASE}/lib
PRINT_LIB_DEPENDS= libcups.so:print/cups
@ -60,4 +63,7 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf
post-install-GUI-on:
${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=xpdf
GenericName=PDF viewer
Comment=Display PDF files
Exec=xpdf %f
Icon=xpdf
Terminal=false
Type=Application
MimeType=application/pdf;
Categories=Viewer;Graphics;
Keywords=Viewer;Graphics;

View File

@ -9,6 +9,7 @@ libexec/xpdf/pdftops
libexec/xpdf/pdftotext
%%GUI%%libexec/xpdf/xpdf
%%GUI%%bin/xpdf
%%GUI%%%%DESKTOPDIR%%/xpdf.desktop
etc/man.d/xpdf.conf
%%DATADIR%%/man/man1/pdfdetach.1.gz
%%DATADIR%%/man/man1/pdffonts.1.gz