pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/pdcurses Updated devel/pdcurses to 3.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc8fb94e78a6
branches:  trunk
changeset: 353689:fc8fb94e78a6
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Oct 10 02:12:57 2016 +0000

description:
Updated devel/pdcurses to 3.4
-----------------------------
PDCurses 3.4 - 2008/09/08
=========================

Nothing much new this time, but I've been sitting on some bug fixes for
almost a year, so it's overdue. Apart from bugs, the main changes are in
the documentation.

New features:

- setsyx() is now a function rather than a macro.

Bug fixes and such:

- In x11, the xc_atrtab table size was under-calculated by half,
  resulting in crashes at (oddly) certain line counts. (It should've
  crashed a lot more.) Reported by Mark Hessling.

- Test for moved cursor was omitting the window origin offset. Reported
  by Carey Evans.

- Is DOS and OS/2, the value for max items in key_table was still wrong.
  Reported by C.E.

- Changed isendwin() so it won't crash after delscreen().

- Ensure zero-termination in PDC_mbstowcs() and PDC_wcstombs().

- Disable QuickEdit Mode when enabling mouse input for the Win32
  console; reported by "Zalapkrakna".

- Fix for building under Innotek C (I hope). Report by Elbert Pol, fix
  courtesy of Paul Smedley.

- Unified exports list with no duplicates -- pdcurses.def is now built
  from components at compile time.

- Don't install curspriv.h, and don't include it with binary
  distributions.

- Building DLLs with LCC is no longer supported, due to the primitive
  nature of its make.exe.

- Export the terminfo stub functions from the DLLs, too.

