Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2002 16:43:58 +0800 (CST)
From:      Statue <statue@freebsd.sinica.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/39361: New port: chinese/xpdf
Message-ID:  <20020616084358.EEBBB25E@freebsd.sinica.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         39361
>Category:       ports
>Synopsis:       New port: chinese/xpdf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 16 01:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Statue
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD freebsd.sinica.edu.tw 4.6-RC FreeBSD 4.6-RC #0: Sat Jun 8 09:49:07 CST 2002 root@cc6-179.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386


	
>Description:
This ports enables xpdf to read chinese-traditional pdf.
	
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xpdf/
#	xpdf/Makefile
#	xpdf/distinfo
#	xpdf/files
#	xpdf/pkg-comment
#	xpdf/pkg-descr
#	xpdf/pkg-install
#	xpdf/pkg-plist
#	xpdf/files/dot.xpdfrc
#
echo c - xpdf/
mkdir -p xpdf/ > /dev/null 2>&1
echo x - xpdf/Makefile
sed 's/^X//' >xpdf/Makefile << 'END-of-xpdf/Makefile'
X# New ports collection makefile for:	zh-xpdf
X# Date created:		21 Avr 2002
X# Whom:			chshen <statue@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xpdf
XPORTVERSION=	1.01
XCATEGORIES=	chinese
XMASTER_SITES=	ftp://ftp.foolabs.com/pub/xpdf/
XDISTNAME=	xpdf-chinese-traditional
X
XMAINTAINER=	statue@freebsd.sinica.edu.tw
X
XRUN_DEPENDS=	xpdf:${PORTSDIR}/graphics/xpdf\
X		${LOCALBASE}/share/ghostscript/Resource/CMap/Adobe-CNS1-0:${PORTSDIR}/print/adobe-cmaps
X
XNO_BUILD=	yes
XUSE_X_PREFIX=	yes
XINSTALL_FILES=	Adobe-CNS1.cidToUnicode Big5.unicodeMap \
X		Big5ascii.unicodeMap README
Xdo-install:
X	${MKDIR} ${PREFIX}/share/xpdf/chinese-traditional
X.for i in ${INSTALL_FILES}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/xpdf/chinese-traditional
X.endfor
X	${INSTALL_DATA} ${FILESDIR}/dot.xpdfrc ${PREFIX}/share/xpdf/chinese-traditional
X	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.mk>
END-of-xpdf/Makefile
echo x - xpdf/distinfo
sed 's/^X//' >xpdf/distinfo << 'END-of-xpdf/distinfo'
XMD5 (xpdf-chinese-traditional.tar.gz) = 5be730b859f8b01de569eb1bad188426
END-of-xpdf/distinfo
echo c - xpdf/files
mkdir -p xpdf/files > /dev/null 2>&1
echo x - xpdf/pkg-comment
sed 's/^X//' >xpdf/pkg-comment << 'END-of-xpdf/pkg-comment'
XChinese-traditional xpdf font support
END-of-xpdf/pkg-comment
echo x - xpdf/pkg-descr
sed 's/^X//' >xpdf/pkg-descr << 'END-of-xpdf/pkg-descr'
XThis ports enables xpdf to read chinese-traditional pdf.
END-of-xpdf/pkg-descr
echo x - xpdf/pkg-install
sed 's/^X//' >xpdf/pkg-install << 'END-of-xpdf/pkg-install'
X#!/bin/sh
Xif [ "$2" = "PRE-INSTALL" ]; then
X  exit 0
Xfi
XXPDFRC=${PKG_PREFIX}/etc/xpdfrc
XADDRESOURCE=${PKG_PREFIX}/share/xpdf/chinese-traditional/dot.xpdfrc
X/usr/bin/grep -F -v --file=${ADDRESOURCE} ${XPDFRC} > ${XPDFRC}.nochinese-traditional
X/bin/rm -f ${XPDFRC}
X/bin/cat ${XPDFRC}.nochinese-traditional ${ADDRESOURCE} > ${XPDFRC}
X/bin/rm -f ${XPDFRC}.nochinese-traditional
END-of-xpdf/pkg-install
echo x - xpdf/pkg-plist
sed 's/^X//' >xpdf/pkg-plist << 'END-of-xpdf/pkg-plist'
Xshare/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode
Xshare/xpdf/chinese-traditional/Big5.unicodeMap
Xshare/xpdf/chinese-traditional/Big5ascii.unicodeMap
Xshare/xpdf/chinese-traditional/README
X@unexec mv -f %D/etc/xpdfrc %D/etc/xpdfrc.chinese-traditional
X@unexec grep -F -v --file=%D/share/xpdf/chinese-traditional/dot.xpdfrc %D/etc/xpdfrc.chinese-traditional > %D/etc/xpdfrc
Xshare/xpdf/chinese-traditional/dot.xpdfrc
X@unexec rm -f %D/etc/xpdfrc.chinese-traditional
X@dirrm share/xpdf/chinese-traditional
X@dirrm share/xpdf
END-of-xpdf/pkg-plist
echo x - xpdf/files/dot.xpdfrc
sed 's/^X//' >xpdf/files/dot.xpdfrc << 'END-of-xpdf/files/dot.xpdfrc'
X#----- begin Chinese Traditional support package (2002-apr-14)
XcidToUnicode	Adobe-CNS1	/usr/X11R6/share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode
XunicodeMap	Big5		/usr/X11R6/share/xpdf/chinese-traditional/Big5.unicodeMap
XunicodeMap	Big5ascii	/usr/X11R6/share/xpdf/chinese-traditional/Big5ascii.unicodeMap
XcMapDir		Adobe-CNS1	/usr/local/share/ghostscript/Resource/CMap
XtoUnicodeDir			/usr/local/share/ghostscript/Resource/CMap
XdisplayCIDFontX	Adobe-CNS1	"-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-big5-0" Big5
X# If you have the Arhpic fonts, you may want to use this instead:
X# displayCIDFontX Adobe-CNS1	"-arphic-ar pl kaitim big5-medium-r-normal--%s-*-*-*-c-*-iso10646-1" UCS-2
X#----- end Chinese Traditional support package
END-of-xpdf/files/dot.xpdfrc
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020616084358.EEBBB25E>