aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimura <imura@FreeBSD.org>2000-02-13 04:14:20 +0800
committerimura <imura@FreeBSD.org>2000-02-13 04:14:20 +0800
commite3f2468d546066a236e52a774ba27b65817873da (patch)
tree088939b2d5267c81aecf4aa88120e011cc892347
parent86bf77dba69e75b7783aacbc9b0598f7e90ce2aa (diff)
downloadfreebsd-ports-gnome-e3f2468d546066a236e52a774ba27b65817873da.tar.gz
freebsd-ports-gnome-e3f2468d546066a236e52a774ba27b65817873da.tar.zst
freebsd-ports-gnome-e3f2468d546066a236e52a774ba27b65817873da.zip
Do mktexlsr in install to update cache of pTex.
PR: 16616 Submitted by: maintainer
-rw-r--r--japanese/makejvf/Makefile8
-rw-r--r--japanese/makejvf/pkg-plist2
2 files changed, 9 insertions, 1 deletions
diff --git a/japanese/makejvf/Makefile b/japanese/makejvf/Makefile
index 90e1816c167e..dcedc0eda2fb 100644
--- a/japanese/makejvf/Makefile
+++ b/japanese/makejvf/Makefile
@@ -38,6 +38,8 @@ post-extract:
${TAR} -C ${WRKDIR}/ -zxf ${DISTDIR}/${DIST_SUBDIR}/$$i${EXTRACT_SUFX} ; \
done
+.include <bsd.port.pre.mk>
+
post-install:
@${MKDIR} ${MAP_DIR}
@for i in ${PTEX_TFM} ; do \
@@ -70,4 +72,8 @@ post-install:
done
.endif
-.include <bsd.port.mk>
+.if exists(${PREFIX}/bin/mktexlsr)
+ @${PREFIX}/bin/mktexlsr
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/japanese/makejvf/pkg-plist b/japanese/makejvf/pkg-plist
index 5c742c3b8648..e03c03f548ba 100644
--- a/japanese/makejvf/pkg-plist
+++ b/japanese/makejvf/pkg-plist
@@ -136,3 +136,5 @@ share/texmf/fonts/vf/makejvf/Ryumin-Light-V.vf
@dirrm share/texmf/fonts/tfm/makejvf
@dirrm share/texmf/fonts/vf/makejvf
@dirrm share/doc/makejvf-fkr
+@exec if [ -x %D/bin/mktexlsr ]; then %D/bin/mktexlsr; fi
+@unexec if [ -x %D/bin/mktexlsr ]; then %D/bin/mktexlsr; fi