Date: Fri, 20 Apr 2018 01:54:02 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467809 - in head/graphics: xpdf3 xpdf3/files xpdf4 xpdf4/files Message-ID: <201804200154.w3K1s2Js078864@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Fri Apr 20 01:54:02 2018 New Revision: 467809 URL: https://svnweb.freebsd.org/changeset/ports/467809 Log: 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@ Added: head/graphics/xpdf3/files/xpdf.desktop (contents, props changed) head/graphics/xpdf4/files/xpdf.desktop (contents, props changed) Modified: head/graphics/xpdf3/Makefile (contents, props changed) head/graphics/xpdf3/pkg-plist (contents, props changed) head/graphics/xpdf4/Makefile (contents, props changed) head/graphics/xpdf4/pkg-plist (contents, props changed) Modified: head/graphics/xpdf3/Makefile ============================================================================== --- head/graphics/xpdf3/Makefile Fri Apr 20 01:34:05 2018 (r467808) +++ head/graphics/xpdf3/Makefile Fri Apr 20 01:54:02 2018 (r467809) @@ -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|' \ @@ -69,5 +70,8 @@ post-install: ${LN} -sf ../libexec/xpdf/xpdf bin/xpdf ${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> Added: head/graphics/xpdf3/files/xpdf.desktop ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/xpdf3/files/xpdf.desktop Fri Apr 20 01:54:02 2018 (r467809) @@ -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; Modified: head/graphics/xpdf3/pkg-plist ============================================================================== --- head/graphics/xpdf3/pkg-plist Fri Apr 20 01:34:05 2018 (r467808) +++ head/graphics/xpdf3/pkg-plist Fri Apr 20 01:54:02 2018 (r467809) @@ -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 Modified: head/graphics/xpdf4/Makefile ============================================================================== --- head/graphics/xpdf4/Makefile Fri Apr 20 01:34:05 2018 (r467808) +++ head/graphics/xpdf4/Makefile Fri Apr 20 01:54:02 2018 (r467809) @@ -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_Qt5Widget 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 @@ -59,5 +62,8 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc ${STAGEDIR}${PREFIX}/etc/xpdfrc.sample ${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> Added: head/graphics/xpdf4/files/xpdf.desktop ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/xpdf4/files/xpdf.desktop Fri Apr 20 01:54:02 2018 (r467809) @@ -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; Modified: head/graphics/xpdf4/pkg-plist ============================================================================== --- head/graphics/xpdf4/pkg-plist Fri Apr 20 01:34:05 2018 (r467808) +++ head/graphics/xpdf4/pkg-plist Fri Apr 20 01:54:02 2018 (r467809) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804200154.w3K1s2Js078864>