Discussion:
pkg/49211: www/snownews: enable ncursesw support
l***@mailbox.org
2014-09-17 10:50:00 UTC
Permalink
Number: 49211
Category: pkg
Synopsis: www/snownews: enable ncursesw support
Confidential: no
Severity: non-critical
Priority: medium
Responsible: pkg-manager
State: open
Class: change-request
Submitter-Id: net
Arrival-Date: Wed Sep 17 10:50:00 +0000 2014
Originator: Leonard Schmidt
Release: pkgsrc -current as of 20140917
Hello,

snownews can be build with wide-char support, so that it displays
umlauts etc. I added an ncursesw option for this.

Leonard
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/snownews/Makefile,v
retrieving revision 1.44
diff -u -p -r1.44 Makefile
--- Makefile 29 May 2014 23:38:17 -0000 1.44
+++ Makefile 17 Sep 2014 10:38:50 -0000
@@ -16,6 +16,8 @@ HAS_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt perl

+.include "options.mk"
+
REPLACE_PERL+= configure opml2snow

CONFIG_SHELL= perl
@@ -30,7 +32,6 @@ post-configure:

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../devel/ncurses/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: options.mk
===================================================================
RCS file: options.mk
diff -N options.mk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ options.mk 17 Sep 2014 10:38:50 -0000
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.snownews
+
+PKG_OPTIONS_REQUIRED_GROUPS= screen
+PKG_OPTIONS_GROUP.screen= ncurses ncursesw
+
+PKG_SUGGESTED_OPTIONS= ncurses
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mncurses)
+USE_NCURSES= YES
+. include "../../devel/ncurses/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mncursesw)
+LIBS+= -lncursesw
+SUBST_CLASSES+= configure
+SUBST_MESSAGE.configure= Fixing LDFLAGS for ncursesw
+SUBST_STAGE.configure= pre-configure
+SUBST_FILES.configure= configure
+SUBST_SED.configure= -e 's,-lncurses,-lncursesw,'
+. include "../../devel/ncursesw/buildlink3.mk"
+.endif
Thomas Klausner
2014-09-18 14:55:01 UTC
Permalink
The following reply was made to PR pkg/49211; it has been noted by GNATS.

From: "Thomas Klausner" <***@netbsd.org>
To: gnats-***@gnats.NetBSD.org
Cc:
Subject: PR/49211 CVS commit: pkgsrc/www/snownews
Date: Thu, 18 Sep 2014 14:54:55 +0000

Module Name: pkgsrc
Committed By: wiz
Date: Thu Sep 18 14:54:55 UTC 2014

Modified Files:
pkgsrc/www/snownews: Makefile
Added Files:
pkgsrc/www/snownews: options.mk

Log Message:
Add ncursesw option. From Leonard Schmidt in PR 49211.
Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/www/snownews/Makefile
cvs rdiff -u -r0 -r1.5 pkgsrc/www/snownews/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
w***@NetBSD.org
2014-09-18 14:55:16 UTC
Permalink
Synopsis: www/snownews: enable ncursesw support

State-Changed-From-To: open->closed
State-Changed-By: ***@NetBSD.org
State-Changed-When: Thu, 18 Sep 2014 14:55:15 +0000
State-Changed-Why:
Committed, thanks!

Loading...