Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv5642

Added Files:
        singular-doc.info singular.info singular.patch 
Log Message:
Adding new singular pkg to 10.7 tree (thanks to Hanspeter for helping)

--- NEW FILE: singular.patch ---
diff -ruN Singular-3-1-3/CMakeLists.txt Singular-3-1-3-patched/CMakeLists.txt
--- Singular-3-1-3/CMakeLists.txt       2011-09-29 15:13:38.000000000 +0200
+++ Singular-3-1-3-patched/CMakeLists.txt       2011-09-29 15:44:02.000000000 
+0200
@@ -120,12 +120,12 @@
 
   #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Wno-non-virtual-dtor")
   set(CMAKE_C_FLAGS "-w -pipe ")
-  set(CMAKE_CXX_FLAGS "-w  -pipe ") #--no-rtti
+  set(CMAKE_CXX_FLAGS "-w  -pipe ") #-fno-rtti
   # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
   # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 
   set(CMAKE_C_FLAGS_RELEASE "-O3 -fomit-frame-pointer")
-  set(CMAKE_CXX_FLAGS_RELEASE "-O3 --no-rtti -fomit-frame-pointer")
+  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-rtti -fomit-frame-pointer")
 
   #set(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer -DNDEBUG ")
   #set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fomit-frame-pointer -DNDEBUG -DOM_NDEBUG")
diff -ruN Singular-3-1-3/IntegerProgramming/gen_test.cc 
Singular-3-1-3-patched/IntegerProgramming/gen_test.cc
--- Singular-3-1-3/IntegerProgramming/gen_test.cc       2011-09-29 
15:13:39.000000000 +0200
+++ Singular-3-1-3-patched/IntegerProgramming/gen_test.cc       2011-09-30 
08:44:21.000000000 +0200
@@ -8,7 +8,7 @@
 
 #include "testdata.h"
 
-main()
+int main()
 {
   ofstream output1("IP/testmatrix1");
   random_matrix(3,4,0,5,output1);
diff -ruN Singular-3-1-3/IntegerProgramming/si_gmp.h 
Singular-3-1-3-patched/IntegerProgramming/si_gmp.h
--- Singular-3-1-3/IntegerProgramming/si_gmp.h  2011-09-29 15:13:39.000000000 
+0200
+++ Singular-3-1-3-patched/IntegerProgramming/si_gmp.h  2011-09-29 
17:31:08.000000000 +0200
@@ -4,6 +4,7 @@
 #ifndef INCL_CF_GMP_H
 #define INCL_CF_GMP_H
 
+#include <stddef.h>
 #if defined(__cplusplus) && defined(__GNUC__)
 extern "C" {
 #undef __cplusplus
diff -ruN Singular-3-1-3/Singular/configure 
Singular-3-1-3-patched/Singular/configure
--- Singular-3-1-3/Singular/configure   2011-09-29 15:13:41.000000000 +0200
+++ Singular-3-1-3-patched/Singular/configure   2011-09-29 15:43:10.000000000 
+0200
@@ -1355,10 +1355,10 @@
 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS 
conftest.$ac_ext $LIBS 1>&5'
 cross_compiling=$ac_cv_prog_cxx_cross
 
-  # check whether gcc accepts --no-rtti
-  echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
-echo "configure:1361: checking whether gcc accepts --no-rtti" >&5
-  CXXFLAGS="${CXXFLAGS} --no-rtti"
+  # check whether gcc accepts -fno-rtti
+  echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
+echo "configure:1361: checking whether gcc accepts -fno-rtti" >&5
+  CXXFLAGS="${CXXFLAGS} -fno-rtti"
   if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1387,14 +1387,14 @@
   if test "${ac_cv_cxx_have_rtti}" != yes; then
     CXXFLAGS="$temp_flags"
   else
-    CXXFLAGS="${temp_flags} --no-rtti"
+    CXXFLAGS="${temp_flags} -fno-rtti"
     temp_flags="${CXXFLAGS}"
   fi
 
-# check whether gcc accepts --no-exceptions
-  echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
-echo "configure:1397: checking whether gcc accepts --no-exceptions" >&5
-  CXXFLAGS="${CXXFLAGS} --no-exceptions"
+# check whether gcc accepts -fno-exceptions
+  echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
+echo "configure:1397: checking whether gcc accepts -fno-exceptions" >&5
+  CXXFLAGS="${CXXFLAGS} -fno-exceptions"
   if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1423,7 +1423,7 @@
   if test "${ac_cv_cxx_have_exceptions}" != yes; then
     CXXFLAGS="$temp_flags"
   else
-    CXXFLAGS="${temp_flags} --no-exceptions"
+    CXXFLAGS="${temp_flags} -fno-exceptions"
     temp_flags="${CXXFLAGS}"
   fi
 
@@ -1522,12 +1522,12 @@
   fi
   temp_flags="${CXXFLAGS}"
   if test "${ac_cv_cxx_have_rtti}" = yes; then
-    CXXFLAGS="${temp_flags} --no-rtti"
+    CXXFLAGS="${temp_flags} -fno-rtti"
   fi
   temp_flags="${CXXFLAGS}"
   CXXTEMPLFLAGS="-fno-implicit-templates"
   if test "${ac_cv_cxx_have_exceptions}" = yes; then
-    CXXTEMPLFLAGS="${CXXTEMPLFLAGS} --no-exceptions"
+    CXXTEMPLFLAGS="${CXXTEMPLFLAGS} -fno-exceptions"
   fi
   if test "$ac_cv_is_aix" = yes; then
     CXXNOOPTFLAGS="-w"
diff -ruN Singular-3-1-3/Singular/libparse.cc 
Singular-3-1-3-patched/Singular/libparse.cc
--- Singular-3-1-3/Singular/libparse.cc 2011-09-29 15:13:47.000000000 +0200
+++ Singular-3-1-3-patched/Singular/libparse.cc 2011-09-29 15:15:06.000000000 
+0200
@@ -3503,14 +3503,14 @@
 }
 
 #ifdef STANDALONE_PARSER
-main( int argc, char *argv[] )
+int main( int argc, char *argv[] )
 {
   lib_style_types lib_style;
   main_init(argc, argv);
   if(yyin == NULL)
   {
     fprintf(stderr, "No library found to parse.\n");
-    exit(1);
+    return 1;
   }
   if (! (texinfo_out || category_out))
   {
@@ -3532,7 +3532,7 @@
   else if(pi!=NULL) printpi(pi);
   if (texinfo_out)
     printf("1;");
-  exit(0);
+  return 0;
 }
 
 #endif /* STANDALONE_PARSER */
diff -ruN Singular-3-1-3/Singular/libparse.l 
Singular-3-1-3-patched/Singular/libparse.l
--- Singular-3-1-3/Singular/libparse.l  2011-09-29 15:13:47.000000000 +0200
+++ Singular-3-1-3-patched/Singular/libparse.l  2011-09-29 15:15:19.000000000 
+0200
@@ -964,14 +964,14 @@
 }
 
 #ifdef STANDALONE_PARSER
-main( int argc, char *argv[] )
+int main( int argc, char *argv[] )
 {
   lib_style_types lib_style;
   main_init(argc, argv);
   if(yyin == NULL)
   {
     fprintf(stderr, "No library found to parse.\n");
-    exit(1);
+    return 1;
   }
   if (! (texinfo_out || category_out))
   {
@@ -993,7 +993,7 @@
   else if(pi!=NULL) printpi(pi);
   if (texinfo_out)
     printf("1;");
-  exit(0);
+  return 0;
 }
 
 #endif /* STANDALONE_PARSER */
diff -ruN Singular-3-1-3/dyn_modules/bigintm/SConstruct 
Singular-3-1-3-patched/dyn_modules/bigintm/SConstruct
--- Singular-3-1-3/dyn_modules/bigintm/SConstruct       2011-09-29 
15:13:38.000000000 +0200
+++ Singular-3-1-3-patched/dyn_modules/bigintm/SConstruct       2011-09-29 
15:43:56.000000000 +0200
@@ -17,7 +17,7 @@
 
 #env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc')
 
-CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions"
+CXXTEMPLFLAGS = "-fno-implicit-templates -fno-exceptions"
 
 if env ['PLATFORM'] == "darwin":
     MACOSXMODULEFLAGS = '-twolevel_namespace -weak_reference_mismatches weak 
-undefined dynamic_lookup'
@@ -49,7 +49,7 @@
         SHLIBSUFFIX = ".so",
         CPPPATH = SING_INCLUDES,
         CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
-        CXXFLAGS = "-O3 -fomit-frame-pointer --no-rtti " + CXXTEMPLFLAGS,
+        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
         CCFLAGS="-O3 -fomit-frame-pointer ",
         LDMODULEFLAGS = BUNDLETEMPFLAGS,
         LIBS=[])
diff -ruN Singular-3-1-3/dyn_modules/modgen/Makefile.in 
Singular-3-1-3-patched/dyn_modules/modgen/Makefile.in
--- Singular-3-1-3/dyn_modules/modgen/Makefile.in       2011-09-29 
15:13:38.000000000 +0200
+++ Singular-3-1-3-patched/dyn_modules/modgen/Makefile.in       2011-09-29 
15:42:29.000000000 +0200
@@ -44,7 +44,7 @@
 ##
 ## compiler and linker options
 ##
-CFLAGS += --no-rtti --no-exceptions -O3 -w -fomit-frame-pointer -pipe 
-fno-implicit-templates \
+CFLAGS += -fno-rtti -fno-exceptions -O3 -w -fomit-frame-pointer -pipe 
-fno-implicit-templates \
        -g -I${includedir} -I../include -I${topsrcdir}/.. -DNDEBUG 
-DMODULE_GENERATOR \
        -D${SING_UNAME}
 LIBS   += -L/usr/local/lib
diff -ruN Singular-3-1-3/dyn_modules/syzextra/SConstruct 
Singular-3-1-3-patched/dyn_modules/syzextra/SConstruct
--- Singular-3-1-3/dyn_modules/syzextra/SConstruct      2011-09-29 
15:13:38.000000000 +0200
+++ Singular-3-1-3-patched/dyn_modules/syzextra/SConstruct      2011-09-29 
15:43:53.000000000 +0200
@@ -17,7 +17,7 @@
 
 #env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc')
 
-CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions"
+CXXTEMPLFLAGS = "-fno-implicit-templates -fno-exceptions"
 
 if env ['PLATFORM'] == "darwin":
     MACOSXMODULEFLAGS = '-twolevel_namespace -weak_reference_mismatches weak 
-undefined dynamic_lookup'
@@ -49,7 +49,7 @@
         SHLIBSUFFIX = ".so",
         CPPPATH = SING_INCLUDES,
         CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
-        CXXFLAGS = "-O3 -fomit-frame-pointer --no-rtti " + CXXTEMPLFLAGS,
+        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
         CCFLAGS="-O3 -fomit-frame-pointer ",
         LDMODULEFLAGS = BUNDLETEMPFLAGS,
         LIBS=[])
