Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv10284

Modified Files:
        singular.info 
Added Files:
        singular.patch 
Log Message:
New revision 1017 from maintainer. Intel patches have migrated upstream

--- NEW FILE: singular.patch ---
diff -urN Singular-3-0-1.orig/kernel/feread.cc Singular-3-0-1/kernel/feread.cc
--- Singular-3-0-1.orig/kernel/feread.cc        2005-05-21 11:16:24.000000000 
+0200
+++ Singular-3-0-1/kernel/feread.cc     2006-07-18 12:01:37.000000000 +0200
@@ -1,7 +1,7 @@
 /****************************************
 *  Computer Algebra System SINGULAR     *
 ****************************************/
-/* $Id: feread.cc,v 1.6 2005/05/21 09:16:24 Singular Exp $ */
+/* $Id: feread.cc,v 1.7 2006/01/13 18:10:04 wienand Exp $ */
 /*
 * ABSTRACT: input from ttys, simulating fgets
 */
@@ -25,6 +25,9 @@
 #ifdef ppcMac_darwin
 #define OM_NO_MALLOC_MACROS
 #endif
+#ifdef ix86Mac_darwin
+#define OM_NO_MALLOC_MACROS
+#endif
 #include "omalloc.h"
 
 #include "../Singular/static.h"
@@ -309,6 +312,9 @@
   if (BVERBOSE(V_PROMPT))
   {
     fprintf(stdout,pr);
+#ifdef DEFECT_SINGULAR
+    fprintf(stdout,"\n");
+#endif
   }
   mflush();
   return fgets(s,size,stdin);
diff -urN Singular-3-0-1.orig/kernel/mmstd.c Singular-3-0-1/kernel/mmstd.c
--- Singular-3-0-1.orig/kernel/mmstd.c  2004-07-16 10:43:00.000000000 +0200
+++ Singular-3-0-1/kernel/mmstd.c       2006-07-18 12:01:25.000000000 +0200
@@ -16,6 +16,9 @@
 #ifdef ppcMac_darwin
 #define OMALLOC_USES_MALLOC
 #endif
+#ifdef ix86Mac_darwin
+#define OMALLOC_USES_MALLOC
+#endif
 #include "omalloc.h"
 
 // we provide these functions, so that the settings of OM_CHECK
diff -urN Singular-3-0-1.orig/kernel/mod_raw.cc Singular-3-0-1/kernel/mod_raw.cc
--- Singular-3-0-1.orig/kernel/mod_raw.cc       2005-09-13 21:15:23.000000000 
+0200
+++ Singular-3-0-1/kernel/mod_raw.cc    2006-07-18 12:01:01.000000000 +0200
@@ -1,7 +1,7 @@
 /****************************************
 *  Computer Algebra System SINGULAR     *
 ****************************************/
