From owner-svn-ports-head@freebsd.org Fri Apr 20 01:54:04 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3C7EF91640; Fri, 20 Apr 2018 01:54:03 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75B8B77E84; Fri, 20 Apr 2018 01:54:03 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 708FD11FB5; Fri, 20 Apr 2018 01:54:03 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3K1s3PU078871; Fri, 20 Apr 2018 01:54:03 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3K1s2Js078864; Fri, 20 Apr 2018 01:54:02 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201804200154.w3K1s2Js078864@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Fri, 20 Apr 2018 01:54:02 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: cy X-SVN-Commit-Paths: in head/graphics: xpdf3 xpdf3/files xpdf4 xpdf4/files X-SVN-Commit-Revision: 467809 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2018 01:54:04 -0000 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 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 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