From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 12 15:10:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7E9617D for ; Mon, 12 Nov 2012 15:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B9A378FC0C for ; Mon, 12 Nov 2012 15:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qACFA0MQ015298 for ; Mon, 12 Nov 2012 15:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qACFA08M015293; Mon, 12 Nov 2012 15:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 12 Nov 2012 15:10:00 GMT Resent-Message-Id: <201211121510.qACFA08M015293@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, "Charlie &" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD35E131 for ; Mon, 12 Nov 2012 15:05:49 +0000 (UTC) (envelope-from edward@rdtan.net) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 95F558FC15 for ; Mon, 12 Nov 2012 15:05:49 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so2888093dad.13 for ; Mon, 12 Nov 2012 07:05:48 -0800 (PST) Received: by 10.66.85.66 with SMTP id f2mr55698924paz.56.1352732748450; Mon, 12 Nov 2012 07:05:48 -0800 (PST) Received: from rdtan.net ([210.195.49.55]) by mx.google.com with ESMTPS id j10sm4438792pax.8.2012.11.12.07.05.42 (version=SSLv3 cipher=OTHER); Mon, 12 Nov 2012 07:05:46 -0800 (PST) Received: by rdtan.net (sSMTP sendmail emulation); Mon, 12 Nov 2012 23:05:41 +0800 Message-Id: <50a1104a.8a4f420a.1c1c.5077@mx.google.com> Date: Mon, 12 Nov 2012 23:05:41 +0800 From: "Charlie &" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/173579: [PATCH] chinese/cnprint: OPTIONSNG & trim Makefile header Cc: edward@rdtan.net, lwhsu@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 15:10:01 -0000 >Number: 173579 >Category: ports >Synopsis: [PATCH] chinese/cnprint: OPTIONSNG & trim Makefile header >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 12 15:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Edward >Release: FreeBSD 8.3-RELEASE amd64 >Organization: >Environment: System: FreeBSD optionsng 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC >Description: - Update to use OPTIONSNG - Trim Makefile header Port maintainer (lwhsu@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports) >How-To-Repeat: >Fix: begin 644 zh-cnprint-3.30b_1.patch --- Makefile.original 2012-11-12 23:03:55.000000000 +0800 +++ Makefile 2012-11-12 23:03:53.000000000 +0800 @@ -1,9 +1,5 @@ -# New ports collection makefile for: cnprint -# Date created: 29 Jan 2003 -# Whom: Shen Chuan-Hsing -# -# $FreeBSD: ports/chinese/cnprint/Makefile,v 1.13 2009/05/18 11:28:52 lwhsu Exp $ -# +# Created by: Shen Chuan-Hsing +# $FreeBSD$ PORTNAME= cnprint PORTVERSION= 3.30b @@ -23,7 +19,10 @@ FILES= ${WRKSRC}/*.sym ${WRKSRC}/*.htf ${WRKSRC}/*.hbf \ ${WRKSRC}/*.bin ${WRKSRC}/*.ttf -OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" on +OPTIONS_DEFINE= A4SIZE +OPTIONS_DEFAULT= A4SIZE + +A4SIZE_DESC= Set A4 (not Letter) as a default paper size .include @@ -43,7 +42,7 @@ @${REINPLACE_CMD} -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/; \ s/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/; \ s/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' ${WRKSRC}/cnprint33.cmd -.if defined(WITH_A4SIZE) +.if ${PORT_OPTIONS:MA4SIZE} @${REINPLACE_CMD} -e 's/\(DEFAULT_PAPERSIZE\):.*$$/\1: 8.27 11.69/' \ ${WRKSRC}/cnprint33.cmd .endif end >Release-Note: >Audit-Trail: >Unformatted: