ports/173755: [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library)
Po-Chien Lin
linpc at cs.nctu.edu.tw
Wed Nov 21 06:20:02 UTC 2012
>Number: 173755
>Category: ports
>Synopsis: [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library)
>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: Wed Nov 21 06:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Po-Chien Lin
>Release: FreeBSD 8.3-RELEASE-p3 amd64
>Organization:
>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 at 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 at 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 <bsd.port.options.mk>
+
+.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 ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list