2013-09-21 00:43:59 +02:00
|
|
|
# Created by: Robert Withrow <witr@rwwa.com>
|
1999-11-14 04:47:07 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 19:50:59 +02:00
|
|
|
PORTNAME= Hyperlatex
|
2009-07-16 11:26:20 +02:00
|
|
|
DISTVERSION= 2.9a
|
2015-04-27 12:29:27 +02:00
|
|
|
PORTREVISION= 6
|
1999-11-14 04:47:07 +01:00
|
|
|
CATEGORIES= print
|
2014-05-05 11:45:36 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/2.9a
|
1999-11-14 04:47:07 +01:00
|
|
|
|
2004-10-17 20:21:41 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Produce HTML and printed documents from LaTeX source
|
1999-11-14 04:47:07 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= ppmtogif:graphics/netpbm
|
1999-11-14 04:47:07 +01:00
|
|
|
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= latex
|
2007-06-05 10:49:59 +02:00
|
|
|
USE_EMACS= yes
|
|
|
|
|
2004-10-18 08:12:46 +02:00
|
|
|
LATEX_DIR= ${PREFIX}/share/texmf/tex/latex/hyperlatex
|
|
|
|
HYPERLATEX_DIR= ${PREFIX}/share/hyperlatex
|
1999-11-14 04:47:07 +01:00
|
|
|
|
2003-07-24 16:41:27 +02:00
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && \
|
2004-10-18 08:12:46 +02:00
|
|
|
${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)
|
2003-07-24 16:41:27 +02:00
|
|
|
|
1999-11-14 04:47:07 +01:00
|
|
|
do-build:
|
2004-10-18 08:12:46 +02:00
|
|
|
cd ${WRKSRC}/hlx; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile
|
1999-11-14 04:47:07 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-07-06 17:44:33 +02:00
|
|
|
@${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}
|
2004-10-18 08:12:46 +02:00
|
|
|
cd ${WRKSRC}/hlx; for f in *.el *.elc *.hlx *.xbm *.awk ; do \
|
2014-07-06 17:44:33 +02:00
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f \
|
|
|
|
${STAGEDIR}${HYPERLATEX_DIR}; fi; done
|
1999-11-14 04:47:07 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|