aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2004-06-18 15:53:48 +0000
committerHiroki Sato <hrs@FreeBSD.org>2004-06-18 15:53:48 +0000
commite9544d19cf117728a660befe5d4b8020174b386d (patch)
treea76c566cc1448f6b8ac0d517344e9c76c76774d4
parent1b7883a72edf05105c7a284210d1ef53a4c2323c (diff)
downloadports-e9544d19cf117728a660befe5d4b8020174b386d.tar.gz
ports-e9544d19cf117728a660befe5d4b8020174b386d.zip
Notes
-rw-r--r--japanese/xdvik-vflib/Makefile230
-rw-r--r--japanese/xdvik-vflib/files/pkg-install.in20
-rw-r--r--japanese/xdvik-vflib/files/vfontmap.freetype12
-rw-r--r--japanese/xdvik-vflib/files/vfontmap.vflib41
-rw-r--r--japanese/xdvik-vflib/pkg-descr19
-rw-r--r--japanese/xdvik-vflib/pkg-plist22
-rw-r--r--japanese/xdvik-vflib/scripts/post-configure13
-rw-r--r--japanese/xdvik/Makefile230
-rw-r--r--japanese/xdvik/files/pkg-install.in20
-rw-r--r--japanese/xdvik/files/vfontmap.freetype12
-rw-r--r--japanese/xdvik/files/vfontmap.vflib41
-rw-r--r--japanese/xdvik/pkg-descr19
-rw-r--r--japanese/xdvik/pkg-plist22
-rw-r--r--japanese/xdvik/scripts/post-configure13
14 files changed, 278 insertions, 436 deletions
diff --git a/japanese/xdvik-vflib/Makefile b/japanese/xdvik-vflib/Makefile
index ecb1d54d0c55..eab0ee125550 100644
--- a/japanese/xdvik-vflib/Makefile
+++ b/japanese/xdvik-vflib/Makefile
@@ -7,27 +7,35 @@
PORTNAME= xdvik
PORTVERSION= ${VERSION_XDVIK}.${VERSION_JPATCH}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xdvi
+PKGNAMEPREFIX= ja-
+PKGNAMESUFFIX= -tetex
DISTNAME= xdvik-${VERSION_XDVIK}
PATCH_SITES= http://www.nn.iij4u.or.jp/~tutimura/tex/
-PATCHFILES= xdvik-${VERSION_XDVIK}-j${VERSION_JPATCH}.patch.gz
+PATCHFILES= ${PORTNAME}-${VERSION_XDVIK}-j${VERSION_JPATCH}.patch.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= hrs@FreeBSD.org
-COMMENT= DVI Previewer(kpathsearch) for X. + jp-patch
-
-.if defined(WITH_VF2FT)
-LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
-PKGNAMESUFFIX= -ft
-.else
-LIB_DEPENDS= VFlib2:${PORTSDIR}/japanese/vflib
-PKGNAMESUFFIX= -vflib
-.endif
-LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww \
+COMMENT= DVI Previewer(kpathsearch) for X. + freetype support
+
+.include <bsd.port.pre.mk>
+
+BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
+ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
+ mktexlsr:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
+ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
+ mktexlsr:${PORTSDIR}/print/teTeX-base \
+ ${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex \
+ ${X11BASE}/${TTFMINCHO}:${PORTSDIR}/japanese/kochi-ttfonts \
+ ${X11BASE}/${TTFGOTHIC}:${PORTSDIR}/japanese/kochi-ttfonts
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
DIST_SUBDIR= xdvik
@@ -35,25 +43,25 @@ USE_XLIB= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
CFLAGS+= -I${LOCALBASE}/include
-CONFIGURE_ARGS= --enable-a4 --enable-shrink=${SHRINK} \
+CONFIGURE_ARGS= --datadir=${PREFIX}/${TEXMF:S,texmf$,,} \
+ --enable-a4 --enable-shrink=${SHRINK} \
--with-dvifilter=${DVIPS} \
--enable-xdviprint=${PREFIX}/libexec/xdviprint \
--enable-smallpanel --enable-zoombutton \
+ --enable-gf \
--with-system-wwwlib --with-libwww-libdir=${LIBWWW_PREFIX}/lib \
--with-libwww-include=${LIBWWW_PREFIX}/include/w3c-libwww \
--with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \
--with-t1lib-include=${LIBT1_PREFIX}/include \
- --enable-vikey --disable-multiplatform
-.if defined(WITH_VF2FT)
-CONFIGURE_ARGS+= --with-vflib=vf2ft
-.endif
+ --enable-vikey --disable-multiplatform \
+ --with-vflib=vf2ft
CONFIGURE_ENV= INSTALL="${INSTALL}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
- INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_MAN="${INSTALL_MAN}" \
XDEFS='-DMFMODE=\"${MF_MODE}\"'
SCRIPTS_ENV= MV=${MV} SED=${SED}
-#MAKE_ENV= 'XDEFS=${XDEFS}'
PATCH_STRIP= -p1
MAN1= xdvi.1 xdvizilla.1 t1mapper.1
@@ -61,136 +69,88 @@ VERSION_XDVIK= 22.40y1
VERSION_JPATCH= 1.21
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
-TEXMF= ${PREFIX}/share/texmf
-#VARTEXFONTS= /var/tmp/texfonts
+
+TEXMF= share/texmf
XDVIDIR= ${TEXMF}/xdvi
-APPDEFAULTSDIR?= lib/X11/app-defaults
-CIDFONTDIR?= ${TEXMF}/dvipdfm/CIDFont
-
-PLIST_SUB+= APPDEFAULTSDIR=${APPDEFAULTSDIR}
-
-#VFFONTS= .:${MAKEJVFDIR}/vf//
-#XDEFS+= -DDEFAULT_VFFONTS=\"\\\"${VFFONTS}\\\"\"
-#TFMFONTS= .:${MAKEJVFDIR}/tfm/ptex//
-#XDEFS+= -DDEFAULT_TFMFONTS=\"\\\"${TFMFONTS}\\\"\"
-#PKFONTS= .:${PREFIX}/lib/fonts/pk{118:240:300:360:400:600}//
-#XDEFS+= -DDEFAULT_PKFONTS=\"\\\"${PKFONTS}\\\"\"
-
-DOCS= FAQ xdvi.icon CHANGES.xdvik-jp.html \
- README.xdvik-jp \
- README.src-specials \
- README.t1fonts \
- README.t1mapper \
- READMEs/ChangeLog.xdvik20a-j1.1 \
- READMEs/ChangeLog.xdvik20c-j1.0 \
- READMEs/HEADERS.DOC \
- READMEs/InternalVars \
- READMEs/README.jp+toc+hal2 \
- READMEs/README.jp-patch \
- READMEs/README.markpage+toc+printdvi \
- READMEs/README.markpage+toc+printdvi+paper \
- READMEs/README.miyu-beta6 \
- READMEs/README.ptex \
- READMEs/README.tasai-ussy \
- READMEs/README.xdvik18f-j1.0.patch \
- READMEs/README.xdvik18f-j1.1p5.patch \
- READMEs/README.xdvik20a-j1.1.patch \
- READMEs/README.xdvik20c-j1.0+hal2+dvisel \
- READMEs/README.xdvik20c-j1.0p1.patch \
- READMEs/README.vf2ft \
- READMEs/README.xdvik-22.15-j1.04.patch
-
-# ******************
-# USEPK_MODE:
-# Mode name of Metafont to give to print/pkfonts* is set.
-# It is care-and-attention to the other program how MetaFont wants to
-# be executed that do not use modeless. Kpathsea always searches
-# modeless because even if you specify any kind of mode.
-# MAKETEX_MODE:
-# It is mode name of default at executing MetaFont. The default is ljfour.
-# This needs not to be changed. It can be changed with an option or resource.
-# DVIPS:
-# Specification of `dvi -> ps' conversion program to use.
-# You can set following one: dvips, dvipsk-vflib, dvi2ps.
-# Other way... After installation if you change script
-# ${PREFIX}/libexec/xdviprint, any kind of program can be used.
-# ******************
-FONTTYPE?= metafont
-USEPK_MODE?= cx
-MAKETEX_MODE?= cx
-SHRINK?= 6
-BDPI?= 300
-DVIPS?= dvips
+TETEX_MODESW= ${LOCALBASE}/bin/tetex-modesw
+MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
-.if ${FONTTYPE} == metafont
-RUN_DEPENDS+= mktexpk:${PORTSDIR}/japanese/ptex-base
-MF_MODE= ${MAKETEX_MODE}
-.else
-MF_MODE= ${USEPK_MODE}
-CONFIGURE_ARGS+=--without-mktexpk-default
-.if ${FONTTYPE} == pkall
-PKGNAMESUFFIX= -${FONTTYPE}
-.else
-PKGNAMESUFFIX= -pk${BDPI}
-.endif
-.endif
+CIDFONTDIR= ${TEXMF}/dvipdfm/CIDFont
+TTFMINCHO= lib/X11/fonts/TrueType/kochi-mincho-subst.ttf
+TTFGOTHIC= lib/X11/fonts/TrueType/kochi-gothic-subst.ttf
-.BEGIN:
-.if ${FONTTYPE} != metafont && \
- ${FONTTYPE} != pkfont && ${FONTTYPE} != pkall
- @${ECHO} "Error: invalid value for FONTTYPE: \"${FONTTYPE}\""
- @${ECHO} "Possible values are: metafont, pkall and pkfont."
- @${FALSE}
-.endif
-.if ${BDPI} != 118 && ${BDPI} != 240 && \
- ${BDPI} != 300 && ${BDPI} != 360 && \
- ${BDPI} != 400 && ${BDPI} != 600
- @${ECHO} "Error: invalid value for BDPI: \"${BDPI}\""
- @${ECHO} "Possible values are: all, 118, 240, 300, 360, 400 and 600."
- @${FALSE}
-.endif
-.if ${DVIPS} != dvi2ps && ${DVIPS} != dvips
- @${ECHO} "Error: invalid value for DVIPS: \"${DVIPS}\""
- @${ECHO} "Possible values are: dvi2ps and dvips."
- @${FALSE}
-.endif
+VFONTCAPFT_SRC= ${WRKSRC}/vfontmap.freetype
+VFONTCAPFT_SUB= CIDFONTDIR=${LOCALBASE}/${CIDFONTDIR} \
+ TTFMINCHO=${X11BASE}/${TTFMINCHO} \
+ TTFGOTHIC=${X11BASE}/${TTFGOTHIC}
-.include <bsd.port.pre.mk>
+PKGINSTALL= ${WRKDIR}/pkg-install.sh
+PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
+PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \
+ MKTEXLSR=${MKTEXLSR}
+
+PLIST_SUB= TEXMF=${TEXMF}
-pre-fetch:
- @( \
- ${ECHO} "**************************************************************"; \
- ${ECHO} "* japanese/dvipsk is used in default. *"; \
- ${ECHO} "* Please refer to Makefile about a change. *"; \
- ${ECHO} "* or, after installation, please change *"; \
- ${ECHO} "* ${PREFIX}/libexec/xdviprint. *"; \
- ${ECHO} "**************************************************************")
+BDPI?= 600
+SHRINK?= 6
+DVIPS?= dvips
+.if !defined(MF_MODE) || empty(MF_MODE)
+MF_MODE!= case ${BDPI} in\
+ 118) ${ECHO_CMD} bitgraph ;;\
+ 240) ${ECHO_CMD} canonlbp ;;\
+ 300) ${ECHO_CMD} cx ;;\
+ 360) ${ECHO_CMD} canonbjc ;;\
+ 400) ${ECHO_CMD} nexthi ;;\
+ 600) ${ECHO_CMD} ljfour ;;\
+ *) ${ECHO_CMD} cx ;;\
+ esac
+.endif
+
+DOCS= FAQ xdvi.icon CHANGES.xdvik-jp.html \
+ README.xdvik-jp README.src-specials \
+ README.t1fonts README.t1mapper \
+ READMEs/ChangeLog.xdvik20a-j1.1 READMEs/ChangeLog.xdvik20c-j1.0 \
+ READMEs/HEADERS.DOC READMEs/InternalVars \
+ READMEs/README.jp+toc+hal2 READMEs/README.jp-patch \
+ READMEs/README.markpage+toc+printdvi \
+ READMEs/README.markpage+toc+printdvi+paper \
+ READMEs/README.miyu-beta6 READMEs/README.ptex \
+ READMEs/README.tasai-ussy READMEs/README.xdvik18f-j1.0.patch \
+ READMEs/README.xdvik18f-j1.1p5.patch \
+ READMEs/README.xdvik20a-j1.1.patch \
+ READMEs/README.xdvik20c-j1.0+hal2+dvisel \
+ READMEs/README.xdvik20c-j1.0p1.patch READMEs/README.vf2ft \
+ READMEs/README.xdvik-22.15-j1.04.patch
pre-build:
- @(cd ${WRKSRC} ; ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
- ${SED} -e 's,%%CIDFONTDIR%%,${CIDFONTDIR},'\
- < ${FILESDIR}/vfontmap.freetype > ${WRKSRC}/vfontmap.freetype
- ${CP} ${FILESDIR}/vfontmap.vflib ${WRKSRC}/vfontmap.vflib
+ ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
+ ${CHMOD} 0755 ${PKGINSTALL}
+ @(cd ${WRKSRC} && ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
+ ${SED} ${VFONTCAPFT_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/vfontmap.freetype \
+ > ${VFONTCAPFT_SRC}
do-install:
@(cd ${WRKSRC}/texk/xdvik ; ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
post-install:
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.freetype ${XDVIDIR}
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.vflib ${XDVIDIR}
-.if defined(WITH_VF2FT)
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.freetype ${XDVIDIR}/vfontmap
-.else
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.vflib ${XDVIDIR}/vfontmap
-.endif
- @${INSTALL_DATA} ${WRKSRC}/texk/xdvik/texmf/XDvi ${X11BASE}/${APPDEFAULTSDIR}
+ ${RM} -f ${PREFIX}/${XDVIDIR}/vfontmap.freetype
+ ${RM} -f ${PREFIX}/${XDVIDIR}/vfontmap.vflib
+ ${INSTALL_DATA} \
+ ${VFONTCAPFT_SRC} \
+ ${PREFIX}/${XDVIDIR}/vfontmap.dist
+ ${INSTALL_DATA} \
+ ${VFONTCAPFT_SRC} \
+ ${PREFIX}/${XDVIDIR}/vfontmap
+ ${INSTALL_DATA} \
+ ${WRKSRC}/texk/xdvik/texmf/XDvi \
+ ${PREFIX}/${XDVIDIR}/XDvi.ptex-tetex
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @for i in ${DOCS} ; do \
- ${INSTALL_DATA} ${WRKSRC}/texk/xdvik/$$i ${DOCSDIR}; \
- done
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/texk/xdvik/,} ${DOCSDIR}
.endif
- @[ -x ${PREFIX}/bin/mktexlsr ] && ${PREFIX}/bin/mktexlsr ${PREFIX}/share/texmf
+ @${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
diff --git a/japanese/xdvik-vflib/files/pkg-install.in b/japanese/xdvik-vflib/files/pkg-install.in
new file mode 100644
index 000000000000..52eee144d440
--- /dev/null
+++ b/japanese/xdvik-vflib/files/pkg-install.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD$
+
+GREP=/usr/bin/grep
+SED=/usr/bin/sed
+MODE=ptex-tetex
+
+MKTEXLSR=%%MKTEXLSR%%
+TETEX_MODESW=%%TETEX_MODESW%%
+
+case $2 in
+POST-INSTALL)
+ ${TETEX_MODESW} ${MODE} xdvi forceinstall
+ ${MKTEXLSR}
+ ;;
+DEINSTALL)
+ ${TETEX_MODESW} default xdvi forceinstall
+ ${MKTEXLSR}
+ ;;
+esac
diff --git a/japanese/xdvik-vflib/files/vfontmap.freetype b/japanese/xdvik-vflib/files/vfontmap.freetype
index 8bc3d603b816..6ef76725dea8 100644
--- a/japanese/xdvik-vflib/files/vfontmap.freetype
+++ b/japanese/xdvik-vflib/files/vfontmap.freetype
@@ -7,22 +7,22 @@
% "tfm name1" "{,unicode,adobejapan,cidv}"
% "tfm name2" "{,unicode,adobejapan,cidv}"
-%%CIDFONTDIR%%/HiraMinPro-W3.otf
-%/usr/X11R6/lib/X11/fonts/truetype/kochi-mincho-subst.ttf
-%/usr/X11R6/lib/X11/fonts/TrueType/kochi-mincho.ttf
+%%%CIDFONTDIR%%/HiraMinPro-W3.otf
+%%TTFMINCHO%%
min
tmin
nmin
jis
jis-v
-%%CIDFONTDIR%%/HiraKakuPro-W6.otf
-%/usr/X11R6/lib/X11/fonts/truetype/kochi-gothic-subst.ttf
-%/usr/X11R6/lib/X11/fonts/TrueType/kochi-gothic.ttf
+ dm
+%%%CIDFONTDIR%%/HiraKakuPro-W6.otf
+%%TTFGOTHIC%%
goth
tgoth
ngoth
jisg
jisg-v
+ dg
%%CIDFONTDIR%%/HiraMinPro-W6.otf
fmin
%%CIDFONTDIR%%/HiraKakuPro-W8.otf
diff --git a/japanese/xdvik-vflib/files/vfontmap.vflib b/japanese/xdvik-vflib/files/vfontmap.vflib
deleted file mode 100644
index cbbf6ec1f282..000000000000
--- a/japanese/xdvik-vflib/files/vfontmap.vflib
+++ /dev/null
@@ -1,41 +0,0 @@
-% $FreeBSD$
-%
-% Sample "vfontmap" (--with-vflib=yes)
-%
-
-% "tfm name" "/etc/vfontcap entry" "{,tate}"
-
-% for ASCII pTeX
-min min
-tmin tmin
-nmin min
-goth goth
-tgoth tgoth
-ngoth goth
-
-% for JIS font metric
-jis min
-jis-v tmin
-jisg goth
-jisg-v tgoth
-
-% for NTT JTeX
-dm min
-dg goth
-
-% etc
-fmin fmin
-fgoth goth
-mgoth maru
-
-% for morisawa
-ryumin-l min
-ryumin-l-v tmin
-gtbbb-m goth
-gtbbb-m-v tgoth
-futomin-b min
-futomin-b-v tmin
-futogo-b goth
-futogo-b-v tgoth
-jun101-l goth
-jun101-l-v tgoth
diff --git a/japanese/xdvik-vflib/pkg-descr b/japanese/xdvik-vflib/pkg-descr
index 4d4526906c33..54155c7c0e3c 100644
--- a/japanese/xdvik-vflib/pkg-descr
+++ b/japanese/xdvik-vflib/pkg-descr
@@ -1,14 +1,13 @@
-Japanese dvi file previewer for X.
+This is a Japanese dvi file previewer for X which supports:
- 1. support dvi file of ASCII Japanese TeX(and pTeX) and NTT jTeX.
- 2. require METAFONT and VFlib (vector font library).
- 3. require kpathsearch libraries version 3.2 (search library)
- 4. support Color dvi file.(support color anti-aliasing.)
- 5. built-in EPS preview (need to any ghostscript)
- 6. print out from this program (use lpr).
- 7. convert dvi -> ps (default use japanese/dvipsk).
- 8. wheel mouse supports.
+ 1. dvi file of ASCII Japanese TeX(and pTeX) and NTT jTeX.
+ 2. Color dvi file.(support color anti-aliasing.)
+ 3. built-in EPS preview (using ghostscript)
+ 4. printing (using lpr).
+ 5. convert dvi -> ps (using japanese/dvipsk by default).
+ 6. wheel mouse.
-- Kentaro Inagaki <inagaki@tg.rim.or.jp>
+And this requires METAFONT, FreeType2 (vector font library),
+and kpathsearch libraries version 3.2 (search library).
WWW: http://www.nn.iij4u.or.jp/~tutimura/tex/xdvi.html
diff --git a/japanese/xdvik-vflib/pkg-plist b/japanese/xdvik-vflib/pkg-plist
index 5d6062008264..1877a3a82e01 100644
--- a/japanese/xdvik-vflib/pkg-plist
+++ b/japanese/xdvik-vflib/pkg-plist
@@ -1,14 +1,15 @@
+@comment $FreeBSD$
bin/t1mapper
bin/xdvi
bin/xdvizilla
libexec/xdviprint
-share/texmf/xdvi/vfontmap
-share/texmf/xdvi/vfontmap.freetype
-share/texmf/xdvi/vfontmap.vflib
-share/texmf/xdvi/xdvi.cfg
-share/texmf/xdvi/xdvipaper.dvi2ps-j
-share/texmf/xdvi/xdvipaper.dvips
-share/texmf/xdvi/xdvipaper.jdvi2kps
+%%TEXMF%%/xdvi/vfontmap
+%%TEXMF%%/xdvi/vfontmap.dist
+%%TEXMF%%/xdvi/xdvi.cfg
+%%TEXMF%%/xdvi/xdvipaper.dvi2ps-j
+%%TEXMF%%/xdvi/xdvipaper.dvips
+%%TEXMF%%/xdvi/xdvipaper.jdvi2kps
+%%TEXMF%%/xdvi/XDvi.ptex-tetex
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.xdvik-jp.html
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.xdvik20a-j1.1
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.xdvik20c-j1.0
@@ -34,9 +35,4 @@ share/texmf/xdvi/xdvipaper.jdvi2kps
%%PORTDOCS%%%%DOCSDIR%%/README.xdvik20c-j1.0p1.patch
%%PORTDOCS%%%%DOCSDIR%%/README.xdvik-22.15-j1.04.patch
%%PORTDOCS%%%%DOCSDIR%%/xdvi.icon
-@dirrm share/texmf/xdvi
-@dirrm %%DOCSDIR%%
-@exec [ -x %D/bin/mktexlsr ] && %D/bin/mktexlsr %D/share/texmf
-@unexec [ -x %D/bin/mktexlsr ] && %D/bin/mktexlsr %D/share/texmf
-@cwd %%X11BASE%%
-%%APPDEFAULTSDIR%%/XDvi
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/japanese/xdvik-vflib/scripts/post-configure b/japanese/xdvik-vflib/scripts/post-configure
deleted file mode 100644
index 1a01eae6fec5..000000000000
--- a/japanese/xdvik-vflib/scripts/post-configure
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-chgdirs=". texk texk/kpathsea texk/xdvik"
-
-cd ${WRKSRC}
-
-for dir in ${chgdirs}; do
- ${MV} -f ${dir}/Makefile ${dir}/Makefile.bak
- ${SED} \
- -e 's@^prefix[ ]*=.*$@prefix=${PREFIX}@' \
- -e 's@^texmf[ ]*=.*$@texmf=${PREFIX}/share/texmf@' \
- < ${dir}/Makefile.bak > ${dir}/Makefile
-done
diff --git a/japanese/xdvik/Makefile b/japanese/xdvik/Makefile
index ecb1d54d0c55..eab0ee125550 100644
--- a/japanese/xdvik/Makefile
+++ b/japanese/xdvik/Makefile
@@ -7,27 +7,35 @@
PORTNAME= xdvik
PORTVERSION= ${VERSION_XDVIK}.${VERSION_JPATCH}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xdvi
+PKGNAMEPREFIX= ja-
+PKGNAMESUFFIX= -tetex
DISTNAME= xdvik-${VERSION_XDVIK}
PATCH_SITES= http://www.nn.iij4u.or.jp/~tutimura/tex/
-PATCHFILES= xdvik-${VERSION_XDVIK}-j${VERSION_JPATCH}.patch.gz
+PATCHFILES= ${PORTNAME}-${VERSION_XDVIK}-j${VERSION_JPATCH}.patch.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= hrs@FreeBSD.org
-COMMENT= DVI Previewer(kpathsearch) for X. + jp-patch
-
-.if defined(WITH_VF2FT)
-LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
-PKGNAMESUFFIX= -ft
-.else
-LIB_DEPENDS= VFlib2:${PORTSDIR}/japanese/vflib
-PKGNAMESUFFIX= -vflib
-.endif
-LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww \
+COMMENT= DVI Previewer(kpathsearch) for X. + freetype support
+
+.include <bsd.port.pre.mk>
+
+BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
+ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
+ mktexlsr:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
+ ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
+ mktexlsr:${PORTSDIR}/print/teTeX-base \
+ ${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex \
+ ${X11BASE}/${TTFMINCHO}:${PORTSDIR}/japanese/kochi-ttfonts \
+ ${X11BASE}/${TTFGOTHIC}:${PORTSDIR}/japanese/kochi-ttfonts
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
DIST_SUBDIR= xdvik
@@ -35,25 +43,25 @@ USE_XLIB= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
CFLAGS+= -I${LOCALBASE}/include
-CONFIGURE_ARGS= --enable-a4 --enable-shrink=${SHRINK} \
+CONFIGURE_ARGS= --datadir=${PREFIX}/${TEXMF:S,texmf$,,} \
+ --enable-a4 --enable-shrink=${SHRINK} \
--with-dvifilter=${DVIPS} \
--enable-xdviprint=${PREFIX}/libexec/xdviprint \
--enable-smallpanel --enable-zoombutton \
+ --enable-gf \
--with-system-wwwlib --with-libwww-libdir=${LIBWWW_PREFIX}/lib \
--with-libwww-include=${LIBWWW_PREFIX}/include/w3c-libwww \
--with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \
--with-t1lib-include=${LIBT1_PREFIX}/include \
- --enable-vikey --disable-multiplatform
-.if defined(WITH_VF2FT)
-CONFIGURE_ARGS+= --with-vflib=vf2ft
-.endif
+ --enable-vikey --disable-multiplatform \
+ --with-vflib=vf2ft
CONFIGURE_ENV= INSTALL="${INSTALL}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
- INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_MAN="${INSTALL_MAN}" \
XDEFS='-DMFMODE=\"${MF_MODE}\"'
SCRIPTS_ENV= MV=${MV} SED=${SED}
-#MAKE_ENV= 'XDEFS=${XDEFS}'
PATCH_STRIP= -p1
MAN1= xdvi.1 xdvizilla.1 t1mapper.1
@@ -61,136 +69,88 @@ VERSION_XDVIK= 22.40y1
VERSION_JPATCH= 1.21
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
-TEXMF= ${PREFIX}/share/texmf
-#VARTEXFONTS= /var/tmp/texfonts
+
+TEXMF= share/texmf
XDVIDIR= ${TEXMF}/xdvi
-APPDEFAULTSDIR?= lib/X11/app-defaults
-CIDFONTDIR?= ${TEXMF}/dvipdfm/CIDFont
-
-PLIST_SUB+= APPDEFAULTSDIR=${APPDEFAULTSDIR}
-
-#VFFONTS= .:${MAKEJVFDIR}/vf//
-#XDEFS+= -DDEFAULT_VFFONTS=\"\\\"${VFFONTS}\\\"\"
-#TFMFONTS= .:${MAKEJVFDIR}/tfm/ptex//
-#XDEFS+= -DDEFAULT_TFMFONTS=\"\\\"${TFMFONTS}\\\"\"
-#PKFONTS= .:${PREFIX}/lib/fonts/pk{118:240:300:360:400:600}//
-#XDEFS+= -DDEFAULT_PKFONTS=\"\\\"${PKFONTS}\\\"\"
-
-DOCS= FAQ xdvi.icon CHANGES.xdvik-jp.html \
- README.xdvik-jp \
- README.src-specials \
- README.t1fonts \
- README.t1mapper \
- READMEs/ChangeLog.xdvik20a-j1.1 \
- READMEs/ChangeLog.xdvik20c-j1.0 \
- READMEs/HEADERS.DOC \
- READMEs/InternalVars \
- READMEs/README.jp+toc+hal2 \
- READMEs/README.jp-patch \
- READMEs/README.markpage+toc+printdvi \
- READMEs/README.markpage+toc+printdvi+paper \
- READMEs/README.miyu-beta6 \
- READMEs/README.ptex \
- READMEs/README.tasai-ussy \
- READMEs/README.xdvik18f-j1.0.patch \
- READMEs/README.xdvik18f-j1.1p5.patch \
- READMEs/README.xdvik20a-j1.1.patch \
- READMEs/README.xdvik20c-j1.0+hal2+dvisel \
- READMEs/README.xdvik20c-j1.0p1.patch \
- READMEs/README.vf2ft \
- READMEs/README.xdvik-22.15-j1.04.patch
-
-# ******************
-# USEPK_MODE:
-# Mode name of Metafont to give to print/pkfonts* is set.
-# It is care-and-attention to the other program how MetaFont wants to
-# be executed that do not use modeless. Kpathsea always searches
-# modeless because even if you specify any kind of mode.
-# MAKETEX_MODE:
-# It is mode name of default at executing MetaFont. The default is ljfour.
-# This needs not to be changed. It can be changed with an option or resource.
-# DVIPS:
-# Specification of `dvi -> ps' conversion program to use.
-# You can set following one: dvips, dvipsk-vflib, dvi2ps.
-# Other way... After installation if you change script
-# ${PREFIX}/libexec/xdviprint, any kind of program can be used.
-# ******************
-FONTTYPE?= metafont
-USEPK_MODE?= cx
-MAKETEX_MODE?= cx
-SHRINK?= 6
-BDPI?= 300
-DVIPS?= dvips
+TETEX_MODESW= ${LOCALBASE}/bin/tetex-modesw
+MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
-.if ${FONTTYPE} == metafont
-RUN_DEPENDS+= mktexpk:${PORTSDIR}/japanese/ptex-base
-MF_MODE= ${MAKETEX_MODE}
-.else
-MF_MODE= ${USEPK_MODE}
-CONFIGURE_ARGS+=--without-mktexpk-default
-.if ${FONTTYPE} == pkall
-PKGNAMESUFFIX= -${FONTTYPE}
-.else
-PKGNAMESUFFIX= -pk${BDPI}
-.endif
-.endif
+CIDFONTDIR= ${TEXMF}/dvipdfm/CIDFont
+TTFMINCHO= lib/X11/fonts/TrueType/kochi-mincho-subst.ttf
+TTFGOTHIC= lib/X11/fonts/TrueType/kochi-gothic-subst.ttf
-.BEGIN:
-.if ${FONTTYPE} != metafont && \
- ${FONTTYPE} != pkfont && ${FONTTYPE} != pkall
- @${ECHO} "Error: invalid value for FONTTYPE: \"${FONTTYPE}\""
- @${ECHO} "Possible values are: metafont, pkall and pkfont."
- @${FALSE}
-.endif
-.if ${BDPI} != 118 && ${BDPI} != 240 && \
- ${BDPI} != 300 && ${BDPI} != 360 && \
- ${BDPI} != 400 && ${BDPI} != 600
- @${ECHO} "Error: invalid value for BDPI: \"${BDPI}\""
- @${ECHO} "Possible values are: all, 118, 240, 300, 360, 400 and 600."
- @${FALSE}
-.endif
-.if ${DVIPS} != dvi2ps && ${DVIPS} != dvips
- @${ECHO} "Error: invalid value for DVIPS: \"${DVIPS}\""
- @${ECHO} "Possible values are: dvi2ps and dvips."
- @${FALSE}
-.endif
+VFONTCAPFT_SRC= ${WRKSRC}/vfontmap.freetype
+VFONTCAPFT_SUB= CIDFONTDIR=${LOCALBASE}/${CIDFONTDIR} \
+ TTFMINCHO=${X11BASE}/${TTFMINCHO} \
+ TTFGOTHIC=${X11BASE}/${TTFGOTHIC}
-.include <bsd.port.pre.mk>
+PKGINSTALL= ${WRKDIR}/pkg-install.sh
+PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
+PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \
+ MKTEXLSR=${MKTEXLSR}
+
+PLIST_SUB= TEXMF=${TEXMF}
-pre-fetch:
- @( \
- ${ECHO} "**************************************************************"; \
- ${ECHO} "* japanese/dvipsk is used in default. *"; \
- ${ECHO} "* Please refer to Makefile about a change. *"; \
- ${ECHO} "* or, after installation, please change *"; \
- ${ECHO} "* ${PREFIX}/libexec/xdviprint. *"; \
- ${ECHO} "**************************************************************")
+BDPI?= 600
+SHRINK?= 6
+DVIPS?= dvips
+.if !defined(MF_MODE) || empty(MF_MODE)
+MF_MODE!= case ${BDPI} in\
+ 118) ${ECHO_CMD} bitgraph ;;\
+ 240) ${ECHO_CMD} canonlbp ;;\
+ 300) ${ECHO_CMD} cx ;;\
+ 360) ${ECHO_CMD} canonbjc ;;\
+ 400) ${ECHO_CMD} nexthi ;;\
+ 600) ${ECHO_CMD} ljfour ;;\
+ *) ${ECHO_CMD} cx ;;\
+ esac
+.endif
+
+DOCS= FAQ xdvi.icon CHANGES.xdvik-jp.html \
+ README.xdvik-jp README.src-specials \
+ README.t1fonts README.t1mapper \
+ READMEs/ChangeLog.xdvik20a-j1.1 READMEs/ChangeLog.xdvik20c-j1.0 \
+ READMEs/HEADERS.DOC READMEs/InternalVars \
+ READMEs/README.jp+toc+hal2 READMEs/README.jp-patch \
+ READMEs/README.markpage+toc+printdvi \
+ READMEs/README.markpage+toc+printdvi+paper \
+ READMEs/README.miyu-beta6 READMEs/README.ptex \
+ READMEs/README.tasai-ussy READMEs/README.xdvik18f-j1.0.patch \
+ READMEs/README.xdvik18f-j1.1p5.patch \
+ READMEs/README.xdvik20a-j1.1.patch \
+ READMEs/README.xdvik20c-j1.0+hal2+dvisel \
+ READMEs/README.xdvik20c-j1.0p1.patch READMEs/README.vf2ft \
+ READMEs/README.xdvik-22.15-j1.04.patch
pre-build:
- @(cd ${WRKSRC} ; ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
- ${SED} -e 's,%%CIDFONTDIR%%,${CIDFONTDIR},'\
- < ${FILESDIR}/vfontmap.freetype > ${WRKSRC}/vfontmap.freetype
- ${CP} ${FILESDIR}/vfontmap.vflib ${WRKSRC}/vfontmap.vflib
+ ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
+ ${CHMOD} 0755 ${PKGINSTALL}
+ @(cd ${WRKSRC} && ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
+ ${SED} ${VFONTCAPFT_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/vfontmap.freetype \
+ > ${VFONTCAPFT_SRC}
do-install:
@(cd ${WRKSRC}/texk/xdvik ; ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
post-install:
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.freetype ${XDVIDIR}
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.vflib ${XDVIDIR}
-.if defined(WITH_VF2FT)
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.freetype ${XDVIDIR}/vfontmap
-.else
- @${INSTALL_DATA} ${WRKSRC}/vfontmap.vflib ${XDVIDIR}/vfontmap
-.endif
- @${INSTALL_DATA} ${WRKSRC}/texk/xdvik/texmf/XDvi ${X11BASE}/${APPDEFAULTSDIR}
+ ${RM} -f ${PREFIX}/${XDVIDIR}/vfontmap.freetype
+ ${RM} -f ${PREFIX}/${XDVIDIR}/vfontmap.vflib
+ ${INSTALL_DATA} \
+ ${VFONTCAPFT_SRC} \
+ ${PREFIX}/${XDVIDIR}/vfontmap.dist
+ ${INSTALL_DATA} \
+ ${VFONTCAPFT_SRC} \
+ ${PREFIX}/${XDVIDIR}/vfontmap
+ ${INSTALL_DATA} \
+ ${WRKSRC}/texk/xdvik/texmf/XDvi \
+ ${PREFIX}/${XDVIDIR}/XDvi.ptex-tetex
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @for i in ${DOCS} ; do \
- ${INSTALL_DATA} ${WRKSRC}/texk/xdvik/$$i ${DOCSDIR}; \
- done
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/texk/xdvik/,} ${DOCSDIR}
.endif
- @[ -x ${PREFIX}/bin/mktexlsr ] && ${PREFIX}/bin/mktexlsr ${PREFIX}/share/texmf
+ @${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
diff --git a/japanese/xdvik/files/pkg-install.in b/japanese/xdvik/files/pkg-install.in
new file mode 100644
index 000000000000..52eee144d440
--- /dev/null
+++ b/japanese/xdvik/files/pkg-install.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD$
+
+GREP=/usr/bin/grep
+SED=/usr/bin/sed
+MODE=ptex-tetex
+
+MKTEXLSR=%%MKTEXLSR%%
+TETEX_MODESW=%%TETEX_MODESW%%
+
+case $2 in
+POST-INSTALL)
+ ${TETEX_MODESW} ${MODE} xdvi forceinstall
+ ${MKTEXLSR}
+ ;;
+DEINSTALL)
+ ${TETEX_MODESW} default xdvi forceinstall
+ ${MKTEXLSR}
+ ;;
+esac
diff --git a/japanese/xdvik/files/vfontmap.freetype b/japanese/xdvik/files/vfontmap.freetype
index 8bc3d603b816..6ef76725dea8 100644
--- a/japanese/xdvik/files/vfontmap.freetype
+++ b/japanese/xdvik/files/vfontmap.freetype
@@ -7,22 +7,22 @@
% "tfm name1" "{,unicode,adobejapan,cidv}"
% "tfm name2" "{,unicode,adobejapan,cidv}"
-%%CIDFONTDIR%%/HiraMinPro-W3.otf
-%/usr/X11R6/lib/X11/fonts/truetype/kochi-mincho-subst.ttf
-%/usr/X11R6/lib/X11/fonts/TrueType/kochi-mincho.ttf
+%%%CIDFONTDIR%%/HiraMinPro-W3.otf
+%%TTFMINCHO%%
min
tmin
nmin
jis
jis-v
-%%CIDFONTDIR%%/HiraKakuPro-W6.otf
-%/usr/X11R6/lib/X11/fonts/truetype/kochi-gothic-subst.ttf
-%/usr/X11R6/lib/X11/fonts/TrueType/kochi-gothic.ttf
+ dm
+%%%CIDFONTDIR%%/HiraKakuPro-W6.otf
+%%TTFGOTHIC%%
goth
tgoth
ngoth
jisg
jisg-v
+ dg
%%CIDFONTDIR%%/HiraMinPro-W6.otf
fmin
%%CIDFONTDIR%%/HiraKakuPro-W8.otf
diff --git a/japanese/xdvik/files/vfontmap.vflib b/japanese/xdvik/files/vfontmap.vflib
deleted file mode 100644
index cbbf6ec1f282..000000000000
--- a/japanese/xdvik/files/vfontmap.vflib
+++ /dev/null
@@ -1,41 +0,0 @@
-% $FreeBSD$
-%
-% Sample "vfontmap" (--with-vflib=yes)
-%
-
-% "tfm name" "/etc/vfontcap entry" "{,tate}"
-
-% for ASCII pTeX
-min min
-tmin tmin
-nmin min
-goth goth
-tgoth tgoth
-ngoth goth
-
-% for JIS font metric
-jis min
-jis-v tmin
-jisg goth
-jisg-v tgoth
-
-% for NTT JTeX
-dm min
-dg goth
-
-% etc
-fmin fmin
-fgoth goth
-mgoth maru
-
-% for morisawa
-ryumin-l min
-ryumin-l-v tmin
-gtbbb-m goth
-gtbbb-m-v tgoth
-futomin-b min
-futomin-b-v tmin
-futogo-b goth
-futogo-b-v tgoth
-jun101-l goth
-jun101-l-v tgoth
diff --git a/japanese/xdvik/pkg-descr b/japanese/xdvik/pkg-descr
index 4d4526906c33..54155c7c0e3c 100644
--- a/japanese/xdvik/pkg-descr
+++ b/japanese/xdvik/pkg-descr
@@ -1,14 +1,13 @@
-Japanese dvi file previewer for X.
+This is a Japanese dvi file previewer for X which supports:
- 1. support dvi file of ASCII Japanese TeX(and pTeX) and NTT jTeX.
- 2. require METAFONT and VFlib (vector font library).
- 3. require kpathsearch libraries version 3.2 (search library)
- 4. support Color dvi file.(support color anti-aliasing.)
- 5. built-in EPS preview (need to any ghostscript)
- 6. print out from this program (use lpr).
- 7. convert dvi -> ps (default use japanese/dvipsk).
- 8. wheel mouse supports.
+ 1. dvi file of ASCII Japanese TeX(and pTeX) and NTT jTeX.
+ 2. Color dvi file.(support color anti-aliasing.)
+ 3. built-in EPS preview (using ghostscript)
+ 4. printing (using lpr).
+ 5. convert dvi -> ps (using japanese/dvipsk by default).
+ 6. wheel mouse.
-- Kentaro Inagaki <inagaki@tg.rim.or.jp>
+And this requires METAFONT, FreeType2 (vector font library),
+and kpathsearch libraries version 3.2 (search library).
WWW: http://www.nn.iij4u.or.jp/~tutimura/tex/xdvi.html
diff --git a/japanese/xdvik/pkg-plist b/japanese/xdvik/pkg-plist
index 5d6062008264..1877a3a82e01 100644
--- a/japanese/xdvik/pkg-plist
+++ b/japanese/xdvik/pkg-plist
@@ -1,14 +1,15 @@
+@comment $FreeBSD$
bin/t1mapper
bin/xdvi
bin/xdvizilla
libexec/xdviprint
-share/texmf/xdvi/vfontmap
-share/texmf/xdvi/vfontmap.freetype
-share/texmf/xdvi/vfontmap.vflib
-share/texmf/xdvi/xdvi.cfg
-share/texmf/xdvi/xdvipaper.dvi2ps-j
-share/texmf/xdvi/xdvipaper.dvips
-share/texmf/xdvi/xdvipaper.jdvi2kps
+%%TEXMF%%/xdvi/vfontmap
+%%TEXMF%%/xdvi/vfontmap.dist
+%%TEXMF%%/xdvi/xdvi.cfg
+%%TEXMF%%/xdvi/xdvipaper.dvi2ps-j
+%%TEXMF%%/xdvi/xdvipaper.dvips
+%%TEXMF%%/xdvi/xdvipaper.jdvi2kps
+%%TEXMF%%/xdvi/XDvi.ptex-tetex
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.xdvik-jp.html
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.xdvik20a-j1.1
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.xdvik20c-j1.0
@@ -34,9 +35,4 @@ share/texmf/xdvi/xdvipaper.jdvi2kps
%%PORTDOCS%%%%DOCSDIR%%/README.xdvik20c-j1.0p1.patch
%%PORTDOCS%%%%DOCSDIR%%/README.xdvik-22.15-j1.04.patch
%%PORTDOCS%%%%DOCSDIR%%/xdvi.icon
-@dirrm share/texmf/xdvi
-@dirrm %%DOCSDIR%%
-@exec [ -x %D/bin/mktexlsr ] && %D/bin/mktexlsr %D/share/texmf
-@unexec [ -x %D/bin/mktexlsr ] && %D/bin/mktexlsr %D/share/texmf
-@cwd %%X11BASE%%
-%%APPDEFAULTSDIR%%/XDvi
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/japanese/xdvik/scripts/post-configure b/japanese/xdvik/scripts/post-configure
deleted file mode 100644
index 1a01eae6fec5..000000000000
--- a/japanese/xdvik/scripts/post-configure
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-chgdirs=". texk texk/kpathsea texk/xdvik"
-
-cd ${WRKSRC}
-
-for dir in ${chgdirs}; do
- ${MV} -f ${dir}/Makefile ${dir}/Makefile.bak
- ${SED} \
- -e 's@^prefix[ ]*=.*$@prefix=${PREFIX}@' \
- -e 's@^texmf[ ]*=.*$@texmf=${PREFIX}/share/texmf@' \
- < ${dir}/Makefile.bak > ${dir}/Makefile
-done