- Install a sample config file into share/examples, rather than into

the texmf tree.
- Correct paths to this package.

No PKGREVISION bump since this package didn't build due to the wrong
path to map.mk.
This commit is contained in:
minskim 2005-11-20 19:14:50 +00:00
parent 637bf9e082
commit d4ec572c69
4 changed files with 13 additions and 11 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2005/11/20 18:51:53 minskim Exp $ # $NetBSD: Makefile,v 1.18 2005/11/20 19:14:50 minskim Exp $
DISTNAME= dvipdfmx-20050627 DISTNAME= dvipdfmx-20050627
PKGNAME= ${DISTNAME:S/-/-0.0.0./} PKGNAME= ${DISTNAME:S/-/-0.0.0./}
@ -20,7 +20,7 @@ MAKE_ENV+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX}
.include "../../graphics/png/buildlink3.mk" .include "../../graphics/png/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk"
.include "../../mk/ghostscript.mk" .include "../../mk/ghostscript.mk"
.include "../../wip-kr/dvipdfmx/map.mk" .include "../../print/dvipdfmx/map.mk"
.include "../../print/teTeX/module.mk" .include "../../print/teTeX/module.mk"
post-install: post-install:
@ -28,7 +28,8 @@ post-install:
for file in ../../../Adobe/Resource/CMap/*; do \ for file in ../../../Adobe/Resource/CMap/*; do \
${LN} -s $$file `${BASENAME} $$file`; \ ${LN} -s $$file `${BASENAME} $$file`; \
done done
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dvipdfmx
${MV} ${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx.cfg \ ${MV} ${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx.cfg \
${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx-base.cfg ${PREFIX}/share/examples/dvipdfmx/
.include "../../mk/bsd.pkg.mk" .include "../../mk/bsd.pkg.mk"

View file

@ -1,5 +1,6 @@
@comment $NetBSD: PLIST,v 1.7 2005/11/20 18:51:53 minskim Exp $ @comment $NetBSD: PLIST,v 1.8 2005/11/20 19:14:50 minskim Exp $
bin/dvipdfmx bin/dvipdfmx
share/examples/dvipdfmx/dvipdfmx.cfg
${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-EUC-H ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-EUC-H
${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-EUC-V ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-EUC-V
${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-H ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/78-H
@ -202,7 +203,7 @@ ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/UniKSCms-UCS2-V
${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/V ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/V
${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/WP-Symbol ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap/WP-Symbol
${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/cid-x.map ${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/cid-x.map
${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx-base.cfg
${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/glyphlist.txt ${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/glyphlist.txt
@unexec ${RM} -f %D/${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx.cfg @unexec ${RM} -f %D/${PKG_LOCALTEXMFPREFIX}/dvipdfm/config/dvipdfmx.cfg
@dirrm ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap @dirrm ${PKG_LOCALTEXMFPREFIX}/dvipdfm/CMap
@dirrm share/examples/dvipdfmx

View file

@ -1,4 +1,4 @@
# $NetBSD: map.tmpl,v 1.2 2005/11/20 18:51:54 minskim Exp $ # $NetBSD: map.tmpl,v 1.3 2005/11/20 19:14:50 minskim Exp $
# #
# Update dvipdfmx.cfg. # Update dvipdfmx.cfg.
# #
@ -29,7 +29,7 @@ eof
case ${STAGE} in case ${STAGE} in
POST-INSTALL) POST-INSTALL)
if ${TEST} ! -f @DVIPDFMX_CONFIG_DIR@/dvipdfmx.cfg; then if ${TEST} ! -f @DVIPDFMX_CONFIG_DIR@/dvipdfmx.cfg; then
@CP@ @DVIPDFMX_CONFIG_DIR@/dvipdfmx-base.cfg \ @CP@ @LOCALBASE@/share/examples/dvipdfmx/dvipdfmx.cfg \
@DVIPDFMX_CONFIG_DIR@/dvipdfmx.cfg @DVIPDFMX_CONFIG_DIR@/dvipdfmx.cfg
fi fi
for map in @DVIPDFMX_FONTMAPS@; do for map in @DVIPDFMX_FONTMAPS@; do

View file

@ -1,4 +1,4 @@
# $NetBSD: map.mk,v 1.1 2005/11/20 18:51:54 minskim Exp $ # $NetBSD: map.mk,v 1.2 2005/11/20 19:14:50 minskim Exp $
# This Makefile fragment is intended to be included by packages that # This Makefile fragment is intended to be included by packages that
# install font maps used by dvipdfmx. It takes care of adding and # install font maps used by dvipdfmx. It takes care of adding and
# removing font map entires in dvipdfmx.cfg. # removing font map entires in dvipdfmx.cfg.
@ -15,14 +15,14 @@ DVIPDFMX_MAP_MK= # defined
DVIPDFMX_FONTMAPS?= # empty DVIPDFMX_FONTMAPS?= # empty
.if empty(DISTNAME:Mdvipdfmx-[0-9]*) .if empty(DISTNAME:Mdvipdfmx-[0-9]*)
DEPENDS+= dvipdfmx>=0.0.0.20050627:../../wip-kr/dvipdfmx DEPENDS+= dvipdfmx>=0.0.0.20050627:../../print/dvipdfmx
.endif .endif
USE_PKGINSTALL= yes USE_PKGINSTALL= yes
FILES_SUBST+= DVIPDFMX_FONTMAPS="${DVIPDFMX_FONTMAPS}" FILES_SUBST+= DVIPDFMX_FONTMAPS="${DVIPDFMX_FONTMAPS}"
FILES_SUBST+= DVIPDFMX_CONFIG_DIR="${PKG_LOCALTEXMFPREFIX}/dvipdfm/config" FILES_SUBST+= DVIPDFMX_CONFIG_DIR="${PKG_LOCALTEXMFPREFIX}/dvipdfm/config"
INSTALL_EXTRA_TMPL+= ../../wip-kr/dvipdfmx/files/map.tmpl INSTALL_EXTRA_TMPL+= ../../print/dvipdfmx/files/map.tmpl
DEINSTALL_EXTRA_TMPL+= ../../wip-kr/dvipdfmx/files/map.tmpl DEINSTALL_EXTRA_TMPL+= ../../print/dvipdfmx/files/map.tmpl
PRINT_PLIST_AWK+= /^${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}\/dvidpfm\/config\/dvipdfmx.cfg$$/ \ PRINT_PLIST_AWK+= /^${PKG_LOCALTEXMFPREFIX:S|${PREFIX}/||:S|/|\\/|g}\/dvidpfm\/config\/dvipdfmx.cfg$$/ \
{ next; } { next; }