pkgsrc-Bugs archive

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

pkg/36983: news/tin: add ncurses and ncursesw options

>Number:         36983
>Category:       pkg
>Synopsis:       news/tin: add ncurses and ncursesw options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 11:40:00 +0000 2007
>Originator:     L. Schmidt

I've added two new options to .../news/tin/, ``ncurses'' and

I have one question, though:
I set PKG_SUGGESTED_OPTIONS to ``curses'' and have PKG_DEFAULT_OPTIONS set
to ncursesw (mk.conf).  Now when building news/tin with my modifications, it 
lists the following options as enabled:

These options are currently enabled:
        curses inet6 ncursesw

Is this correct?  I guess I have to set PKG_OPTIONS.tin to ``-curses 
ncursesw'', since this works as expected.



RCS file: /cvsroot/pkgsrc/news/tin/,v
retrieving revision 1.6
diff -u -p -r1.6
---  30 Jan 2007 07:11:46 -0000      1.6
+++  13 Sep 2007 11:25:44 -0000
@@ -2,15 +2,33 @@
 .include "../../mk/"
-PKG_SUPPORTED_OPTIONS= curses icu inet6 tin-use-inn-spool
+PKG_OPTIONS_VAR=               PKG_OPTIONS.tin
+PKG_SUPPORTED_OPTIONS=         icu inet6 tin-use-inn-spool
+PKG_OPTIONS_SET.display=       curses ncurses ncursesw
+PKG_SUGGESTED_OPTIONS=         curses
 # untested
 .include "../../mk/"
 .if !empty(PKG_OPTIONS:Mcurses)
+.  include "../../mk/"
 CONFIGURE_ARGS+=       --with-screen=curses
+CONFIGURE_ARGS+=       --with-curses-dir=${BUILDLINK_PREFIX.curses}/include
+.if !empty(PKG_OPTIONS:Mncurses)
+.  include "../../devel/ncurses/"
+CONFIGURE_ARGS+=       --with-screen=ncurses
+CONFIGURE_ARGS+=       --with-curses-dir=${BUILDLINK_PREFIX.ncurses}/include
+.if !empty(PKG_OPTIONS:Mncursesw)
+.  include "../../devel/ncursesw/"
+CONFIGURE_ARGS+=       --with-screen=ncursesw
+CONFIGURE_ARGS+=       --with-curses-dir=${BUILDLINK_PREFIX.ncursesw}/include
 .if !empty(PKG_OPTIONS:Micu)

Home | Main Index | Thread Index | Old Index