r25013 - in /trunk/libcurses-perl: Curses.pm CursesBoot.c CursesFun.c HISTORY Makefile.PL debian/changelog debian/control

gwolf at users.alioth.debian.org gwolf at users.alioth.debian.org
Fri Sep 12 04:10:25 UTC 2008


Author: gwolf
Date: Fri Sep 12 04:10:18 2008
New Revision: 25013

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=25013
Log:
New upstream release

Modified:
    trunk/libcurses-perl/Curses.pm
    trunk/libcurses-perl/CursesBoot.c
    trunk/libcurses-perl/CursesFun.c
    trunk/libcurses-perl/HISTORY
    trunk/libcurses-perl/Makefile.PL
    trunk/libcurses-perl/debian/changelog
    trunk/libcurses-perl/debian/control

Modified: trunk/libcurses-perl/Curses.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/Curses.pm?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/Curses.pm (original)
+++ trunk/libcurses-perl/Curses.pm Fri Sep 12 04:10:18 2008
@@ -51,7 +51,7 @@
 
 package Curses;
 
-$VERSION = '1.23'; # Makefile.PL picks this up
+$VERSION = '1.24'; # Makefile.PL picks this up
 
 use Carp;
 require Exporter;
@@ -154,18 +154,20 @@
     COLOR_YELLOW KEY_A1 KEY_A3 KEY_B2 KEY_BACKSPACE KEY_BEG KEY_BREAK
     KEY_BTAB KEY_C1 KEY_C3 KEY_CANCEL KEY_CATAB KEY_CLEAR KEY_CLOSE
     KEY_COMMAND KEY_COPY KEY_CREATE KEY_CTAB KEY_DC KEY_DL KEY_DOWN KEY_EIC
-    KEY_END KEY_ENTER KEY_EOL KEY_EOS KEY_EXIT KEY_F0 KEY_FIND KEY_HELP
+    KEY_END KEY_ENTER KEY_EOL KEY_EOS KEY_EVENT KEY_EXIT
+    KEY_F0 KEY_FIND KEY_HELP
     KEY_HOME KEY_IC KEY_IL KEY_LEFT KEY_LL KEY_MARK KEY_MAX KEY_MESSAGE
-    KEY_MIN KEY_MOVE KEY_NEXT KEY_NPAGE KEY_OPEN KEY_OPTIONS KEY_PPAGE
+    KEY_MOUSE KEY_MIN KEY_MOVE KEY_NEXT KEY_NPAGE
+    KEY_OPEN KEY_OPTIONS KEY_PPAGE
     KEY_PREVIOUS KEY_PRINT KEY_REDO KEY_REFERENCE KEY_REFRESH KEY_REPLACE
-    KEY_RESET KEY_RESTART KEY_RESUME KEY_RIGHT KEY_SAVE KEY_SBEG
+    KEY_RESET  KEY_RESIZE KEY_RESTART KEY_RESUME KEY_RIGHT KEY_SAVE KEY_SBEG
     KEY_SCANCEL KEY_SCOMMAND KEY_SCOPY KEY_SCREATE KEY_SDC KEY_SDL
     KEY_SELECT KEY_SEND KEY_SEOL KEY_SEXIT KEY_SF KEY_SFIND KEY_SHELP
     KEY_SHOME KEY_SIC KEY_SLEFT KEY_SMESSAGE KEY_SMOVE KEY_SNEXT
     KEY_SOPTIONS KEY_SPREVIOUS KEY_SPRINT KEY_SR KEY_SREDO KEY_SREPLACE
     KEY_SRESET KEY_SRIGHT KEY_SRSUME KEY_SSAVE KEY_SSUSPEND KEY_STAB
