pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/snownews Use the curses framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb5e49389d12
branches:  trunk
changeset: 356765:fb5e49389d12
user:      roy <roy%pkgsrc.org@localhost>
date:      Wed Jan 04 15:53:56 2017 +0000

description:
Use the curses framework.

diffstat:

 www/snownews/Makefile   |   9 +++++----
 www/snownews/options.mk |  23 +++++------------------
 2 files changed, 10 insertions(+), 22 deletions(-)

diffs (66 lines):

diff -r 0e40c3dfec2d -r fb5e49389d12 www/snownews/Makefile
--- a/www/snownews/Makefile     Wed Jan 04 15:52:50 2017 +0000
+++ b/www/snownews/Makefile     Wed Jan 04 15:53:56 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2016/07/09 06:39:14 wiz Exp $
+# $NetBSD: Makefile,v 1.51 2017/01/04 15:53:56 roy Exp $
 
 DISTNAME=      snownews-1.5.12
-PKGREVISION=   12
+PKGREVISION=   13
 CATEGORIES=    www
 MASTER_SITES=  http://kiza.kcore.de/software/snownews/download/
 
@@ -16,8 +16,6 @@
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            msgfmt perl
 
-.include "options.mk"
-
 REPLACE_PERL+=         configure opml2snow
 
 CONFIG_SHELL=          perl
@@ -25,6 +23,9 @@
 MAKE_ENV+=             EXTRA_CFLAGS=${CFLAGS:Q}
 
 INCOMPAT_CURSES=       NetBSD-[0-4].*-*        #WA_BOLD, WA_REVERSE, KEY_RESIZE
+FAKE_NCURSES=          yes
+
+.include "options.mk"
 
 post-configure:
        ${ECHO} LOCALEPATH=${PREFIX}/${PKGLOCALEDIR}/locale >> ${WRKSRC}/platform_settings
diff -r 0e40c3dfec2d -r fb5e49389d12 www/snownews/options.mk
--- a/www/snownews/options.mk   Wed Jan 04 15:52:50 2017 +0000
+++ b/www/snownews/options.mk   Wed Jan 04 15:53:56 2017 +0000
@@ -1,25 +1,12 @@
-# $NetBSD: options.mk,v 1.5 2014/09/18 14:54:55 wiz Exp $
+# $NetBSD: options.mk,v 1.6 2017/01/04 15:53:56 roy Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.snownews
 
 PKG_OPTIONS_REQUIRED_GROUPS=   screen
-PKG_OPTIONS_GROUP.screen=      ncurses ncursesw
+PKG_OPTIONS_GROUP.screen=      curses wide-curses
+PLG_OPTIONS_LEGACY_OPTS+=      ncurses:curses ncursesw:wide-curses
 
-PKG_SUGGESTED_OPTIONS= ncurses
+PKG_SUGGESTED_OPTIONS= curses
 
 .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
+.include "../../mk/curses.buildlink3.mk"



Home | Main Index | Thread Index | Old Index