Update of /cvsroot/fink/experimental/jfmertens/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv8099

Modified Files:
        qepcad.info 
Added Files:
        saclib.info 
Log Message:
qepcad-1.65, +gcc4.6

Index: qepcad.info
===================================================================
RCS file: /cvsroot/fink/experimental/jfmertens/main/finkinfo/sci/qepcad.info,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- qepcad.info 14 Apr 2011 22:49:29 -0000      1.12
+++ qepcad.info 13 Jul 2011 23:19:29 -0000      1.13
@@ -1,21 +1,21 @@
 Info2: <<
-Package: qepcad%type_pkg[-gcc4.5]
-Version: 1.61
+Package: qepcad%type_pkg[-gcc4.6]
+Version: 1.65
 Revision: 1
 Architecture: i386, x86_64
 # Arch-restriction inherited fom saclib
 Source: http://www.usna.edu/Users/cs/qepcad/INSTALL/%{Ni}-B.%v.tar.gz
-Source-MD5: eeaec754cfd66251aa44862db69926c0
+Source-MD5: a3e11db763dc9525de82ea1274ed224c
 Source2: http://www.usna.edu/Users/cs/qepcad/SLFQ/simplify-1.18.tar.gz
 Source2-MD5: 8b4ea6c64ddd54b8aed622420b3c1981
 SourceDirectory: qesource
-Type: -gcc4.5 (boolean)
-BuildDepends: readline5, saclib%type_pkg[-gcc4.5] (>= 2.2.5-1), sed, 
flex-devel, (%type_pkg[-gcc4.5]) gcc45-compiler, freeglut
-Depends: readline5-shlibs, (%type_pkg[-gcc4.5]) gcc45-shlibs, ( %m != x86_64 ) 
singular, freeglut-shlibs
-Recommends: saclib%type_pkg[-gcc4.5]
+Type: -gcc4.6 (boolean)
+BuildDepends: readline5, saclib%type_pkg[-gcc4.6] (>= 2.2.5-1), sed, 
flex-devel, (%type_pkg[-gcc4.6]) gcc46-compiler, freeglut
+Depends: readline5-shlibs, (%type_pkg[-gcc4.6]) gcc46-shlibs, ( %m != x86_64 ) 
singular, freeglut-shlibs
+Recommends: saclib%type_pkg[-gcc4.6]
 # Strictly speaking, the recommends would be a "depends" when using qepcad 
under gdb 
-Conflicts: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45
-Replaces: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45
+Conflicts: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45, %{Ni}-gcc46
+Replaces: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45, %{Ni}-gcc46
 
 PatchScript: <<
   #!/bin/sh -ev
@@ -24,15 +24,15 @@
   ## no /usr/local
   sed -i'' -e 's,#!/usr/local/bin/perl,#!/usr/bin/env perl,' 
extensions/{newadj/ps,rend/rgbinfo}.pl
   ## CFLAGS and LDFLAGS and the like :
-  if [ "%type_raw[-gcc4.5]" == "-gcc4.5" ] ; then nopic=''; else 
nopic="-mdynamic-no-pic"; fi
+  if [ "%type_raw[-gcc4.6]" == "-gcc4.6" ] ; then nopic=''; else 
nopic="-mdynamic-no-pic"; fi
   cflags="$nopic -Wall -Wextra -Wstrict-aliasing=2"
   # Makefiles don't respect CC or CXX
-  if [ "%type_raw[-gcc4.5]" == "-gcc4.5" ]; then CXX=g++-4
+  if [ "%type_raw[-gcc4.6]" == "-gcc4.6" ]; then CXX=g++-4
        elif test -f /usr/bin/g++-4.2; then CXX=g++-4.2
        else CXX=g++
   fi
   find .. -name Makefile -exec sed -i'' -e "s,g[+][+],$CXX,g" \{\} \;
-  # get rid of gcc45's libgcc_s
+  # get rid of gcc46's libgcc_s
   if [ `uname -r | cut -f1 -d.` -ge 9 ]; then 
LDFLAGS="-Wl,-dead_strip_dylibs"; else LDFLAGS=''; fi
   # to strip binaries ( using "-s" would lead at launch to dyld error "lazy 
pointer not found" ):
   echo '__mh_execute_header' > symlst
@@ -73,7 +73,7 @@
 CompileScript: <<
   #!/bin/sh -ev
   export PATH="%p/lib/flex/bin:$PATH"
-  if [ "%type_raw[-gcc4.5]" == "-gcc4.5" ]; then export 
PATH=%p/lib/gcc4.5/bin:$PATH; fi
+  if [ "%type_raw[-gcc4.6]" == "-gcc4.6" ]; then export 
PATH=%p/lib/gcc4.5/bin:$PATH; fi
   export CPATH=%p/include
   export saclib=%p
   export qe=`pwd`

--- NEW FILE: saclib.info ---
Info2: <<
Package: saclib%type_pkg[-gcc4.6]
Version: 2.2.5
Revision: 2
Architecture: i386, x86_64
## Would be relativel to revive ppc too, if there was any genuine demand for 
it..
# But apparently currently abandoned upstream
Source: http://www.usna.edu/Users/cs/qepcad/INSTALL/%{Ni}%v.tar.gz
Source-MD5: 84bc4f972b1362d635edce8c1ba6bb30
Type: -gcc4.6 (boolean)
BuildDepends: fink (>= 0.24.12), (%type_pkg[-gcc4.6]) gcc46-compiler
Conflicts: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45, %{Ni}-gcc46
Replaces: %{Ni}, %{Ni}-gcc44, %{Ni}-gcc45, %{Ni}-gcc46