-    KEY_SUNDO KEY_SUSPEND KEY_UNDO KEY_UP KEY_MOUSE BUTTON1_RELEASED
-    BUTTON1_PRESSED BUTTON1_CLICKED BUTTON1_DOUBLE_CLICKED
+    KEY_SUNDO KEY_SUSPEND KEY_UNDO KEY_UP
+    BUTTON1_RELEASED BUTTON1_PRESSED BUTTON1_CLICKED BUTTON1_DOUBLE_CLICKED
     BUTTON1_TRIPLE_CLICKED BUTTON1_RESERVED_EVENT BUTTON2_RELEASED
     BUTTON2_PRESSED BUTTON2_CLICKED BUTTON2_DOUBLE_CLICKED
     BUTTON2_TRIPLE_CLICKED BUTTON2_RESERVED_EVENT BUTTON3_RELEASED
@@ -281,9 +283,10 @@
 Unfortunately, curses(3) predates varargs(3), so in C we were stuck
 with all the variants.  However, C<Curses> is a Perl interface, so we
 are free to "unify" these variants into one function.  The section
-L<"Supported Functions"> below lists all curses(3) function supported
-by C<Curses>, along with a column listing if it is I<unified>.  If
-so, it takes a varying number of arguments as follows:
+L<"Available Functions"> below lists all curses(3) functions C<Curses>
+makes available as Perl equivalents, along with a column listing if it
+is I<unified>.  If so, it takes a varying number of arguments as
+follows:
 
 =over 4
 
@@ -310,7 +313,7 @@
 
 =head2 Objects
 
-Objects are supported.  Example:
+Objects work.  Example:
 
     $win = new Curses;
     $win->addstr(10, 10, 'foo');
@@ -318,7 +321,7 @@
     ...
 
 Any function that has been marked as I<unified> (see
-L<"Supported Functions"> below and L<"Unified Functions"> above)
+L<"Available Functions"> below and L<"Unified Functions"> above)
 can be called as a method for a Curses object.
 
 Do not use C<initscr()> if using objects, as the first call to get
@@ -361,9 +364,9 @@
 Any old application that still does not work should print an
 understandable error message explaining the problem.
 
-Some functions and variables are not supported by C<Curses>, even with
+Some functions and variables are not available through C<Curses>, even with
 the C<BEGIN> line.  They are listed under
-L<"curses(3) items not supported by Curses">.
+L<"curses(3) items not available through Curses">.
 
 The variables C<$stdscr> and C<$curscr> are also available as
 functions C<stdscr> and C<curscr>.  This is because of a Perl bug.
@@ -443,12 +446,12 @@
 
 William Setzer <William_Setzer at ncsu.edu>
 
-=head1 SYNOPSIS OF PERL CURSES SUPPORT
-
-=head2 Supported Functions
-
-    Supported            Unified?     Supported via $OldCurses[*]
-    ---------            --------     ------------------------
+=head1 SYNOPSIS OF PERL CURSES AVAILABILITY
+
+=head2 Available Functions
+
+    Avaiable Function    Unified?     Available via $OldCurses[*]
+    -----------------    --------     ------------------------
     addch                  Yes        waddch mvaddch mvwaddch
     echochar               Yes        wechochar
     addchstr               Yes        waddchstr mvaddchstr mvwaddchstr
@@ -775,12 +778,12 @@
 C<Curses> package.  See L<"Perl 4.X cursperl Compatibility"> for an
 example of this.
 
-=head2 Supported Variables
+=head2 Available Variables
 
     LINES                   COLS                    stdscr
     curscr                  COLORS                  COLOR_PAIRS
 
-=head2 Supported Constants
+=head2 Available Constants
 
     ERR                     OK                      ACS_BLOCK
     ACS_BOARD               ACS_BTEE                ACS_BULLET
@@ -806,7 +809,8 @@
     KEY_CREATE              KEY_CTAB                KEY_DC
     KEY_DL                  KEY_DOWN                KEY_EIC
     KEY_END                 KEY_ENTER               KEY_EOL
-    KEY_EOS                 KEY_EXIT                KEY_F0
+    KEY_EOS                 KEY_EVENT               KEY_EXIT
+    KEY_F0
     KEY_FIND                KEY_HELP                KEY_HOME
     KEY_IC                  KEY_IL                  KEY_LEFT
     KEY_LL                  KEY_MARK                KEY_MAX
