Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2018 16:04:37 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
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
Message-ID:  <201802021604.w12G4bMS048916@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802021604.w12G4bMS048916>