summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2006-02-20 20:32:58 +0000
committerHiroki Sato <hrs@FreeBSD.org>2006-02-20 20:32:58 +0000
commit68fe7c6103024aca71400366ff6669aa7883a34b (patch)
treeb454e4a737f613b77a8d529d375cba84c625061a /chinese
parentPerl 5.8.8 is the default now. (diff)
- Fix RUN_DEPENDS.
- Use SUB_FILES for pkg-install/pkg-deinstall scripts. - Fix a hard-coded ghostscript version number in pkg-deinstall. - Bump PORTREVISION because of print/adobe-cmaps update.
Notes
Notes: svn path=/head/; revision=156525
Diffstat (limited to 'chinese')
-rw-r--r--chinese/moefonts-cid/Makefile10
-rw-r--r--chinese/moefonts-cid/files/pkg-deinstall.in (renamed from chinese/moefonts-cid/pkg-deinstall)5
-rw-r--r--chinese/moefonts-cid/files/pkg-install.in (renamed from chinese/moefonts-cid/pkg-install)3
3 files changed, 12 insertions, 6 deletions
diff --git a/chinese/moefonts-cid/Makefile b/chinese/moefonts-cid/Makefile
index 5faabc2e161a..27316bfa2413 100644
--- a/chinese/moefonts-cid/Makefile
+++ b/chinese/moefonts-cid/Makefile
@@ -7,7 +7,7 @@
PORTNAME= moefonts-cid
PORTVERSION= 1.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= chinese print
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/moefonts-cid/ \
ftp://ftp.ora.com/pub/examples/nutshell/cjkv/adobe/ \
@@ -18,11 +18,15 @@ EXTRACT_ONLY= # empty
MAINTAINER= ports@FreeBSD.org
COMMENT= MOE CIDFonts converted by Adobe
-RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
+RUN_DEPENDS= ${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
+USE_GHOSTSCRIPT_RUN= yes
NO_BUILD= YES
+SUB_FILES= pkg-install pkg-deinstall
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-USE_GHOSTSCRIPT_RUN= yes
+ADOBECMAPDIR= ${LOCALBASE}/share/fonts/adobe-cmaps
pre-fetch:
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
diff --git a/chinese/moefonts-cid/pkg-deinstall b/chinese/moefonts-cid/files/pkg-deinstall.in
index ee8ae9a6da4b..0a378bcd7a72 100644
--- a/chinese/moefonts-cid/pkg-deinstall
+++ b/chinese/moefonts-cid/files/pkg-deinstall.in
@@ -1,7 +1,8 @@
#!/bin/sh
+# $FreeBSD$
-GSVER=7.06
-GSDIR=${PKG_PREFIX}/share/ghostscript
+GSVER=`gs --version`
+GSDIR=%%PREFIX%%/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
FONTMAPTMP=${FONTMAP}.tmp
diff --git a/chinese/moefonts-cid/pkg-install b/chinese/moefonts-cid/files/pkg-install.in
index f8379cb9f195..a91ed86a4f16 100644
--- a/chinese/moefonts-cid/pkg-install
+++ b/chinese/moefonts-cid/files/pkg-install.in
@@ -1,7 +1,8 @@
#!/bin/sh
+# $FreeBSD$
GSVER=`gs --version`
-GSDIR=${PREFIX}/share/ghostscript
+GSDIR=%%PREFIX%%/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
# Run just once.