Bug 134638 - [PATCH] chinese/cnprint: [SUMMARIZE CHANGES]
Summary: [PATCH] chinese/cnprint: [SUMMARIZE CHANGES]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 09:20 UTC by Chun-Chung Yang
Modified: 2009-05-18 12:29 UTC (History)
1 user (show)

See Also:


Attachments
cnprint-3.30b_1.patch (1.82 KB, patch)
2009-05-18 09:20 UTC, Chun-Chung Yang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chun-Chung Yang 2009-05-18 09:20:02 UTC
[DESCRIBE CHANGES]

Port maintainer (lwhsu@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-18 09:20:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lwhsu

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Chun-Chung Yang 2009-05-18 11:10:55 UTC
>Description:
Add a A4SIZE option to choice

>Fix:
--- cnprint-3.30b_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/chinese/cnprint/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    16 May 2009 15:07:22 -0000  1.11
+++ Makefile    18 May 2009 10:08:40 -0000
@@ -7,6 +7,7 @@
 PORTNAME=  cnprint
 PORTVERSION=   3.30b
+PORTREVISION=  1
 CATEGORIES=    chinese print
 MASTER_SITES=
http://ftp.wustl.edu/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/<http://ftp.wustl.edu/pub/FreeBSD/distfiles/$%7BPORTNAME%7D-$%7BPORTVERSION%7D/>\

http://ftp.yz.yamagata-u.ac.jp/pub/FreeBSD/distfiles/${PORTNAME}-${PORTVERSION}/<http://ftp.yz.yamagata-u.ac.jp/pub/FreeBSD/distfiles/$%7BPORTNAME%7D-$%7BPORTVERSION%7D/>\
@@ -23,6 +24,8 @@
 FILES=     ${WRKSRC}/*.sym ${WRKSRC}/*.htf ${WRKSRC}/*.hbf \
        ${WRKSRC}/*.bin ${WRKSRC}/*.ttf
+OPTIONS=   A4SIZE  "Set A4 (not Letter) as a default paper size" on
+.include <bsd.port.pre.mk>
 do-extract:
    ${MKDIR} ${WRKSRC}
 .for i in ${DISTFILES}
@@ -39,6 +42,10 @@
    @${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)
+   @${REINPLACE_CMD} -e 's/\(DEFAULT_PAPERSIZE\):.*$$/\1: 8.27 11.69/' \
+       ${WRKSRC}/cnprint33.cmd
+.endif

 do-build:
    cd ${WRKSRC} ; \
@@ -50,4 +57,4 @@
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}33.cmd  ${DATADIR}/${PORTNAME}.cmd
    ${INSTALL_DATA} ${FILES} ${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- cnprint-3.30b_1.patch ends here ---
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-05-18 12:02:58 UTC
lwhsu       2009-05-18 11:02:47 UTC

  FreeBSD ports repository

  Modified files:
    chinese/cnprint      Makefile 
  Log:
  - Add an option to make default paper size A4
  
  PR:             ports/134638
  Submitted by:   Chun-Chung Yang <chunchung AT cs.nctu.edu.tw>
  
  Revision  Changes    Path
  1.12      +10 -1     ports/chinese/cnprint/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Li-Wen Hsu freebsd_committer freebsd_triage 2009-05-18 12:29:05 UTC
State Changed
From-To: open->closed

Committed. Thanks!