diff -ruN Singular-3-1-3/factory/CMakeLists.txt 
Singular-3-1-3-patched/factory/CMakeLists.txt
--- Singular-3-1-3/factory/CMakeLists.txt       2011-09-29 15:13:39.000000000 
+0200
+++ Singular-3-1-3-patched/factory/CMakeLists.txt       2011-09-29 
15:43:50.000000000 +0200
@@ -74,7 +74,7 @@
   if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
 
     #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Wno-non-virtual-dtor")
-    set(CMAKE_CXX_FLAGS "-w --no-rtti -pipe ")
+    set(CMAKE_CXX_FLAGS "-w -fno-rtti -pipe ")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
     #add_definitions(-DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H)
 
diff -ruN Singular-3-1-3/kernel/si_gmp.h Singular-3-1-3-patched/kernel/si_gmp.h
--- Singular-3-1-3/kernel/si_gmp.h      2011-09-29 15:13:39.000000000 +0200
+++ Singular-3-1-3-patched/kernel/si_gmp.h      2011-09-29 17:31:31.000000000 
+0200
@@ -2,6 +2,8 @@
 
 #ifndef INCL_CF_GMP_H
 #define INCL_CF_GMP_H
+
+#include <stddef.h>
 #ifdef HAVE_FACTORY
 #  include <factory/cf_gmp.h>
 #else
