Bug 173755 - [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library)
Summary: [PATCH] devel/p5-Curses: Add option to support UTF-8 (use ncursesw library)
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: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 06:20 UTC by Po-Chien Lin
Modified: 2013-01-21 02:40 UTC (History)
1 user (show)

See Also:


Attachments
p5-Curses-1.28_1.patch (1.07 KB, patch)
2012-11-21 06:20 UTC, Po-Chien Lin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Po-Chien Lin 2012-11-21 06:20:00 UTC
- 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)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-11-21 06:20:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Po-Chien Lin 2013-01-11 13:00:45 UTC
Hi,

Is there somebody can help me confirm this PR?

It's a small patch, I have tested it on my machine for months,
and it works well :-)

If any change is needed, please tell me, thanks!

Sincerely,
linpc

> http://www.freebsd.org/cgi/query-pr.cgi?pr=173755
Comment 3 Steve Wills freebsd_committer freebsd_triage 2013-01-21 02:17:40 UTC
Responsible Changed
From-To: perl->swills

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-01-21 02:38:42 UTC
Author: swills
Date: Mon Jan 21 02:38:35 2013
New Revision: 310731
URL: http://svnweb.freebsd.org/changeset/ports/310731

Log:
  - Add an option to support UTF-8
  
  PR:		ports/173755
  Submitted by:	Po-Chien Lin <linpc@cs.nctu.edu.tw>

Modified:
  head/devel/p5-Curses/Makefile   (contents, props changed)

Modified: head/devel/p5-Curses/Makefile
==============================================================================
--- head/devel/p5-Curses/Makefile	Mon Jan 21 02:32:06 2013	(r310730)
+++ head/devel/p5-Curses/Makefile	Mon Jan 21 02:38:35 2013	(r310731)
@@ -7,6 +7,7 @@
 
 PORTNAME=	Curses
 PORTVERSION=	1.28
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -15,13 +16,24 @@ EXTRACT_SUFX=	.tgz
 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 <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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Steve Wills freebsd_committer freebsd_triage 2013-01-21 02:38:57 UTC
State Changed
From-To: open->closed

Committed. Thanks!