From owner-svn-ports-all@freebsd.org Fri Feb 2 16:04:38 2018 Return-Path: Delivered-To: svn-ports-all@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 955F8EE0DC0; Fri, 2 Feb 2018 16:04:38 +0000 (UTC) (envelope-from jrm@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 46FE7715D6; Fri, 2 Feb 2018 16:04:38 +0000 (UTC) (envelope-from jrm@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 41F2D1DE7C; Fri, 2 Feb 2018 16:04:38 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w12G4c3o048925; Fri, 2 Feb 2018 16:04:38 GMT (envelope-from jrm@FreeBSD.org) Received: (from jrm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w12G4bMS048916; Fri, 2 Feb 2018 16:04:37 GMT (envelope-from jrm@FreeBSD.org) Message-Id: <201802021604.w12G4bMS048916@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jrm set sender to jrm@FreeBSD.org using -f From: Joseph Mingrone Date: Fri, 2 Feb 2018 16:04:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460708 - in head/print: . pdf-tools pdf-tools/files X-SVN-Group: ports-head X-SVN-Commit-Author: jrm X-SVN-Commit-Paths: in head/print: . pdf-tools pdf-tools/files X-SVN-Commit-Revision: 460708 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 16:04:38 -0000 Author: jrm Date: Fri Feb 2 16:04:37 2018 New Revision: 460708 URL: https://svnweb.freebsd.org/changeset/ports/460708 Log: New port, print/pdf-tools: Emacs support library for PDF files WWW: https://github.com/politza/pdf-tools Added: head/print/pdf-tools/ head/print/pdf-tools/Makefile (contents, props changed) head/print/pdf-tools/distinfo (contents, props changed) head/print/pdf-tools/files/ head/print/pdf-tools/files/pdf-tools-init.el (contents, props changed) head/print/pdf-tools/pkg-descr (contents, props changed) head/print/pdf-tools/pkg-message (contents, props changed) head/print/pdf-tools/pkg-plist (contents, props changed) Modified: head/print/Makefile (contents, props changed) Modified: head/print/Makefile ============================================================================== --- head/print/Makefile Fri Feb 2 16:01:08 2018 (r460707) +++ head/print/Makefile Fri Feb 2 16:04:37 2018 (r460708) @@ -158,6 +158,7 @@ SUBDIR += paps SUBDIR += pcal SUBDIR += pdf-renderer + SUBDIR += pdf-tools SUBDIR += pdf4tcl SUBDIR += pdfbox SUBDIR += pdfcube Added: head/print/pdf-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/Makefile Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= pdf-tools +DISTVERSIONPREFIX= v +DISTVERSION= 0.80-79 +DISTVERSIONSUFFIX= -g9241a79 +CATEGORIES= print +PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} + +MAINTAINER= jrm@FreeBSD.org +COMMENT= Emacs support library for PDF files + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= cask${EMACS_PKGNAMESUFFIX}>0:devel/cask@${EMACS_FLAVOR} \ + tablist${EMACS_PKGNAMESUFFIX}>=0.70.4:devel/tablist@${EMACS_FLAVOR} +LIB_DEPENDS= libpng16.so:graphics/png \ + libpoppler.so:graphics/poppler \ + libpoppler-glib.so:graphics/poppler-glib +RUN_DEPENDS= ImageMagick>=6.9.9.28,1:graphics/ImageMagick \ + tablist${EMACS_PKGNAMESUFFIX}>=0.70:devel/tablist@${EMACS_FLAVOR} + +USES= autoreconf:build emacs gettext-runtime gmake +EMACS_FLAVORS_EXCLUDE= nox devel_nox +USE_GITHUB= yes +GH_ACCOUNT= politza +USE_GNOME= cairo glib20 + +do-build: + cd ${WRKSRC}/server && ./autogen.sh && ./configure -q && make + ${EMACS_CMD} -q --batch -L ${WRKSRC}/lisp -f batch-byte-compile \ + ${WRKSRC}/lisp/*.el + ${EMACS_CMD} -q --batch \ + --eval "(setq generated-autoload-file \ + \"${WRKSRC}/lisp/${PORTNAME}-loaddefs.el\" \ + backup-inhibited t)" \ + -f batch-update-autoloads ${WRKSRC}/lisp + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/server/epdfinfo ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/lisp/* ${FILESDIR}/${PORTNAME}-init.el \ + ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME} + +.include Added: head/print/pdf-tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/distinfo Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,3 @@ +TIMESTAMP = 1515623300 +SHA256 (politza-pdf-tools-v0.80-79-g9241a79_GH0.tar.gz) = 5be877c0307105cdf211eb534a59199d58223f77a16347187052111e52616f9f +SIZE (politza-pdf-tools-v0.80-79-g9241a79_GH0.tar.gz) = 416569 Added: head/print/pdf-tools/files/pdf-tools-init.el ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/files/pdf-tools-init.el Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,4 @@ +(load "pdf-tools-loaddefs.el") +(autoload 'pdf-view-mode "pdf-tools") +(add-to-list 'auto-mode-alist '("\\.[pP][dD][fF]\\'" . pdf-view-mode)) +(add-hook 'pdf-view-mode-hook 'pdf-tools-enable-minor-modes) Added: head/print/pdf-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/pkg-descr Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,13 @@ +PDF Tools is, among other things, a replacement of Emacs's DocView for PDF +files. The key difference is that pages are not pre-rendered by +e.g. ghostscript and stored in the file-system, but rather created on-demand and +stored in memory. This rendering is performed by a special library named, for +whatever reason, poppler, running inside a server program. This program is +called epdfinfo and its job is to successively read requests from Emacs and +produce the proper results, i.e. the PNG image of a PDF page. + +Actually, displaying PDF files is just one part of PDF Tools. Since poppler can +provide us with all kinds of information about a document and is also able to +modify it, there is a lot more we can do with it. + +WWW: https://github.com/politza/pdf-tools Added: head/print/pdf-tools/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/pkg-message Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,5 @@ +############################################ +Add this line to your Emacs initialization. + +(load "pdf-tools-init.el") +############################################ Added: head/print/pdf-tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/pdf-tools/pkg-plist Fri Feb 2 16:04:37 2018 (r460708) @@ -0,0 +1,33 @@ +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-annot.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-annot.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-cache.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-cache.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-dev.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-dev.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-history.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-history.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-info.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-info.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-isearch.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-isearch.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-links.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-links.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-misc.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-misc.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-occur.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-occur.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-outline.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-outline.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-sync.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-sync.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-tools-init.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-tools-loaddefs.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-tools.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-tools.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-util.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-util.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-view.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-view.elc +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-virtual.el +%%EMACS_SITE_LISPDIR%%/pdf-tools/pdf-virtual.elc +bin/epdfinfo