mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
New port, print/pdf-tools: Emacs support library for PDF files
WWW: https://github.com/politza/pdf-tools
This commit is contained in:
parent
f91597a543
commit
3a24592a18
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460708
@ -158,6 +158,7 @@
|
||||
SUBDIR += paps
|
||||
SUBDIR += pcal
|
||||
SUBDIR += pdf-renderer
|
||||
SUBDIR += pdf-tools
|
||||
SUBDIR += pdf4tcl
|
||||
SUBDIR += pdfbox
|
||||
SUBDIR += pdfcube
|
||||
|
46
print/pdf-tools/Makefile
Normal file
46
print/pdf-tools/Makefile
Normal file
@ -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>
|
3
print/pdf-tools/distinfo
Normal file
3
print/pdf-tools/distinfo
Normal file
@ -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
|
4
print/pdf-tools/files/pdf-tools-init.el
Normal file
4
print/pdf-tools/files/pdf-tools-init.el
Normal file
@ -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)
|
13
print/pdf-tools/pkg-descr
Normal file
13
print/pdf-tools/pkg-descr
Normal file
@ -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
|
5
print/pdf-tools/pkg-message
Normal file
5
print/pdf-tools/pkg-message
Normal file
@ -0,0 +1,5 @@
|
||||
############################################
|
||||
Add this line to your Emacs initialization.
|
||||
|
||||
(load "pdf-tools-init.el")
|
||||
############################################
|
33
print/pdf-tools/pkg-plist
Normal file
33
print/pdf-tools/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user