pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/bc + Drop ncurses dependency because it was only ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/34d2a855f59c
branches:  trunk
changeset: 539417:34d2a855f59c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 05 04:00:01 2008 +0000

description:
+ Drop ncurses dependency because it was only there for readline on
  Linux.  The readline buildlink3.mk file now pulls in the correct
  dependencies on its own.

+ Actually tell the configure script to use the readline dependency.

+ Add patch-ac which fixes the declaration of readline() to match the
  readline.h header (it takes a const char * argument).

+ Add full DESTDIR support.

Bump the PKGREVISION to 2.

diffstat:

 math/bc/Makefile         |  14 ++++++++------
 math/bc/distinfo         |   3 ++-
 math/bc/patches/patch-ac |  13 +++++++++++++
 3 files changed, 23 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 6fd220ddada1 -r 34d2a855f59c math/bc/Makefile
--- a/math/bc/Makefile  Wed Mar 05 03:58:20 2008 +0000
+++ b/math/bc/Makefile  Wed Mar 05 04:00:01 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2006/04/05 23:01:15 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/05 04:00:01 jlam Exp $
 
 DISTNAME=      bc-1.06
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    math
 MASTER_SITES=  ${MASTER_SITE_GNU:=bc/}
 
@@ -9,10 +9,12 @@
 HOMEPAGE=      http://www.gnu.org/software/bc/bc.html
 COMMENT=       Arbitrary precision calculator language
 
-USE_TOOLS+=    flex
-GNU_CONFIGURE= YES
-INFO_FILES=    # PLIST
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-.include "../../devel/ncurses/buildlink3.mk"
+USE_TOOLS+=            flex
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-readline
+INFO_FILES=            # PLIST
+
 .include "../../devel/readline/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6fd220ddada1 -r 34d2a855f59c math/bc/distinfo
--- a/math/bc/distinfo  Wed Mar 05 03:58:20 2008 +0000
+++ b/math/bc/distinfo  Wed Mar 05 04:00:01 2008 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2005/02/23 12:06:54 agc Exp $
+$NetBSD: distinfo,v 1.3 2008/03/05 04:00:01 jlam Exp $
 
 SHA1 (bc-1.06.tar.gz) = c8f258a7355b40a485007c40865480349c157292
 RMD160 (bc-1.06.tar.gz) = e0394a090ad42f289a80de1dd26d2cf591f88481
 Size (bc-1.06.tar.gz) = 278926 bytes
 SHA1 (patch-aa) = 338b4e1232f4d10dee35183dec16b8da62f0cabf
 SHA1 (patch-ab) = 7f51824877c1573c737c6fa5695d1f2443e3b335
+SHA1 (patch-ac) = f9213e083374b61a9db4aa3315d21a8579e0704f
diff -r 6fd220ddada1 -r 34d2a855f59c math/bc/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bc/patches/patch-ac  Wed Mar 05 04:00:01 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2008/03/05 04:00:01 jlam Exp $
+
+--- bc/scan.l.orig     2000-09-13 14:25:47.000000000 -0400
++++ bc/scan.l
+@@ -143,7 +143,7 @@ static int   rl_len = 0;
+ 
+ /* Definitions for readline access. */
+ extern FILE *rl_instream;
+-_PROTOTYPE(char *readline, (char *));
++_PROTOTYPE(char *readline, (const char *));
+ 
+ /* rl_input puts upto MAX characters into BUF with the number put in
+    BUF placed in *RESULT.  If the yy input file is the same as



Home | Main Index | Thread Index | Old Index