ports/173579: [PATCH] chinese/cnprint: OPTIONSNG & trim Makefile header
Charlie &
edward at rdtan.net
Mon Nov 12 15:10:01 UTC 2012
>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 at 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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list