From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 29 08:10:04 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 776D816A4CE for ; Sat, 29 Nov 2003 08:10:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6690443FE1 for ; Sat, 29 Nov 2003 08:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hATGA2FY067413 for ; Sat, 29 Nov 2003 08:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hATGA2VG067412; Sat, 29 Nov 2003 08:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 29 Nov 2003 08:10:02 -0800 (PST) Resent-Message-Id: <200311291610.hATGA2VG067412@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Statue Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10D4016A4CE for ; Sat, 29 Nov 2003 08:05:29 -0800 (PST) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id A089C43F93 for ; Sat, 29 Nov 2003 08:05:27 -0800 (PST) (envelope-from statue@freebsd.sinica.edu.tw) Received: by freebsd.sinica.edu.tw (Postfix, from userid 1014) id EF02F393; Sun, 30 Nov 2003 00:05:29 +0800 (CST) Message-Id: <20031129160529.EF02F393@freebsd.sinica.edu.tw> Date: Sun, 30 Nov 2003 00:05:29 +0800 (CST) From: Statue To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/59793: New port: chinese/mingunittf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Statue List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 16:10:04 -0000 >Number: 59793 >Category: ports >Synopsis: New port: chinese/mingunittf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Nov 29 08:10:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Mon Sep 15 18:44:48 CST 2003 root@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: This port installs Chinese Big5HKSCS TrueType Mingti fonts. WWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html >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: # # mingunittf/ # mingunittf/Makefile # mingunittf/distinfo # mingunittf/pkg-deinstall # mingunittf/pkg-descr # mingunittf/pkg-install # mingunittf/pkg-plist # echo c - mingunittf/ mkdir -p mingunittf/ > /dev/null 2>&1 echo x - mingunittf/Makefile sed 's/^X//' >mingunittf/Makefile << 'END-of-mingunittf/Makefile' X# New ports collection makefile for: HKSCS Chinese TrueType fonts X# Date created: 29 Nov 2003 X# Whom: Shen Chuan-Hsing X# X# $FreeBSD$ X# X XPORTNAME= mingunittf XPORTVERSION= 2.11 XCATEGORIES= chinese x11-fonts XMASTER_SITES= http://www.info.gov.hk/digital21/chi/hkscs/download/ XDISTNAME= ming_uni.ttf XEXTRACT_SUFX= .gz X XMAINTAINER= ports@freebsd.org XCOMMENT= Chinese Big5HKSCS TrueType fonts X XRUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm X XEXTRACT_CMD= ${GZIP_CMD} XEXTRACT_BEFORE_ARGS= -dc XEXTRACT_AFTER_ARGS= > ${WRKSRC}/minguni.ttf XNO_BUILD= yes XSHAREMODE= 644 XWRKSRC= ${WRKDIR} XUSE_XLIB= yes XFONTDIR= ${PREFIX}/share/fonts/TrueType XXFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType XINSTALL_ENV= PKG_PREFIX=${PREFIX} X X.include X Xdo-install: X @${MKDIR} ${FONTDIR} X @${INSTALL_DATA} ${WRKSRC}/minguni.ttf ${FONTDIR} X @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X X.include END-of-mingunittf/Makefile echo x - mingunittf/distinfo sed 's/^X//' >mingunittf/distinfo << 'END-of-mingunittf/distinfo' XMD5 (ming_uni.ttf.gz) = 336c9bc8944b34ba0e3eeb1f2999eb1f END-of-mingunittf/distinfo echo x - mingunittf/pkg-deinstall sed 's/^X//' >mingunittf/pkg-deinstall << 'END-of-mingunittf/pkg-deinstall' X#!/bin/sh X Xif [ "$2" != "DEINSTALL" ]; then X exit 0 Xfi X XPKGNAME=$1 XPREFIX=${PKG_PREFIX} XTTFM=${PKG_PREFIX}/bin/ttfm.sh X XFONTDIR=${PREFIX}/share/fonts/TrueType XFONTS="minguni.ttf" X Xif [ -r $FONTDIR/$PKGNAME ]; then X for i in `cat $FONTDIR/$PKGNAME`; do X for f in $FONTS; do X $TTFM --remove $i $f X done X done Xfi X Xrm -f $FONTDIR/$PKGNAME X Xexit 0 END-of-mingunittf/pkg-deinstall echo x - mingunittf/pkg-descr sed 's/^X//' >mingunittf/pkg-descr << 'END-of-mingunittf/pkg-descr' XThis port installs Chinese Big5HKSCS TrueType Mingti fonts. X XWWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html END-of-mingunittf/pkg-descr echo x - mingunittf/pkg-install sed 's/^X//' >mingunittf/pkg-install << 'END-of-mingunittf/pkg-install' X#!/bin/sh X Xif [ "$2" = "PRE-INSTALL" ]; then X exit 0 Xfi X XPKGNAME=$1 XPREFIX=${PKG_PREFIX} XTTFM=${PREFIX}/bin/ttfm.sh X XFONTDIR=${PREFIX}/share/fonts/TrueType XFONTS="minguni.ttf" X Xif [ ! -x $TTFM ]; then X echo "$TTFM not found!" X exit 1 Xfi X Xrm -f $FONTDIR/$PKGNAME X Xif [ "X$WITHOUT_X" = "X" ]; then X for f in $FONTS; do X $TTFM --add xttfm $FONTDIR/$f X done X echo "xttfm" >> $FONTDIR/$PKGNAME Xfi X Xexit 0 END-of-mingunittf/pkg-install echo x - mingunittf/pkg-plist sed 's/^X//' >mingunittf/pkg-plist << 'END-of-mingunittf/pkg-plist' Xshare/fonts/TrueType/minguni.ttf X@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true X@unexec rmdir %D/share/fonts 2>/dev/null || true END-of-mingunittf/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: