- 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
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
PORTNAME= Hyperlatex
|
|
DISTVERSION= 2.9a
|
|
PORTREVISION= 22
|
|
CATEGORIES= print
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/2.9a
|
|
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Produce HTML and printed documents from LaTeX source
|
|
WWW= https://hyperlatex.sourceforge.net/
|
|
|
|
RUN_DEPENDS= ppmtogif:graphics/netpbm
|
|
|
|
USES= emacs tex
|
|
USE_TEX= latex
|
|
|
|
CONFLICTS_INSTALL= Hyperlatex Hyperlatex-emacs_*
|
|
|
|
LATEX_DIR= ${PREFIX}/share/texmf/tex/latex/hyperlatex
|
|
HYPERLATEX_DIR= ${PREFIX}/share/hyperlatex
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC} && \
|
|
${REINPLACE_CMD} -e 's|http://www.cs.uu.nl/\\~{}otfried/img/||' hlx/siteinit.hlx && \
|
|
${REINPLACE_CMD} -e 's|$$HOME/Hyperlatex/Hlx|${HYPERLATEX_DIR}|' bin/hyperlatex && \
|
|
${REINPLACE_CMD} -e '1s|^#$$|#\!/usr/bin/awk|' bin/normalize-eps.awk)
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/hlx; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${HYPERLATEX_DIR}
|
|
@${MKDIR} ${STAGEDIR}${LATEX_DIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/hyperlatex ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/ps2image ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/normalize-eps.awk \
|
|
${STAGEDIR}${PREFIX}/bin/normalize-eps
|
|
${INSTALL_DATA} ${WRKSRC}/etc/hyperlatex.sty ${STAGEDIR}${LATEX_DIR}
|
|
cd ${WRKSRC}/hlx; for f in *.el *.elc *.hlx *.xbm *.awk ; do \
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f \
|
|
${STAGEDIR}${HYPERLATEX_DIR}; fi; done
|
|
|
|
.include <bsd.port.mk>
|