diff options
author | hrs <hrs@FreeBSD.org> | 2006-02-21 04:32:58 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2006-02-21 04:32:58 +0800 |
commit | d3c276d98e7de4a7322d67d4ce4e28fe775dd05a (patch) | |
tree | 7d280d7162120638db8400d2d1fb0d7fd18fbd67 | |
parent | 5043168b3b8a926550610d5250bd95743ede81e9 (diff) | |
download | freebsd-ports-gnome-d3c276d98e7de4a7322d67d4ce4e28fe775dd05a.tar.gz freebsd-ports-gnome-d3c276d98e7de4a7322d67d4ce4e28fe775dd05a.tar.zst freebsd-ports-gnome-d3c276d98e7de4a7322d67d4ce4e28fe775dd05a.zip |
- 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.
-rw-r--r-- | chinese/moefonts-cid/Makefile | 10 | ||||
-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. |