pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/49211: www/snownews: enable ncursesw support
>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
>Organization:
>Environment:
NetBSD aristipp.klingsor.lan 7.99.1 NetBSD 7.99.1 (GENERIC) #0: Wed Sep 17
07:20:33 CEST 2014
lems%aristipp.klingsor.lan@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC
amd64
>Description:
Hello,
snownews can be build with wide-char support, so that it displays
umlauts etc. I added an ncursesw option for this.
Leonard
>How-To-Repeat:
>Fix:
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
Home |
Main Index |
Thread Index |
Old Index