1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/print/pdf-tools/Makefile
Joseph Mingrone 26421ac37c
Chase editors/emacs update
- Bump Emacs version in Mk/Uses/emacs.mk to update version-specific
  paths
- Bump PORTREVISION of ports with USES=emacs.  This is required for two
  reasons.  Emacs lisp files need to be byte compiled for the new Emacs
  version, and files installed under, e.g., EMACS_VERSION_SITE_LISPDIR
  need to be relocated.

Reviewed by:	ashish
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44492
2024-03-26 19:51:47 -03:00

45 lines
1.4 KiB
Makefile

PORTNAME= pdf-tools
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
PORTREVISION= 6
CATEGORIES= print elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= jrm@FreeBSD.org
COMMENT= Emacs support library for PDF files
WWW= https://github.com/vedang/pdf-tools
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= libpng.so:graphics/png \
libpoppler-glib.so:graphics/poppler-glib \
libpoppler.so:graphics/poppler
RUN_DEPENDS= tablist${EMACS_PKGNAMESUFFIX}>=0.70:devel/tablist@${EMACS_FLAVOR}
USES= autoreconf:build emacs gettext-runtime gmake gnome magick:7
USE_GITHUB= yes
GH_ACCOUNT= vedang
USE_GNOME= cairo glib20
EMACS_FLAVORS_EXCLUDE= devel_nox nox
CONFLICTS_INSTALL= pdf-tools pdf-tools-emacs_* # bin/epdfinfo
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 -f loaddefs-generate-batch \
${WRKSRC}/lisp/${PORTNAME}-loaddefs.el ${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>