Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/sci
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27583

Added Files:
        skycal.patch skycal.info 
Log Message:
10.2-gcc3.3->10.3 requested by owner Tracker item: 964333 moved to new naming scheme

--- NEW FILE: skycal.patch ---
diff -ur skycalV5/src/skycalc.v5.c skycalV5.patched/src/skycalc.v5.c
--- skycalV5/src/skycalc.v5.c   2001-09-13 10:57:36.000000000 -0500
+++ skycalV5.patched/src/skycalc.v5.c   2003-02-04 20:24:59.000000000 -0600
@@ -1040,7 +1040,7 @@
    return(sign * (hrs + mins / 60. + secs / 3600.));
 }
 
-double round(x,places)
+double sc_round(x,places)
 
 double x;
 int places;
@@ -1089,7 +1089,7 @@
        outcoord->hh = incoord->hh;
 
        if(prec <= 1) {
-               outcoord->mm = round((outcoord->mm + outcoord->ss / 60.),prec);
+               outcoord->mm = sc_round((outcoord->mm + outcoord->ss / 60.),prec);
                outcoord->ss = 0.;
                if(outcoord->mm >= 59.99) {  /* permissible because of limit
                                on prec */
@@ -1098,7 +1098,7 @@
                }
        }
        else {
-               outcoord->ss = round(outcoord->ss,(prec-2));
+               outcoord->ss = sc_round(outcoord->ss,(prec-2));
                if( outcoord->ss >= 59.999999999) {  /* as many digits as
                                one would ever want ... */
                        outcoord->ss -= 60.;

--- NEW FILE: skycal.info ---
Package: skycal
Version: 5
Revision: 1
Maintainer: Chris Dolan <[EMAIL PROTECTED]>
Source: ftp://iraf.noao.edu/contrib/%NV%v.tar.Z
Source-MD5: 6e7bdcd640941447f1f6a06e7a851262
SourceDirectory: %NV%v
DocFiles: README doc/*
Patch: %n.patch
CompileScript: <<
cc -O src/skycalc.v%v.c -o src/skycalc -lm -prebind
cc -O src/skycalendar.v%v.c -o src/skycalendar -lm -prebind
strip src/skycalc
strip src/skycalendar
<<
InstallScript: <<
mkdir %i/bin
cp src/skycalc src/skycalendar %i/bin
<<
Description: Astronomer's almanac tools
DescDetail: <<
Since V1 in 1993, this command line utility has provided simple but
enormously useful data for astronomers.  It's interface is odd, but
the calculations it provides are just what you need.

>From the author:
  "The program is COPYRIGHT 2000 BY JOHN THORSTENSEN.
   Permission is hereby granted for non-profit scientific or educational use.
   For-profit use (e. g., by astrologers!) must be through negotiated
   license.  The author requests that observatories and astronomy
   departments which install this as a utility notify the author
   by paper mail, just so I know how widely it is used."

Web wrappers around some of the SkyCal functions are at:
  http://imagiware.com/astro/
<<
DescPort: <<
To fix a conflict with round() in /usr/include/architecture/ppc/math.h,
I renamed the local function to sc_round.
<<
License: Restrictive/Distributable
Homepage: http://www.noao.edu/kpno/skycal/skycal.html



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to