? print/pdvipsk/files Index: print/pdvipsk/Makefile =================================================================== RCS file: /cvsroot/pkgsrc/print/pdvipsk/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- print/pdvipsk/Makefile 8 Oct 2012 13:45:44 -0000 1.2 +++ print/pdvipsk/Makefile 2 Jan 2015 14:36:06 -0000 @@ -2,6 +2,7 @@ DISTNAME= texlive-20091011-source PKGNAME= pdvipsk-5.98pl1.7b +PKGREVISION= 1 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/} DISTFILES= texlive-20091011-source.tar.xz \ @@ -26,7 +27,19 @@ --with-kpathsea-includes=${BUILDLINK_PREFIX.kpathsea}/include \ --with-kpathsea-libdir=${BUILDLINK_PREFIX.kpathsea}/lib +SUBST_CLASSES+= fix-config.ps +SUBST_STAGE.fix-config.ps= pre-configure +SUBST_FILES.fix-config.ps= texk/tetex/texconfig +SUBST_SED.fix-config.ps= -e 's|config.ps|config-j.ps' + +TEXCONFIG_DIR= texmf-dist/dvips/config + +TEXDVIPS_UPDMAP_DIR= share/texmf-dist/fonts/map/dvips/updmap INSTALLATION_DIRS+= bin +# Tweak to look modified version of config.ps +INSTALLATION_DIRS+= ${TEXCONFIG_DIR} +INSTALLATION_DIRS+= ${TEXDVIPS_UPDMAP_DIR} + .include "../../print/kpathsea/buildlink3.mk" @@ -35,6 +48,12 @@ < ${WRKDIR}/dvipsk-5.98-p1.7b-tl2009.diff do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/pdvips ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/pdvips ${DESTDIR}${PREFIX}/bin + # install mapfile + ${INSTALL_DATA} files/kanji.map \ + ${DESTDIR}${PREFIX}/${TEXDVIPS_UPDMAP_DIR} + # install modified version of config map for pdvips only, see above SUBST lines + ${INSTALL_DATA} ${WRKSRC}/config.ps \ + ${DESTDIR}${PREFIX}/${TEXCONFIG_DIR}/config-j.ps .include "../../mk/bsd.pkg.mk" Index: print/pdvipsk/PLIST =================================================================== RCS file: /cvsroot/pkgsrc/print/pdvipsk/PLIST,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 PLIST --- print/pdvipsk/PLIST 7 Feb 2011 19:43:28 -0000 1.1.1.1 +++ print/pdvipsk/PLIST 2 Jan 2015 14:36:06 -0000 @@ -1,2 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/07 19:43:28 minskim Exp $ +@comment $NetBSD$ bin/pdvips +share/texmf-dist/fonts/map/dvips/updmap/kanji.map +texmf-dist/dvips/config/config-j.ps Index: print/pdvipsk/distinfo =================================================================== RCS file: /cvsroot/pkgsrc/print/pdvipsk/distinfo,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 distinfo --- print/pdvipsk/distinfo 7 Feb 2011 19:43:28 -0000 1.1.1.1 +++ print/pdvipsk/distinfo 2 Jan 2015 14:36:06 -0000 @@ -7,3 +7,4 @@ RMD160 (texlive-20091011-source.tar.xz) = 81b86cd93e629d6b1b3d7918848dd76babc0d5a9 Size (texlive-20091011-source.tar.xz) = 29683728 bytes SHA1 (patch-aa) = 825b091fecb17e8cc9135a0341b90e49ffd56baf +SHA1 (patch-texk_dvips_config.ps) = e90fea438e6ab63030d786c930040b67aa661549 Index: print/pdvipsk/patches/patch-texk_dvips_config.ps =================================================================== RCS file: print/pdvipsk/patches/patch-texk_dvips_config.ps diff -N print/pdvipsk/patches/patch-texk_dvips_config.ps --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ print/pdvipsk/patches/patch-texk_dvips_config.ps 2 Jan 2015 14:36:06 -0000 @@ -0,0 +1,15 @@ +$NetBSD$ + +Add kanji.map as modified version of config.ps +(This config.ps will be installed as config-j.ps) + +--- texk/dvipsk/config.ps.orig 2009-09-27 03:30:44.000000000 +0900 ++++ config.ps 2012-03-03 10:44:16.000000000 +0900 +@@ -51,6 +51,7 @@ + % This shows how to add your own map file. + % Remove the comment and adjust the name: + % p +myfonts.map ++p +kanji.map + + % In the past, the a4size and letterSize definitions did not set the + % paper size, but we want to set it if we can so that ps2pdf can work