Date: Mon, 12 Nov 2012 23:05:41 +0800 From: "Charlie &" <edward@rdtan.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: edward@rdtan.net, lwhsu@FreeBSD.org Subject: ports/173579: [PATCH] chinese/cnprint: OPTIONSNG & trim Makefile header Message-ID: <50a1104a.8a4f420a.1c1c.5077@mx.google.com> Resent-Message-ID: <201211121510.qACFA08M015293@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <statue@freebsd.sinica.edu.tw> -# -# $FreeBSD: ports/chinese/cnprint/Makefile,v 1.13 2009/05/18 11:28:52 lwhsu Exp $ -# +# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> +# $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 <bsd.port.pre.mk> @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50a1104a.8a4f420a.1c1c.5077>