- Change nan("chars") to strtod("NAN(chars)", NULL) and remove dependency of gcc 3.3

- Bump PORTREVISION
- portlint(1)

PR:		93520
Submitted by:	Frank W. Josellis <frank@dynamical-systems.org>
This commit is contained in:
Marcus Alves Grando 2006-02-18 21:25:14 +00:00
parent 4609556789
commit db8ed14daf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156322
2 changed files with 20 additions and 4 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= libnova PORTNAME= libnova
PORTVERSION= 0.11.0 PORTVERSION= 0.11.0
PORTREVISION= 1
CATEGORIES= astro CATEGORIES= astro
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}
@ -16,15 +17,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Astronomical Calculation Library COMMENT= Astronomical Calculation Library
USE_GNOME= gnometarget lthack USE_GNOME= gnometarget lthack
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15 USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes INSTALLS_SHLIB= yes
USE_GCC= 3.3
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000 .if ${OSVERSION} < 503000
IGNORE= Requires FreeBSD 5.3 or higher IGNORE= requires FreeBSD 5.3 or higher
.endif .endif
post-patch: post-patch:

View file

@ -0,0 +1,17 @@
--- src/hyperbolic_motion.c.orig Tue Jul 5 11:09:22 2005
+++ src/hyperbolic_motion.c Sat Feb 18 02:17:12 2006
@@ -69,12 +69,12 @@
F = Z1 * G1;
Q3 = Q3 + F;
if (Z > 100 || fabs(F) > 10000)
- return nan("0");
+ return strtod("NAN(0)", NULL);
if (fabs(F) > PREC)
goto next_z;
L++;
if (L > 100)
- return nan("0");
+ return strtod("NAN(0)", NULL);
do
{
S1 = S;