@@ -815,7 +819,8 @@
     KEY_OPTIONS             KEY_PPAGE               KEY_PREVIOUS
     KEY_PRINT               KEY_REDO                KEY_REFERENCE
     KEY_REFRESH             KEY_REPLACE             KEY_RESET
-    KEY_RESTART             KEY_RESUME              KEY_RIGHT
+    KEY_RESIZE              KEY_RESTART             KEY_RESUME
+    KEY_RIGHT
     KEY_SAVE                KEY_SBEG                KEY_SCANCEL
     KEY_SCOMMAND            KEY_SCOPY               KEY_SCREATE
     KEY_SDC                 KEY_SDL                 KEY_SELECT
@@ -879,19 +884,19 @@
     O_PASSOK                O_STATIC                O_NL_OVERLOAD
     O_BS_OVERLOAD           
 
-=head2 curses(3) functions not supported by C<Curses>
+=head2 curses(3) functions not available through C<Curses>
 
     tstp _putchar fullname scanw wscanw mvscanw mvwscanw ripoffline
     setupterm setterm set_curterm del_curterm restartterm tparm tputs
     putp vidputs vidattr mvcur tigetflag tigetnum tigetstr tgetent
     tgetflag tgetnum tgetstr tgoto tputs
 
-=head2 menu(3) functions not supported by C<Curses>
+=head2 menu(3) functions not available through C<Curses>
 
     set_item_init item_init set_item_term item_term set_menu_init
     menu_init set_menu_term menu_term
 
-=head2 form(3) functions not supported by C<Curses>
+=head2 form(3) functions not available through C<Curses>
 
     new_fieldtype free_fieldtype set_fieldtype_arg
     set_fieldtype_choice link_fieldtype set_form_init form_init

Modified: trunk/libcurses-perl/CursesBoot.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/CursesBoot.c?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/CursesBoot.c (original)
+++ trunk/libcurses-perl/CursesBoot.c Fri Sep 12 04:10:18 2008
@@ -791,6 +791,12 @@
 #ifdef KEY_MOUSE
     C_NEWCS("KEY_MOUSE",                      KEY_MOUSE);
 #endif
+#ifdef KEY_RESIZE
+    C_NEWCS("KEY_RESIZE",                     KEY_RESIZE);
+#endif
+#ifdef KEY_EVENT
+    C_NEWCS("KEY_EVENT",                      KEY_EVENT);
+#endif
 #ifdef BUTTON1_RELEASED
     C_NEWCS("BUTTON1_RELEASED",               BUTTON1_RELEASED);
 #endif

Modified: trunk/libcurses-perl/CursesFun.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/CursesFun.c?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/CursesFun.c (original)
+++ trunk/libcurses-perl/CursesFun.c Fri Sep 12 04:10:18 2008
@@ -3382,17 +3382,19 @@
 
 /* curs_util */
 
