diff options
author | tg <tg@FreeBSD.org> | 2003-11-13 13:38:39 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2003-11-13 13:38:39 +0000 |
commit | f2198b2dc5e58447d1ec779f0ad1e64ad493f209 (patch) | |
tree | b5abc52160fd86e110bc589c5517b0166a9115f9 /devel/noweb | |
parent | 0a792d129c721bbf05ec4507020041dae7ccb939 (diff) | |
download | FreeBSD-ports-f2198b2dc5e58447d1ec779f0ad1e64ad493f209.zip FreeBSD-ports-f2198b2dc5e58447d1ec779f0ad1e64ad493f209.tar.gz |
Install (La)TeX files where (la)tex can find them.
PR: 58979
Diffstat (limited to 'devel/noweb')
-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 a50eda8..49da1f3 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 0000000..fa745d4 --- /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 eaca8c4..9a9ccea 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 |