Index: print/pdvipsk/Makefile =================================================================== RCS file: /e/cvsync/cvsync/pkgsrc/print/pdvipsk/Makefile,v retrieving revision 1.1.1.1 diff -u -u -r1.1.1.1 Makefile --- print/pdvipsk/Makefile 7 Feb 2011 19:43:28 -0000 1.1.1.1 +++ print/pdvipsk/Makefile 3 Mar 2012 02:00:18 -0000 @@ -28,7 +28,18 @@ --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= share/tetex/tetex/texconfig +TEXDVIPS_UPDMAP_DIR= etc/texmf/dvips/config 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" @@ -37,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: /e/cvsync/cvsync/pkgsrc/print/pdvipsk/PLIST,v retrieving revision 1.1.1.1 diff -u -u -r1.1.1.1 PLIST --- print/pdvipsk/PLIST 7 Feb 2011 19:43:28 -0000 1.1.1.1 +++ print/pdvipsk/PLIST 3 Mar 2012 02:18:42 -0000 @@ -1,2 +1,4 @@ @comment $NetBSD: PLIST,v 1.1.1.1 2011/02/07 19:43:28 minskim Exp $ bin/pdvips +etc/texmf/dvips/config/kanji.map +share/tetex/tetex/texconfig/config-j.ps Index: print/pdvipsk/distinfo =================================================================== RCS file: /e/cvsync/cvsync/pkgsrc/print/pdvipsk/distinfo,v retrieving revision 1.1.1.1 diff -u -u -r1.1.1.1 distinfo --- print/pdvipsk/distinfo 7 Feb 2011 19:43:28 -0000 1.1.1.1 +++ print/pdvipsk/distinfo 3 Mar 2012 01:47:49 -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/files/kanji.map =================================================================== RCS file: print/pdvipsk/files/kanji.map diff -N print/pdvipsk/files/kanji.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ print/pdvipsk/files/kanji.map 3 Mar 2012 01:27:56 -0000 @@ -0,0 +1,16 @@ +rml Ryumin-Light-H +rmlv Ryumin-Light-V +gbm GothicBBB-Medium-H +gbmv GothicBBB-Medium-V +ryumin-l Ryumin-Light-H +ryumin-l-v Ryumin-Light-V +gtbbb-m GothicBBB-Medium-H +gtbbb-m-v GothicBBB-Medium-V +futomin-b FutoMinA101-Bold-H +futomin-b-v FutoMinA101-Bold-V +futogo-b FutoGoB101-Bold-H +futogo-b-v FutoGoB101-Bold-V +jun101-l Jun101-Light-H +jun101-l-v Jun101-Light-V +unimin Ryumin-Light-UniJIS-UCS2-H +unigoth GothicBBB-Medium-UniJIS-UCS2-H 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 3 Mar 2012 01:47:36 -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