diff -ruN Singular-3-1-3/libfac/CMakeLists.txt 
Singular-3-1-3-patched/libfac/CMakeLists.txt
--- Singular-3-1-3/libfac/CMakeLists.txt        2011-09-29 15:13:39.000000000 
+0200
+++ Singular-3-1-3-patched/libfac/CMakeLists.txt        2011-09-29 
15:43:48.000000000 +0200
@@ -35,7 +35,7 @@
   if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
 
     #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Wno-non-virtual-dtor")
-    set(CMAKE_CXX_FLAGS "-w --no-rtti -pipe ")
+    set(CMAKE_CXX_FLAGS "-w -fno-rtti -pipe ")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
     #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 

--- NEW FILE: singular-doc.info ---
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: singular-doc
Version: 3.1.3.2
Revision: 1
#
Maintainer: Max Horn <[email protected]>
HomePage: http://www.singular.uni-kl.de
License: GPL
#
Description: Documentation for the Singular CAS
DescPackaging: <<
 Previous revisions by Michael Brickenstein.
<<
#
Depends: singular
#
Source: 
http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-1-3/Singular-3-1-3-2-share.tar.gz
Source-MD5: 9a1889426ad2354b7b4314202bd51758
SourceDirectory: Singular/3-1-3
#
CompileScript: # no compilation required
InstallScript: <<
#! /bin/sh -ev
VERSION="3-1-3"
DESTHOME=%i/share/Singular
DESTDOC=%i/share/doc/Singular
for directory in doc html examples info ; do
  echo "installing $directory"
  install -d $DESTDOC/$directory;
  install -m 644 $directory/* $DESTDOC/$directory;
done
for directory in emacs ; do
  echo "installing $directory"
  install -d $DESTHOME/$directory;
  install -m 644 $directory/* $DESTHOME/$directory;
done
install -m 644 emacs/.emacs* $DESTHOME/emacs
<<
DocFiles: COPYING README COPYING.html NEWS README.html NEWS.html


--- NEW FILE: singular.info ---
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: singular
Version: 3.1.3.2
Revision: 2
#
Maintainer: Max Horn <[email protected]>
HomePage: http://www.singular.uni-kl.de
License: GPL
#
Depends: readline5-shlibs (>= 5.0-1004), libncurses5-shlibs (>= 
5.4-20041023-1006), gmp5-shlibs, libmpfr4-shlibs 
BuildDepends: readline5 (>= 5.0-1004), libncurses5 (>= 5.4-20041023-1006), 
gmp5, libmpfr4
BuildConflicts: broken-gcc
Suggests: surf, graphviz, singular-doc
#
Source: 
http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-1-3/Singular-3-1-3-2.tar.gz
Source-MD5: c4fa20969a1e49b843c32cb95815b05b
SourceDirectory: Singular-3-1-3
#
PatchFile: %n.patch
PatchFile-MD5: a9bd3bc4d9566ff6c28e5271b6d1b5c7
#
ConfigureParams: <<
 --disable-doc \
 --libdir=%i/lib/Singular \
 --includedir=%i/include/Singular \
 --bindir=%i/lib/Singular \
 --prefix=%i/share/Singular \
 ( %m != x86_64 ) --enable-MP \
 --without-dynamic-kernel \
 --with-malloc=system \
 --with-valloc=system
<<
GCC: 4.0
SetCFLAGS: -O3
SetCXXFLAGS: -O3
#
CompileScript: <<
#! /bin/sh -ev
rm -rf gmp
rm -rf doc
./configure %c
<<
#
InstallScript: <<
#! /bin/sh -ev
VERSION="3-1-3"
#export ac_cv_header_boost_dynamic_bitset_hpp=no
echo "#define MAKE_DISTRIBUTION " >Singular/distrib.h

mkdir -p %i/bin
mkdir -p %i/share/Singular
make install

ln -sf Singular-$VERSION %i/lib/Singular/Singular
rm -f %i/share/Singular/LIB
cd Singular
make install-sharedist install_slibdir=%i/share/Singular/LIB
cd ..

cat >%i/bin/Singular <<!ANF
#!/bin/bash
export SINGULAR_BIN_DIR=%p/lib/Singular
export SINGULAR_ROOT_DIR=%p/share/Singular
export SINGULAR_INFO_FILE=%p/share/doc/Singular/info/singular.hlp
export SINGULAR_IDX_FILE=%p/share/doc/Singular/doc/singular.idx
export SINGULAR_HTML_DIR=%p/share/doc/Singular/html
export SINGULAR_EXAMPLES_DIR=%p/share/doc/Singular/examples
export PATH="%p/lib/Singular:%p/bin:\$PATH"
export SINGULAR_EXECUTABLE="%p/bin/Singular"
exec %p/lib/Singular/Singular-$VERSION  \$*
!ANF
chmod 755 %i/bin/Singular

cat >%i/lib/Singular/singularsurf <<!ANF
#!/bin/bash
x11_app=X11

if [ -d /Applications/Utilities/X11.app ]; then
  x11_app=/Applications/Utilities/X11.app
elif [ -d /Applications/X11.app ]; then
  x11_app=/Applications/X11.app
fi

/usr/bin/open -a "\$x11_app" 

sleep 1;

if [ -z \$DISPLAY ]; then
export DISPLAY=":0.0"
fi

exec surf \$*
!ANF

chmod 755 %i/lib/Singular/singularsurf

cat >%i/bin/ESingular <<!ANF
#!/bin/bash
export SINGULAR_BIN_DIR=%p/lib/Singular
export SINGULAR_ROOT_DIR=%p/share/Singular
export SINGULAR_INFO_FILE=%p/share/doc/Singular/info/singular.hlp
export SINGULAR_IDX_FILE=%p/share/doc/Singular/doc/singular.idx
export SINGULAR_HTML_DIR=%p/share/doc/Singular/html
export SINGULAR_EXAMPLES_DIR=%p/share/doc/Singular/examples
export PATH="%p/bin:\$PATH"
export SINGULAR_EXECUTABLE="%p/bin/Singular"
exec %p/lib/Singular/ESingular  \$*
!ANF
chmod 755 %i/bin/ESingular

rm -rf %p/share/Singular/doc/doc/NTL
for f in `find . -name ChangeLog|sed -e 's,^\./,,'`; do
  mkdir -p %i/share/doc/%N/`dirname $f`
  cp -p $f %i/share/doc/%N/$f
done
<<
DocFiles: COPYING README
#
Description: Computer algebra system
DescDetail: <<
Singular is a computer algebra system for polynomial computations, with
special emphasis on commutative and non-commutative algebra, algebraic
geometry, and singularity theory. 

Its main computational objects are ideals, modules and matrices over a
large number of baserings.
<<
DescPackaging: <<
 Disabling MP on 64 bit as it requires sizeof(long)==4. 

 Patching libparse.{l,cc} to avoid error with strict C++ compilers.
 
 Add explict include for <stddef.h> to work around problems on 10.7
 caused by singular trying to "trick" GMP into thinking it is being
 compiled in a C compiler, not a C++ compiler.

 Previous revisions by Michael Brickenstein.
<<


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to