- Added support for Apple's ".dylib" in configure. Suggested by Marc
  Vaillant (who says it's needed with OS 10.5.)

- In sdl1/Makefile.mng, ensure that CC is set.

- In the gcc makefiles, "$?" didn't really have the desired effect --
  _all_ the dependencies showed up on the command line, including
  curses.h, and pdcurses.a twice.  And apparently, this can mess up some
  old version (?) of MinGW. So, revert to spelling out "tuidemo.o
  tui.o". Reported by "Howard L."

- Extensive documentation revision and reorganizing. More to do here.
  For example, I moved the build instructions from INSTALL (which never
  really described installation) to the platform-specific READMEs.

- New indentation standard: four spaces, no tabs.

diffstat:

 devel/pdcurses/Makefile         |  10 ++++++----
 devel/pdcurses/PLIST            |   3 +--
 devel/pdcurses/distinfo         |  16 ++++++++--------
 devel/pdcurses/patches/patch-aa |   8 ++++----
 devel/pdcurses/patches/patch-ab |  22 +++++++++++-----------
 devel/pdcurses/patches/patch-ac |  25 +++++++++++--------------
 6 files changed, 41 insertions(+), 43 deletions(-)

diffs (196 lines):

diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/Makefile
--- a/devel/pdcurses/Makefile   Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/Makefile   Mon Oct 10 02:12:57 2016 +0000
@@ -1,14 +1,16 @@
-# $NetBSD: Makefile,v 1.9 2015/10/14 20:17:24 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2016/10/10 02:12:57 mef Exp $
 
-DISTNAME=      PDCurses-3.3
+DISTNAME=      PDCurses-3.4
 PKGNAME=       ${DISTNAME:tl}
-PKGREVISION=   3
 CATEGORIES=    devel x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=pdcurses/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://pdcurses.sourceforge.net/
 COMMENT=       Public domain implementation of the X/Open curses standard
+#LICENSE=      See README, Legal Stuff part, starting with:
+#  The core package is in the public domain, but small portions of PDCurses 
+#  are subject to copyright under various licenses
 
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
@@ -31,9 +33,9 @@
 
 REPLACE_SH=            x11/xcurses-config.in
 DOCDIR=                        ${PREFIX}/share/doc/${PKGBASE}
+INSTALLATION_DIRS+=    ${DOCDIR}
 
 post-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
        ${INSTALL_DATA} ${WRKSRC}/doc/PDCurses.txt ${DESTDIR}${DOCDIR}
 
 .include "../../mk/xaw.buildlink3.mk"
diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/PLIST
--- a/devel/pdcurses/PLIST      Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/PLIST      Mon Oct 10 02:12:57 2016 +0000
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:49:02 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/10/10 02:12:57 mef Exp $
 bin/xcurses-config
 include/xcurses.h
 include/xcurses/curses.h
-include/xcurses/curspriv.h
 include/xcurses/panel.h
 include/xcurses/term.h
 include/xpanel.h
diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/distinfo
--- a/devel/pdcurses/distinfo   Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/distinfo   Mon Oct 10 02:12:57 2016 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 03:29:02 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/10/10 02:12:57 mef Exp $
 
-SHA1 (PDCurses-3.3.tar.gz) = fde5908ecc417bdbaeac494cd37a8b73011257cc
-RMD160 (PDCurses-3.3.tar.gz) = 8787fa0c3f1ea0e8d85748b1a891ef6bd155cb0a
-SHA512 (PDCurses-3.3.tar.gz) = 8da3b79d7c16294bfeb7b299a0e02d1939646de184346b04b00ec66e54e72611d680fd0856ef762ad7ac33694fb9e7a6d59c9ffe2bc275a029c5a05d5739966a
-Size (PDCurses-3.3.tar.gz) = 329511 bytes
-SHA1 (patch-aa) = 18b54bdbc4564e0dd675c23a72e9388556e0c09c
-SHA1 (patch-ab) = 9381721ca10ae80a7fe012634d52ef1b018e3c6c
-SHA1 (patch-ac) = 77caf60fe803d7111de2f7b75a1950284fd9e139
+SHA1 (PDCurses-3.4.tar.gz) = e36684442a6171cc3a5165c8c49c70f67db7288c
+RMD160 (PDCurses-3.4.tar.gz) = 94d697d9879212ce619dafe045eef771a13ffa46
+SHA512 (PDCurses-3.4.tar.gz) = cf2144359935ea553954e60e74318168d4c6fcee48648dfec74325742a61786b285c59ad0a014cc1f4039a332c3dbf2031c64865025a0cd25ef8faacc5827d05
+Size (PDCurses-3.4.tar.gz) = 331253 bytes
+SHA1 (patch-aa) = 2e2e97b8bee839784d1108a6bec2f13467fd44b9
+SHA1 (patch-ab) = 1cba8632e03f64b82dc1322cb7ec31271e1e8e14
+SHA1 (patch-ac) = 0e3e08fd52efe15345aa1e6fdfe9c0eefa92857d
diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/patches/patch-aa
--- a/devel/pdcurses/patches/patch-aa   Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/patches/patch-aa   Mon Oct 10 02:12:57 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.2 2008/02/25 16:45:44 jlam Exp $
+$NetBSD: patch-aa,v 1.3 2016/10/10 02:12:57 mef Exp $
 
---- configure.orig     2007-06-23 18:53:15.000000000 -0400
-+++ configure
+--- configure.orig     2008-07-13 10:18:17.000000000 +0900
++++ configure  2016-10-10 10:33:18.000000000 +0900
 @@ -4685,6 +4685,7 @@ for ac_dir in $mh_inc_dirs ; do
      break
    fi
@@ -32,7 +32,7 @@
  for mh_lib in $mh_libs; do
 -  mh_lib_found=no
 -  for ac_dir in $mh_lib_dirs ; do
--    for mh_ext in a so sl dll.a; do
+-    for mh_ext in a so sl dll.a dylib; do
 -      if test -r $ac_dir/lib$mh_lib.$mh_ext; then
 -        if test "x$mh_prev_dir" != "x$ac_dir" ; then
 -          if test "x$mh_prev_dir" = "x" ; then
diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/patches/patch-ab
--- a/devel/pdcurses/patches/patch-ab   Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/patches/patch-ab   Mon Oct 10 02:12:57 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+$NetBSD: patch-ab,v 1.2 2016/10/10 02:12:57 mef Exp $
 
---- x11/Makefile.in.orig       2007-07-08 22:24:24.000000000 -0400
-+++ x11/Makefile.in
+--- x11/Makefile.in.orig       2008-07-13 17:08:22.000000000 +0900
++++ x11/Makefile.in    2016-10-10 10:39:28.000000000 +0900
 @@ -5,6 +5,10 @@ THIS          = Makefile
  
  @SET_MAKE@
@@ -36,16 +36,16 @@
  
  LIB_DEPS        = -L$(PDCURSES_SRCDIR)/x11 -lXCurses
  
-@@ -49,7 +55,7 @@ tuidemo.o worm.o xmas.o
+@@ -48,7 +54,7 @@ tuidemo.o worm.o xmas.o
+ 
  SHLFILE               = XCurses
  
- #########################################################################
 -all:  $(PDCLIBS) $(DEMOS)
-+all:  $(LIBCURSES) $(DEMOS)
++all:   $(LIBCURSES) $(DEMOS)
  
  install:
        echo Does nothing at the moment
-@@ -84,8 +90,8 @@ PDCSHOBJS = $(PDCOBJS:.o=.sho)
+@@ -81,8 +87,8 @@ PDCSHOBJS = $(PDCOBJS:.o=.sho)
  SHOFILES = $(LIBSHOBJS) $(PDCSHOBJS)
  
  $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
@@ -56,8 +56,8 @@
  
  $(SHLPRE)$(SHLFILE)$(SHLPST) : $(SHOFILES)
        $(LD_RXLIB1) -o $@ $(SHOFILES) $(LD_RXLIB2)
-@@ -499,31 +505,31 @@ xmas: xmas.o
- 
+@@ -489,31 +495,31 @@ xmas: xmas.o
+       $(LINK) xmas.o -o $@ $(LDFLAGS)
  
  firework.o: $(demodir)/firework.c
 -      $(BUILD) $(demodir)/firework.c
@@ -95,9 +95,9 @@
 -      $(BUILD) $(demodir)/xmas.c
 +      $(O_BUILD) $(demodir)/xmas.c
  
- #
  # This section provides for compiling and linking the
-@@ -562,22 +568,22 @@ ncurses: ncurses.o $(LIBCURSES)
+ # ncurses test programs.
+@@ -551,22 +557,22 @@ ncurses: ncurses.o $(LIBCURSES)
        $(LINK) ncurses.o -o $@ $(LDFLAGS)
  
  bs.o: $(ncurses_testdir)/bs.c $(PDCURSES_CURSES_H)
diff -r 7eab8bef6cd4 -r fc8fb94e78a6 devel/pdcurses/patches/patch-ac
--- a/devel/pdcurses/patches/patch-ac   Mon Oct 10 01:24:56 2016 +0000
+++ b/devel/pdcurses/patches/patch-ac   Mon Oct 10 02:12:57 2016 +0000
@@ -1,8 +1,10 @@
-$NetBSD: patch-ac,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+$NetBSD: patch-ac,v 1.2 2016/10/10 02:12:57 mef Exp $
+
+For pkgsrc, replace the INSTALL_* macros with the BSD_INSTALL_* macros.
 
---- Makefile.in.orig   2007-06-13 19:15:00.000000000 -0400
-+++ Makefile.in
-@@ -34,31 +34,25 @@ realclean ::
+--- Makefile.in.orig   2008-09-09 03:48:52.000000000 +0900
++++ Makefile.in        2016-10-10 11:05:09.000000000 +0900
+@@ -33,27 +33,21 @@ realclean ::
        cd x11; $(MAKE) $(MFLAGS) $@
        cd doc; $(MAKE) $(MFLAGS) $@
  
@@ -23,16 +25,8 @@
        sed -e 's/#include <curses.h>/#include <xcurses.h>/' \
                < $(srcdir)/panel.h > ./xpanel.h
 -      $(INSTALL) -m 644 ./xpanel.h $(includedir)/xpanel.h
--      $(INSTALL) -c -m 644 $(srcdir)/panel.h \
-+      $(BSD_INSTALL_DATA) ./xpanel.h $(includedir)/xpanel.h
-+      $(BSD_INSTALL_DATA) $(srcdir)/panel.h \
-               $(includedir)/xcurses/panel.h
--      $(INSTALL) -c -m 644 $(srcdir)/term.h \
-+      $(BSD_INSTALL_DATA) $(srcdir)/term.h \
-               $(includedir)/xcurses/term.h
--      $(INSTALL) -c -m 644 $(srcdir)/curspriv.h \
-+      $(BSD_INSTALL_DATA) $(srcdir)/curspriv.h \
-               $(includedir)/xcurses/curspriv.h
+-      $(INSTALL) -c -m 644 $(srcdir)/panel.h $(includedir)/xcurses/panel.h
+-      $(INSTALL) -c -m 644 $(srcdir)/term.h $(includedir)/xcurses/term.h
 -      $(INSTALL) -c -m 644 $(pdcursesdir)/libXCurses.a $(libdir)/libXCurses.a
 -      -$(RANLIB) $(libdir)/libXCurses.a
 -      -$(INSTALL) -c -m 755 $(pdcursesdir)/$(SHLPRE)$(SHLFILE)$(SHLPST) \
@@ -42,6 +36,9 @@
 -      ln -f -s $(libdir)/libXCurses.a $(libdir)/libXpanel.a
 -      -$(RANLIB) $(libdir)/libXpanel.a
 -      $(INSTALL) -c -m 755 x11/xcurses-config $(bindir)/xcurses-config
++      $(BSD_INSTALL_DATA) -m 644 ./xpanel.h $(includedir)/xpanel.h
++      $(BSD_INSTALL_DATA) -c -m 644 $(srcdir)/panel.h $(includedir)/xcurses/panel.h
++      $(BSD_INSTALL_DATA) $(srcdir)/term.h $(includedir)/xcurses/term.h
 +      $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $(pdcursesdir)/libXCurses.la $(libdir)/libXCurses.la
 +      $(BSD_INSTALL_SCRIPT) x11/xcurses-config $(bindir)/xcurses-config
  



Home | Main Index | Thread Index | Old Index