mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Install (La)TeX files where (la)tex can find them.
PR: 58979
This commit is contained in:
parent
bb34de42c0
commit
3b2d432b22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93888
@ -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>
|
||||
|
11
devel/noweb/pkg-install
Normal file
11
devel/noweb/pkg-install
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user