summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorminskim <minskim>2006-04-07 05:18:35 +0000
committerminskim <minskim>2006-04-07 05:18:35 +0000
commit8511e9a7c27b8f900c1cb08b6dc48b2ee6fe0577 (patch)
tree551f10ff49184b090a94da99d3554d3c1f6866be /print
parentcea3787cf08e0f0839c524aeb7a110405d783817 (diff)
downloadpkgsrc-8511e9a7c27b8f900c1cb08b6dc48b2ee6fe0577.tar.gz
- Generate files to install before installation, and then copy them.
Previously, files were generated in PREFIX. - Use teTeX/module.mk to properly update the ls-R database. - Install documentation and examples into share/doc and share examples, respectively. Bump PKGREVISION.
Diffstat (limited to 'print')
-rw-r--r--print/tex-textpos/Makefile31
-rw-r--r--print/tex-textpos/PLIST19
2 files changed, 25 insertions, 25 deletions
diff --git a/print/tex-textpos/Makefile b/print/tex-textpos/Makefile
index 05368d5a21f..a7ea9c2a3f6 100644
--- a/print/tex-textpos/Makefile
+++ b/print/tex-textpos/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2006/03/22 16:56:50 minskim Exp $
+# $NetBSD: Makefile,v 1.18 2006/04/07 05:18:35 minskim Exp $
#
NAME= textpos
@@ -12,36 +12,39 @@ MAINTAINER= pkgsrc-users@NetBSD.org
# HOMEPAGE=
COMMENT= Absolute positioning of text on the LaTeX page
-WRKSRC= ${WRKDIR}/${NAME}
+WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${NAME}
DISTFILES= textpos.ins LICENCE README textpos.dtx VERSION
# included in teTeX3
TEX_ACCEPTED= teTeX1 teTeX2
-CONFLICTS+= teTeX-bin>=3.0
NO_CONFIGURE= yes
-NO_BUILD= yes
+USE_DIRS+= texmf-1.0
.include "../../mk/bsd.prefs.mk"
.if ${TEX_DEFAULT} == "teTeX3"
PKG_SKIP_REASON+= "textpos is included in ${TEX_DEFAULT}."
.else
-.include "../../mk/tex.buildlink3.mk"
+.include "../../print/teTeX/module.mk"
.endif
-do-extract:
+do-build:
+ cd ${WRKSRC} && latex textpos.ins
+ cd ${WRKSRC} && latex textpos.drv
do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/textpos-example.tex \
+ ${PREFIX}/share/examples/${PKGBASE}
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
+ for f in LICENCE README VERSION textpos.dvi; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$f \
+ ${PREFIX}/share/doc/${PKGBASE}; done
${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos
- for f in ${DISTFILES}; do \
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$$f \
- ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos; \
- done
-
-post-install:
- cd ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos; latex textpos.ins
- ${LOCALBASE}/bin/texconfig rehash
+ for f in textpos.sty textpos.dtx; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$f \
+ ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos; done
.include "../../mk/bsd.pkg.mk"
diff --git a/print/tex-textpos/PLIST b/print/tex-textpos/PLIST
index 0797672bd46..f5e5df4668c 100644
--- a/print/tex-textpos/PLIST
+++ b/print/tex-textpos/PLIST
@@ -1,14 +1,11 @@
-@comment $NetBSD: PLIST,v 1.3 2006/03/13 07:11:19 wiz Exp $
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/LICENCE
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/README
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/VERSION
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos-example.tex
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos.drv
+@comment $NetBSD: PLIST,v 1.4 2006/04/07 05:18:35 minskim Exp $
+share/doc/${PKGBASE}/LICENCE
+share/doc/${PKGBASE}/README
+share/doc/${PKGBASE}/VERSION
+share/doc/${PKGBASE}/textpos.dvi
+share/examples/${PKGBASE}/textpos-example.tex
${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos.dtx
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos.ins
-${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos.log
${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos/textpos.sty
-@exec cd %D/share/texmf/tex/latex/textpos; latex textpos.ins
-@exec %D/bin/texconfig rehash
-@unexec %D/bin/texconfig rehash
@dirrm ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos
+@dirrm share/examples/${PKGBASE}
+@dirrm share/doc/${PKGBASE}