-/* $Id: mod_raw.cc,v 1.8 2005/09/13 19:15:23 bricken Exp $ */
+/* $Id: mod_raw.cc,v 1.11 2006/06/07 10:47:25 Singular Exp $ */
 /*
  * ABSTRACT: machine depend code for dynamic modules
  *
@@ -180,6 +180,10 @@
 #define HAVE_ELF_SYSTEM
 #endif
 
+#if defined(hppa_Linux)
+#define HAVE_ELF_SYSTEM
+#endif
+
 #if defined(SunOS_5)
 #define HAVE_ELF_SYSTEM
 #endif
@@ -192,10 +196,18 @@
 #define HAVE_ELF_SYSTEM
 #endif
 
+#ifdef ix86Mac_darwin
+#define HAVE_ELF_SYSTEM
+#endif
+
 #ifdef ix86_freebsd
 #define HAVE_ELF_SYSTEM
 #endif
 
+#ifdef sparc64_Linux
+#define HAVE_ELF_SYSTEM
+#endif
+
 #if defined(HAVE_ELF_SYSTEM)
 #include <dlfcn.h>
 
diff -urN Singular-3-0-1.orig/ntl/include/NTL/new.h 
Singular-3-0-1/ntl/include/NTL/new.h
--- Singular-3-0-1.orig/ntl/include/NTL/new.h   2003-11-03 18:33:24.000000000 
+0100
+++ Singular-3-0-1/ntl/include/NTL/new.h        2006-07-13 11:32:01.000000000 
+0200
@@ -12,7 +12,7 @@
 
 #include <new>
 
-#define NTL_NEW_OP new (std::nothrow)
+#define NTL_NEW_OP ::new //(std::nothrow)
 
 
 #else
diff -urN Singular-3-0-1.orig/singuname.sh Singular-3-0-1/singuname.sh
--- Singular-3-0-1.orig/singuname.sh    2005-02-23 16:43:10.000000000 +0100
+++ Singular-3-0-1/singuname.sh 2006-07-13 11:31:33.000000000 +0200
@@ -73,6 +73,38 @@
             echo ${prefix}
         fi
         exit 0
+    elif (echo $uname_a | $egrep "Darwin" >$devnull)
+    then
+        echo ix86Mac-darwin
+        exit 0
+    elif (echo $uname_a | $egrep "SunOS" >$devnull)
+    then
+        echo ix86-SunOS
+        exit 0
+    else
+        echo ${prefix}-Unknown
+        exit 1
+    fi
+# AMD-Opteron ########################################################
+elif (echo $uname_a | $egrep "x86_64" > $devnull)
+then
+    prefix=x86_64
+    if (echo $uname_a | $egrep "Linux" > $devnull)
+    then
+        echo ${prefix}-Linux
+        exit 0
+    else
+        echo ${prefix}-Unknown
+        exit 1
+    fi
+# HPPA ################################################################
+elif (echo $uname_a | $egrep "hppa" > $devnull)
+then
+    prefix=hppa
+    if (echo $uname_a | $egrep "Linux" > $devnull)
+    then
+        echo ${prefix}-Linux
+        exit 0
     else
         echo ${prefix}-Unknown
         exit 1
@@ -180,10 +212,10 @@
         echo ${prefix}-Unknown
         exit 1
     fi
-# AMD-Opteron ########################################################
-elif (echo $uname_a | $egrep "x86_64" > $devnull)
+# sparc64-Linux ############################################
+elif (echo $uname_a | $egrep "sparc64" >$devnull)
 then
-    prefix=x86_64
+    prefix=sparc64
     if (echo $uname_a | $egrep "Linux" > $devnull)
     then
         echo ${prefix}-Linux
@@ -192,6 +224,7 @@
         echo ${prefix}-Unknown
         exit 1
     fi
+
 else # Unknown ########################################################
     echo Unknown
     exit 2

Index: singular.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/singular.info,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- singular.info       11 Jul 2006 15:14:26 -0000      1.6
+++ singular.info       18 Jul 2006 13:40:48 -0000      1.7
@@ -1,20 +1,21 @@
 Package: singular
 Version: 3.0.1
-Revision: 1015
+Revision: 1017
 GCC: 4.0
-Source: 
http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/src/3-0-1/Singular-3-0-1-1.tar.gz
+Source: 
http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-0-1/Singular-3-0-1-2.tar.gz
 Maintainer: Michael Brickenstein <[EMAIL PROTECTED]>
 HomePage: http://www.singular.uni-kl.de
 License: Restrictive/Distributable
 Description: Computer Algebra system
-Source-MD5: 0534ea706c1eda4df706a341bafee947
+Source-MD5: 0f0178368ef7a3bac8d18a7cc1b522d3
+Patch: %n.patch
 SourceDirectory:Singular-3-0-1
 ConfigureParams: --disable-doc --libdir=%i/lib/Singular 
--includedir=%i/include/Singular  --bindir=%i/lib/Singular 
--prefix=%i/share/Singular --enable-factory --enable-MP --enable-libfac 
--without-dynamic-kernel --with-malloc=system --with-valloc=system
 CompileScript: <<
 #! /bin/sh -ev
 export CPPFLAGS="-I%p/include" 
-export CFLAGS="-O1"
-export CXXFLAGS="-O1 -Wno-deprecated"
+export CFLAGS="-O3"
+export CXXFLAGS="-O3 -Wno-deprecated"
 export LDFLAGS="-L%p/lib -ldl"
 rm -rf gmp
 rm -rf doc
@@ -22,14 +23,14 @@
 #echo "#undef PDEBUG" >> Singular/mod2.h.in
 #echo "#undef PDEBUG" >> kernel/mod2.h.in
 find . -name configure -exec touch "{}" ";"
-ac_cv_singuname=ppcMac-darwin ./configure %c
+./configure %c
 
 <<
 InstallScript: <<
 #! /bin/sh -ev
 export CPPFLAGS="-I%p/include" 
-export CFLAGS="-O1"
-export CXXFLAGS="-O1"
+export CFLAGS="-O3"
+export CXXFLAGS="-O3"
 export LDFLAGS="-L%p/lib -ldl"
 echo "#define MAKE_DISTRIBUTION " >Singular/distrib.h
 make install
@@ -95,8 +96,8 @@
 rm -rf %p/share/Singular/doc/doc/NTL
 <<
 DocFiles: ChangeLog COPYING BUGS GPL
-Depends: readline-shlibs (>= 4.3-1028), gmp-shlibs (>= 4.1.4-1), 
libmpfr1-shlibs
-BuildDepends: readline (>= 4.3-1028), gmp (>= 4.1.4-1), libmpfr1
+Depends: readline5-shlibs (>= 5.0-1004), libncurses5-shlibs (>= 
5.4-20041023-1006), gmp-shlibs (>= 4.1.4-1), libmpfr1-shlibs 
+BuildDepends: readline5 (>= 5.0-1004), libncurses5 (>= 5.4-20041023-1006), gmp 
(>= 4.1.4-1), libmpfr1
 BuildConflicts: broken-gcc
 Suggests: surf, graphviz, singular-doc
 #, singular-factory, singular-libfac


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to