From owner-freebsd-perl@FreeBSD.ORG Wed Nov 21 06:09:58 2012 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB20B63F; Wed, 21 Nov 2012 06:09:58 +0000 (UTC) (envelope-from linpc@cs.nctu.edu.tw) Received: from csmailer.cs.nctu.edu.tw (csmailer.cs.nctu.edu.tw [140.113.235.130]) by mx1.freebsd.org (Postfix) with ESMTP id 69F788FC08; Wed, 21 Nov 2012 06:09:58 +0000 (UTC) Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 2315911B; Wed, 21 Nov 2012 14:03:31 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cs.nctu.edu.tw; h=date :message-id:to:subject:from:cc; s=rsa1024; bh=H3n3jxaWOh9qw1Ugd0 l09irhTGk=; b=OwRvNO31OSF9/t87u42OoLTYocLb6qjiE+6mYXOIvhdc2ku8Ue uyCi7NAb2ndgjA91IzR9rkG+y154mnojYY2Oc5/NiGVNknhA0xvWu4KSbzDW+vlr sdXEW7SFtxi9u114TBQY4HFjyWDWxL0MnC5Bgha9IQQy2SNvWTmEHlJvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cs.nctu.edu.tw; h=date :message-id:to:subject:from:cc; q=dns; s=rsa1024; b=WmOSeUE6u9jf g7g+RDx1/XqaL7+eE/aoYZwp944btzPB7HYqz2AIEqwIVxHTH63Il9j2Iv/lJK9Q mR3iHOHESpHPaWWc5HG6vkuTBpCwcYZZhzJLpnSPEbSYpu40SOIy0mpkw9gYqt9+ kGF1S4LYetMI83qFVAQKj6GOSDjFdds= Received: from bsd6.cs.nctu.edu.tw (bsd6.cs.nctu.edu.tw [140.113.235.136]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 0F81311A; Wed, 21 Nov 2012 14:03:31 +0800 (CST) Received: (from linpc@localhost) by bsd6.cs.nctu.edu.tw (8.14.5/8.14.5/Submit) id qAL63U9M053949; Wed, 21 Nov 2012 14:03:30 +0800 (CST) (envelope-from linpc) Date: Wed, 21 Nov 2012 14:03:30 +0800 (CST) Message-Id: <201211210603.qAL63U9M053949@bsd6.cs.nctu.edu.tw> To: FreeBSD-gnats-submit@freebsd.org Subject: [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library) From: Po-Chien Lin X-send-pr-version: 3.113 X-GNATS-Notify: Cc: perl@freebsd.org X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 06:09:59 -0000 >Submitter-Id: current-users >Originator: Po-Chien Lin >Organization: >Confidential: no >Synopsis: [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library) >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 8.3-RELEASE-p3 amd64 >Environment: System: FreeBSD bsd6.cs.nctu.edu.tw 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #0: Tue Jun 12 00:39:29 UTC 2012 >Description: - Add an option to using `ncursesw' library instead of `ncurses' at link state, which will support UTF-8 environment using. Port maintainer (perl@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix) >How-To-Repeat: >Fix: --- p5-Curses-1.28_1.patch begins here --- diff -ruN --exclude=CVS ../p5-Curses.orig/Makefile ./Makefile --- ../p5-Curses.orig/Makefile 2012-11-21 13:36:13.845583000 +0800 +++ ./Makefile 2012-11-21 13:57:34.560346000 +0800 @@ -7,6 +7,7 @@ PORTNAME= Curses PORTVERSION= 1.28 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -15,13 +16,24 @@ MAINTAINER= perl@FreeBSD.org COMMENT= Perl5 module for terminal screen handling and optimization +OPTIONS_DEFINE= NCURSESW +NCURSESW_DESC= Wide-character-capable support by ncursesw library + PERL_CONFIGURE= yes CONFIGURE_ARGS= PANELS MENUS FORMS -CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses"\ - CURSES_LDFLAGS="-L/usr/lib/ -lncurses" +CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses" MAN3= Curses.3 +.include + +.if ${PORT_OPTIONS:MNCURSESW} +CONFIGURE_ENV+= CURSES_LDFLAGS="-L/usr/lib/ -lncursesw" \ + CURSES_LIBTYPE="ncursesw" +.else +CONFIGURE_ENV+= CURSES_LDFLAGS="-L/usr/lib/ -lncurses" +.endif + pre-configure: @${LN} -sf ${WRKSRC}/hints/c-freebsd.ncurses.h \ ${WRKSRC}/c-config.h --- p5-Curses-1.28_1.patch ends here ---