PatchScript: <<
  #!/bin/sh -ev
  rm -fR RCS
  chmod -R a+rX .       # else gdb can't find files when not working as root
  if grep -q 64 %p/var/lib/fink/path-prefix-10.6/compiler_wrapper ; then 
pt=x86_64; else pt=x86; fi
  sed -i.bak -e '/macosKernelTest/d' -e "/32-bit or 64-bit/s,$,\n\t\$ptype = 
$pt," bin/mksysdep.pl
  ## powerpc seems excluded in this new version..  To fix if there is any 
demand...
  ## __STDC__ is not an exhaustive test whether the compiler supports 
prototypes;
  ## is defined under FSF gcc, but Apple's defines only __STDC_HOSTED__:
  sed -i.bak -e 's,ifdef __STDC__,if defined (__STDC__) || defined 
(__APPLE__),' include/sacsys.h src/FAIL.c

  ### Getting control over CFLAGS ...
  if [ "%type_raw[-gcc4.6]" == "-gcc4.6" ] ; then nopic=''; else 
nopic="-mdynamic-no-pic"; fi
  nopic="$nopic -Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing=2"
  ## first line next is to avoid optimizing away the flushing of regs in GC.
 sed -i.bak \
        -e "/Compiling/,\${
\X%{Ni}/lib/objo\$Xa\\
  make  CC=\$CC \"SACFLAG=$nopic\" EXTENSION=o GC.o
        }" \
        -e 's,\(SACFLAG=\)",\1-O3 -fstrict-aliasing",' \
        -e 's,=-g ,=-ggdb3 -gfull ,' \
        -e "s,SACFLAG=,&$nopic ," bin/mklib

  ### Some "implicit declaration of function 'GCASET'" warnings (GCASET is also 
an apparenly equivalent  macro in sacmacros.h ...)
  # Why the strange "#ifdef NO_SACLIB_MACROS" under "Macros that are always 
defined"  in sacmacros.h ?
  # Could at least CGASET be moved out of that list ? ( If '#ifdef' is not a 
typo for '#ifndef' ...).
  ## Remain a couple of implicit declaration warnings for FPCATCH, NORMFCT and 
NORMLHS; fixed in the CompileScript.
<<

CompileScript: <<
  #!/bin/sh -ev
  if [ "%type_raw[-gcc4.6]" == "-gcc4.6" ]
        then export PATH=%p/lib/gcc4.6/bin:$PATH CC=gcc-4 CXX=g++-4
        elif test -f /usr/bin/gcc-4.2
                then export CC=gcc-4.2 CXX=g++-4.2
        else export CC=gcc CXX=g++
  fi
  export %{Ni}=%b
  bin/sconf
  bin/mkproto
  ## mkproto missed the following (leading a.o. to "implicit declaration" 
warnings) :
echo "extern void FPCATCH       P__((void));
extern void GCASET      P__((Word A, Word i, Word a));
extern void NORMFCT     P__((Word N, Word n, Word p, Word Q, Word Qp, Word q, 
Word B, Word L, Word T, Word G, Word C, Word e, Word d, Word k, Word N1, Word 
*F_, Word *Nb_, Word *Bb_, Word *Lb_, Word *Tb_, Word *Gb_, Word *Cb_, Word 
*Nb1_));
extern void NORMLHS     P__((Word q, Word Q, Word Qpp, Word Ab, Word Bb, Word 
Sb, Word Tb, Word Ap, Word Bp, Word Yp, Word Zp, Word U, Word D, Word A, Word 
B, Word *Qs_, Word *Y_, Word *Z_, Word *Us_, Word *As_, Word *Bs_));" \
        >> include/sacproto.h
  bin/mkmake
  bin/mklib all
<<

InstallScript: <<
  #!/bin/sh -ev
  mkdir -p %i/bin %i/lib %i/include %i/share/doc/%N %i/share/%{Ni}
  cp -p lib/*.a %i/lib
  ln -s %{Ni}o.a %i/lib/%{Ni}.a
  cp -p include/*.h %i/include
  cp -p doc/{,maint_guide/}*.dvi %i/share/doc/%N
  # pkg must remain usable if user doesn't keep build-dir, so rm the 'perl' 
line :
  sed -e '/perl/d' -e 's,[$]%{Ni}/[bindoc]\{3\},%p/share/%{Ni},' < bin/sdesc > 
%i/bin/sdesc
  chmod a+x %i/bin/sdesc
  cp -p bin/{b2l,l2b}.awk doc/*.doc %i/share/%{Ni}
  chmod -R a+rX %i
  sed -e '/INSTALLATION/,/done\.$/d' -e 's,COPYRIGHT ,LICENSE ,' < README | 
uniq > HELP
<<

DocFiles: HELP LICENSE

Description: Computer algebra, specially on ordered fields
DescUsage: <<
  To get the elementary equivalent of a man3 page,
  use first "sdesc pattern" (with "pattern" eg "Algebraic number field"
  _ or "FPCATCH" _ ; it is not case-sensitive) to see what you are looking for,
  then grep that (those) items in %p/include/sacproto.h .
<<
DescPackaging: Installation "by hand"; there is no install target.
DescPort: <<
  Patching the linuxX86 build to apply also on darwin.
  Take care of missing headers and missing declarations.
<<
License: OSI-Approved
Homepage: http://www.usna.edu/Users/cs/qepcad/B/QEPCAD.html
Maintainer: JF Mertens <jfmert...@users.sourceforge.net>
<<


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to