-XS(XS_Curses_unctrl)
-{
+
+
+XS(XS_Curses_unctrl) {
+
     dXSARGS;
 #ifdef C_UNCTRL
     c_exactargs("unctrl", items, 1);
     {
-	chtype	ch	= c_sv2chtype(ST(0));
-	char *	ret	= unctrl(ch);
-	
-	ST(0) = sv_newmortal();
-	sv_setpv((SV*)ST(0), ret);
+        chtype const ch = c_sv2chtype(ST(0));
+        const char * const ret = unctrl(ch);
+    
+        ST(0) = sv_newmortal();
+        sv_setpv((SV*)ST(0), ret);
     }
     XSRETURN(1);
 #else
@@ -3400,6 +3402,8 @@
     XSRETURN(0);
 #endif
 }
+
+
 
 XS(XS_Curses_keyname)
 {

Modified: trunk/libcurses-perl/HISTORY
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/HISTORY?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/HISTORY (original)
+++ trunk/libcurses-perl/HISTORY Fri Sep 12 04:10:18 2008
@@ -10,6 +10,17 @@
 
 Curses itself is much older than the Perl implementation.  Curses was
 originally only a C programming library.
+
+New in 1.24 (Released September 10, 2008)
+
+  Export KEY_RESIZE, KEY_EVENT.
+
+  For Netbsd, allow both Netbsd and BSD guesses via CURSES_LIBTYPE,
+  and default to Ncurses.  Used to guess only BSD.  From Ulrich Habel
+  rhaen at NetBSD.org .
+
+  Add guess capability for Dragonfly.  From Ulrich Habel
+  rhaen at NetBSD.org .
 
 New in 1.23 (Released March 9, 2008)
 

Modified: trunk/libcurses-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/Makefile.PL?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/Makefile.PL (original)
+++ trunk/libcurses-perl/Makefile.PL Fri Sep 12 04:10:18 2008
@@ -118,6 +118,12 @@
     'ncurses' => [ ''                       , '-lncurses'                 ],
     'default' =>   'bsd'
   },
+  'dragonfly' => {
+    'bsd'     => [ ''                       => '-lcurses -ltermcap'        ],
+    'ncurses' => [ ''                       => '-lncurses'                 ],
+    'default' =>   'bsd'
+  },
+
   'hpux'      => [ ''                       , '-lcurses -ltermcap'        ],
 # See INSTALL file for information about a different Curses library on HPUX.
   'irix'      => {
@@ -131,7 +137,11 @@
     'ncurses' => [ '-I/usr/include/ncurses' ,  '-lncurses'                ],
     'default' =>   'ncurses'
   },
-  'netbsd'    => [ ''                       , '-lcurses -ltermcap'        ],
+  'netbsd'   => {
+    'bsd'     => [ ''                       => '-lcurses -ltermcap'        ],
+    'ncurses' => [ ''                       => '-lncurses'                 ],
+    'default' =>   'ncurses'
+  },
   'next'      => [ ''                       , '-lcurses -ltermcap'        ],
   'openbsd'   => [ ''                       , '-lcurses -ltermcap'        ],  
   'os2'       => {
@@ -479,9 +489,12 @@
     if (!defined($libType)) {
         $libType = defaultLibTypeForOs($OSNAME);
     }
-} elsif (defined($inc) || defined($libs) || defined($libType)) {
+} elsif (defined($inc) || defined($libs)) {
     die("You must specify both CURSES_LDFLAGS and CURSES_CFLAGS " .
         "environment variables or neither.  ");
+} elsif (defined($libType)) {
+    die("If you specify CURSES_LIBTYPE, you must also specify " .
+        "CURSES_LDFLAGS and CURSES_CFLAGS");
 } else {
     guessAtCursesLocation(\$libType, \$inc, \$libs);
 }

Modified: trunk/libcurses-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/debian/changelog?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/changelog (original)
+++ trunk/libcurses-perl/debian/changelog Fri Sep 12 04:10:18 2008
@@ -1,3 +1,11 @@
+libcurses-perl (1.24-1) unstable; urgency=low
+
+  * New upstream release
+  * Added myself as an uploader
+  * Standards-version -> 3.8.0 (no changes)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Thu, 11 Sep 2008 22:48:18 -0500
+
 libcurses-perl (1.23-1) unstable; urgency=low
 
   [ Roberto C. Sanchez ]

Modified: trunk/libcurses-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/debian/control?rev=25013&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/control (original)
+++ trunk/libcurses-perl/debian/control Fri Sep 12 04:10:18 2008
@@ -4,8 +4,9 @@
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jay Bonci <jaybonci at debian.org>,
  Damyan Ivanov <dmn at debian.org>, Niko Tyni <ntyni at debian.org>,
- gregor herrmann <gregor+debian at comodo.priv.at>
-Standards-Version: 3.7.3
+ gregor herrmann <gregor+debian at comodo.priv.at>, 
+ Gunnar Wolf <gwolf at debian.org>
+Standards-Version: 3.8.0
 Homepage: http://search.cpan.org/dist/Curses/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcurses-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/




More information about the Pkg-perl-cvs-commits mailing list