diff options
Diffstat (limited to 'print/hyperlatex/Makefile')
-rw-r--r-- | print/hyperlatex/Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/print/hyperlatex/Makefile b/print/hyperlatex/Makefile index 7cd128ed18ba..12fdd02b63c7 100644 --- a/print/hyperlatex/Makefile +++ b/print/hyperlatex/Makefile @@ -6,9 +6,10 @@ # PORTNAME= Hyperlatex -PORTVERSION= 2.6 +PORTVERSION= 2.7 CATEGORIES= print -MASTER_SITES= http://www.cs.uu.nl/~otfried/Hyperlatex/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR=hyperlatex MAINTAINER= ports@FreeBSD.org COMMENT= Produce HTML and printed documents from LaTeX source @@ -19,23 +20,26 @@ RUN_DEPENDS= emacs:${PORTSDIR}/editors/emacs \ ppmtogif:${PORTSDIR}/graphics/netpbm USE_REINPLACE= yes -LATEX_DIR= ${PREFIX}/share/texmf/tex/latex -HYPERLATEX_DIR= ${PREFIX}/share/texmf/tex/latex/hyperlatex +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/||' siteinit.hlx && \ - ${REINPLACE_CMD} -e 's|$$HOME/Hyperlatex/Hlx|${PREFIX}/share/texmf/tex/latex/hyperlatex|' hyperlatex) + ${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}; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile + cd ${WRKSRC}/hlx; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/hyperlatex ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/ps2gif ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/hyperlatex.sty ${LATEX_DIR} ${MKDIR} ${HYPERLATEX_DIR} - cd ${WRKSRC}; for f in *.el *.elc *.hlx *.xbm *.awk ; do \ + ${MKDIR} ${LATEX_DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bin/hyperlatex ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/ps2image ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/normalize-eps.awk ${PREFIX}/bin/normalize-eps + ${INSTALL_DATA} ${WRKSRC}/etc/hyperlatex.sty ${LATEX_DIR} + cd ${WRKSRC}/hlx; for f in *.el *.elc *.hlx *.xbm *.awk ; do \ if [ -f $$f ]; then ${INSTALL_DATA} $$f ${HYPERLATEX_DIR}; fi; done .include <bsd.port.mk> |