pkgsrc-Users archive

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

Mutt ncursesw option


I just built mail/mutt-devel on a -current (5.99.5) NetBSD/i386 system
with PKG_OPTIONS.mutt including `ncursesw'.  This did _not_ pull in
devel/ncursesw as I expected; it seems that curses from the base system
is considered to be sufficient.

Skipping the discussion whether NetBSD's curses really is sufficient or
not, IMHO the Mutt package should do what the user tells it.  The
attached patch implements this by changing the existing ncursesw option
and adding a new one:

o The option `ncursesw' causes a built-in ncursesw to be used only if
  it's really ncursesw.

o The option `wide-curses' behaves like `ncursesw' does now, i.e. it
  just includes devel/ncursesw/, thus the user gets
  whatever pkgsrc considers sufficient for wide character support.

Any hints?

Cheersa, Jukka

bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Index: mail/mutt-devel/
RCS file: /cvsroot/pkgsrc/mail/mutt-devel/,v
retrieving revision 1.32
diff -u -p -r1.32
--- mail/mutt-devel/  25 May 2008 14:30:42 -0000      1.32
+++ mail/mutt-devel/  21 Jan 2009 12:05:46 -0000
@@ -4,7 +4,7 @@
-PKG_OPTIONS_GROUP.display=     slang ncurses ncursesw curses
+PKG_OPTIONS_GROUP.display=     slang ncurses ncursesw curses wide-curses
 PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
 PKG_SUPPORTED_OPTIONS+=        mutt-hcache mutt-smtp mutt-xlabel
 # Comment the following line out on updates.
@@ -45,9 +45,12 @@ CONFIGURE_ARGS+=     --with-sasl=${BUILDLINK
-### ncursesw
+### ncursesw, wide-curses
-.if !empty(PKG_OPTIONS:Mncursesw)
+.if !empty(PKG_OPTIONS:Mncursesw) || !empty(PKG_OPTIONS:Mwide-curses)
+.  if !empty(PKG_OPTIONS:Mncursesw)
+USE_NCURSES=           yes
+.  endif
 .  include "../../devel/ncursesw/"
 SUBST_CLASSES+=                curse

Home | Main Index | Thread Index | Old Index