diff options
-rw-r--r-- | devel/noweb/Makefile | 11 | ||||
-rw-r--r-- | devel/noweb/pkg-install | 11 | ||||
-rw-r--r-- | devel/noweb/pkg-plist | 13 |
3 files changed, 32 insertions, 3 deletions
diff --git a/devel/noweb/Makefile b/devel/noweb/Makefile index a50eda8c0511..49da1f33bf9c 100644 --- a/devel/noweb/Makefile +++ b/devel/noweb/Makefile @@ -18,12 +18,23 @@ BUILD_DEPENDS= icont:${PORTSDIR}/lang/icon RUN_DEPENDS= iconx:${PORTSDIR}/lang/icon WRKSRC= ${WRKDIR}/src +INSTALL_TARGET= install-code install-man install-elisp MAN1= cpif.1 htmltoc.1 nodefs.1 noindex.1 noroff.1 noroots.1 \ notangle.1 noweb.1 nuweb2noweb.1 sl2h.1 MAN7= nowebfilters.7 nowebstyle.7 MLINKS= notangle.1 noweave.1 notangle.1 nountangle.1 +NOWEBTEXDIR= ${PREFIX}/share/texmf-local/tex/plain/noweb +NOWEBLATEXDIR= ${PREFIX}/share/texmf-local/tex/latex/noweb + post-build: @(cd ${WRKSRC} && ${SH} ${WRKSRC}/awkname awk) +post-install: + @${MKDIR} ${NOWEBTEXDIR} + ${INSTALL_DATA} ${WRKSRC}/tex/nwmac.tex ${NOWEBTEXDIR} + @${MKDIR} ${NOWEBLATEXDIR} + ${INSTALL_DATA} ${WRKSRC}/tex/noweb.sty ${NOWEBLATEXDIR} + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + .include <bsd.port.mk> diff --git a/devel/noweb/pkg-install b/devel/noweb/pkg-install new file mode 100644 index 000000000000..fa745d416530 --- /dev/null +++ b/devel/noweb/pkg-install @@ -0,0 +1,11 @@ +#!/bin/sh +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi +if ! which mktexlsr >/dev/null; then + echo "I can't find mktexlsr in your search path." + echo "If you want to use noweb's (La)TeX output" + echo "you should also install the teTeX package." +else + mktexlsr +fi diff --git a/devel/noweb/pkg-plist b/devel/noweb/pkg-plist index eaca8c4aaa5e..9a9ccea91858 100644 --- a/devel/noweb/pkg-plist +++ b/devel/noweb/pkg-plist @@ -41,8 +41,15 @@ share/noweb/tohtml share/noweb/totex share/noweb/toroff share/noweb/unmarkup -share/noweb/tex/noweb.sty -share/noweb/tex/nwmac.tex +share/texmf-local/tex/plain/noweb/nwmac.tex +share/texmf-local/tex/latex/noweb/noweb.sty share/noweb/xchunks -@dirrm share/noweb/tex +@dirrm share/texmf-local/tex/latex/noweb +@dirrm share/texmf-local/tex/plain/noweb +@unexec rmdir %D/share/texmf-local/tex/latex 2>/dev/null || true +@unexec rmdir %D/share/texmf-local/tex/plain 2>/dev/null || true +@unexec rmdir %D/share/texmf-local/tex 2>/dev/null || true +@unexec rm %D/share/texmf-local/ls-R 2>/dev/null || true +@unexec rmdir %D/share/texmf-local 2>/dev/null || true +@unexec mktexlsr 2>/dev/null || true @dirrm share/noweb |