diff options
Diffstat (limited to 'print/texlive')
-rw-r--r-- | print/texlive/package.mk | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/print/texlive/package.mk b/print/texlive/package.mk index 4a96db997ca..cc0a3a5c6c2 100644 --- a/print/texlive/package.mk +++ b/print/texlive/package.mk @@ -1,4 +1,4 @@ -# $NetBSD: package.mk,v 1.1 2010/01/15 20:32:27 minskim Exp $ +# $NetBSD: package.mk,v 1.2 2010/01/16 07:11:35 minskim Exp $ # # This Makefile fragment is inteded to be included by packages that build # TeX Live packages. @@ -61,7 +61,7 @@ _dirs= texmf texmf-dist _topdir= ${DESTDIR}${PREFIX}/share .endif -.PHONY: _texlive-set-permission _texlive-man _texlive-install +.PHONY: _texlive-set-permission _texlive-info _texlive-man _texlive-install _texlive-set-permission: .for _pat in ${TEXLIVE_IGNORE_PATTERNS} ${RM} -rf ${WRKSRC}/${_pat} @@ -73,6 +73,13 @@ _texlive-set-permission: fi .endfor +_texlive-info: + if [ -d ${WRKSRC}/texmf/doc/info ]; then \ + ${MKDIR} ${WRKSRC}/info; \ + ${MV} ${WRKSRC}/texmf/doc/info/* ${WRKSRC}/info; \ + ${RMDIR} -p ${WRKSRC}/texmf/doc/info || ${TRUE}; \ + fi + _texlive-man: if [ -d ${WRKSRC}/texmf/doc/man ]; then \ ${MKDIR} ${WRKSRC}/man; \ @@ -96,6 +103,13 @@ _texlive-install: ${INSTALL_SCRIPT} $$script ${DESTDIR}${PREFIX}/bin; \ done; \ fi + if [ -d ${WRKSRC}/info ]; then \ + ${FIND} ${WRKSRC}/info -name \*.orig -exec ${RM} {} \; ; \ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/info; \ + for script in ${WRKSRC}/info/*; do \ + ${INSTALL_DATA} $$script ${DESTDIR}${PREFIX}/info; \ + done; \ + fi if [ -d ${WRKSRC}/man ]; then \ ${FIND} ${WRKSRC}/man -name \*.orig -exec ${RM} {} \; ; \ ${INSTALL_MAN_DIR} -p ${DESTDIR}${PREFIX}/${PKGMANDIR}; \ @@ -119,5 +133,5 @@ _texlive-install: . include "../../print/texlive-tetex/map.mk" .endif -post-extract: _texlive-set-permission +post-extract: _texlive-set-permission _texlive-info _texlive-man do-install: _texlive-install |