Sat Jun 23 21:17:18 2012 UTC ()
Hide a bunch of own declarations of standard functions; should fix the
Solaris build. While here, stop stuffing pointers in ints on 64-bit
platforms (other than Alpha, which it already knew about) and therefore
bump PKGREVISION to 1.


(dholland)
diff -r1.13 -r1.14 pkgsrc/lang/umb-scheme/Makefile
diff -r1.6 -r1.7 pkgsrc/lang/umb-scheme/distinfo
diff -r1.1 -r1.2 pkgsrc/lang/umb-scheme/patches/patch-af

cvs diff -r1.13 -r1.14 pkgsrc/lang/umb-scheme/Makefile (expand / switch to context diff)
--- pkgsrc/lang/umb-scheme/Makefile 2008/03/04 16:38:13 1.13
+++ pkgsrc/lang/umb-scheme/Makefile 2012/06/23 21:17:17 1.14
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2008/03/04 16:38:13 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2012/06/23 21:17:17 dholland Exp $
 
 DISTNAME=		umb-scheme-3.2
+PKGREVISION=		1
 CATEGORIES=		lang
 MASTER_SITES=		ftp://ftp.cs.umb.edu/pub/scheme/
 EXTRACT_SUFX=		.tar.Z

cvs diff -r1.6 -r1.7 pkgsrc/lang/umb-scheme/distinfo (expand / switch to context diff)
--- pkgsrc/lang/umb-scheme/distinfo 2006/07/22 00:09:18 1.6
+++ pkgsrc/lang/umb-scheme/distinfo 2012/06/23 21:17:17 1.7
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2006/07/22 00:09:18 minskim Exp $
+$NetBSD: distinfo,v 1.7 2012/06/23 21:17:17 dholland Exp $
 
 SHA1 (umb-scheme-3.2.tar.Z) = eebce3a837bd57b1509cf91adab144d6ddb48b44
 RMD160 (umb-scheme-3.2.tar.Z) = f56954e66568d04d23ff3d535ca72fb1d2f4b1b3
@@ -8,5 +8,5 @@
 SHA1 (patch-ac) = 77eef2efa0efe5aaff06e3c5fb699628a1f6b857
 SHA1 (patch-ad) = 65d047e28ab1323e4bda18e79cd9192878f96edd
 SHA1 (patch-ae) = 3c2c41683253749005c65bb49f07a43f4afddd02
-SHA1 (patch-af) = c37635da09a3d2926172845fb93f7f3f97e53f7a
+SHA1 (patch-af) = 6b20db6bf5583e3e1acf4506fc81e3c2a15f6f9f
 SHA1 (patch-ag) = 2fc118318a3615a4cbe21f5ede870f0e7f96586c

cvs diff -r1.1 -r1.2 pkgsrc/lang/umb-scheme/patches/patch-af (expand / switch to context diff)
--- pkgsrc/lang/umb-scheme/patches/patch-af 2001/04/12 21:06:45 1.1
+++ pkgsrc/lang/umb-scheme/patches/patch-af 2012/06/23 21:17:17 1.2
@@ -1,13 +1,66 @@
-$NetBSD: patch-af,v 1.1 2001/04/12 21:06:45 jtb Exp $
+$NetBSD: patch-af,v 1.2 2012/06/23 21:17:17 dholland Exp $
 
---- portable.h.orig	Thu Apr 12 20:13:29 2001
+- use standard headers
+- remove own declarations of standard/system things
+- use intptr_t rather than stuffing pointers into int
+
+--- portable.h.orig	1996-01-21 22:15:51.000000000 +0000
 +++ portable.h
-@@ -94,7 +94,7 @@
+@@ -35,9 +35,11 @@ For additional information about UMB Sch
+ */
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <errno.h>
+ #include <string.h>
++#include <stdint.h>
+ #include <math.h>
+ 
+ /* Machine dependencies */
+@@ -60,11 +62,7 @@ For additional information about UMB Sch
+ /* Processors (eg the Alpha) having 64-bit addresses require special casting
+    in the architecture module.  */
+ 
+-#if defined(__alpha__)
+-typedef long int Integral_Pointer;
+-#else
+-typedef int Integral_Pointer;
+-#endif
++typedef intptr_t Integral_Pointer;
+ 
+ 
+ /* NEGATIVE_ADDRESSES is defined to be 1 iff memory addresses have a 1 in the 
+@@ -83,27 +81,29 @@ typedef int Integral_Pointer;
+ /* The following declarations ought not to be necessary for C environments
+    that support the ANSI C Standard. */
+ 
++#if 0
+ extern void * malloc( /* size_t size */ );
+ extern void   free( /* char *ptr */ );
+ extern char * getenv( /* const char *name */ );
+ extern int    system( /* const char command */ );
+ extern void   exit( /* int status */ );
+ extern int    abs( /* int x */ );
++#endif
+ 
+ /* IF YOUR ENVIRONMENT HAS (any standard ANSI C library ought to have)
     a float.h defns file then replace the definition of DBL_MIN with
     an #include <float.h>                                                 */
  
 -#define DBL_MIN 10e-307
 +/* #define DBL_MIN 10e-307 */
  
- #ifdef sun
+-#ifdef sun
++#if 0
  extern int    fclose( /* FILE *stream */ );
+ extern int    ungetc( /* int c, FILE *stream */ );
+ extern int    fprintf( /* FILE *stream, const char *format, ...  */ );
+ extern int    _filbuf(), _flsbuf(); /* Yes, I know; talk to Sun! */
+ #endif
+ 
+-#ifdef sun386
++#if 0
+ extern int    sprintf( /* char *s,      const char *format, ...  */ );
+ extern char * memcpy( /* void *dest, const void *src, size_t len */ );
+ #endif