pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/tex-textpos - Generate files to install before i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b7affc4baf61
branches:  trunk
changeset: 510961:b7affc4baf61
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri Apr 07 05:18:35 2006 +0000

description:
- 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:

 print/tex-textpos/Makefile |  31 +++++++++++++++++--------------
 print/tex-textpos/PLIST    |  19 ++++++++-----------
 2 files changed, 25 insertions(+), 25 deletions(-)

diffs (88 lines):

diff -r 6be1d7d1c341 -r b7affc4baf61 print/tex-textpos/Makefile
--- a/print/tex-textpos/Makefile        Fri Apr 07 05:13:52 2006 +0000
+++ b/print/tex-textpos/Makefile        Fri Apr 07 05:18:35 2006 +0000
@@ -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 @@
 # 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 -r 6be1d7d1c341 -r b7affc4baf61 print/tex-textpos/PLIST
--- a/print/tex-textpos/PLIST   Fri Apr 07 05:13:52 2006 +0000
+++ b/print/tex-textpos/PLIST   Fri Apr 07 05:18:35 2006 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index