FreeBSD Bugzilla – Attachment 69650 Details for
Bug 101850
New port: astro/aa - Self-contained ephemeris calculator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
aa-56.shar
aa-56.shar (text/plain), 5.30 KB, created by
Frank W. Josellis
on 2006-08-11 21:10:14 UTC
(
hide
)
Description:
aa-56.shar
Filename:
MIME Type:
Creator:
Frank W. Josellis
Created:
2006-08-11 21:10:14 UTC
Size:
5.30 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># astro/aa ># astro/aa/Makefile ># astro/aa/files ># astro/aa/files/patch-aa.c ># astro/aa/files/patch-dms.c ># astro/aa/files/patch-kfiles.c ># astro/aa/distinfo ># astro/aa/pkg-message ># astro/aa/pkg-descr ># >echo c - astro/aa >mkdir -p astro/aa > /dev/null 2>&1 >echo x - astro/aa/Makefile >sed 's/^X//' >astro/aa/Makefile << 'END-of-astro/aa/Makefile' >X# New ports collection makefile for: aa >X# Date created: 11 August 2006 >X# Whom: Frank W. Josellis <frank@dynamical-systems.org> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= aa >XPORTVERSION= 56 >XCATEGORIES= astro >XMASTER_SITES= http://moshier.net/ \ >X http://www.mirrorservice.org/sites/www.moshier.net/ >X >XMAINTAINER= frank@dynamical-systems.org >XCOMMENT= Self-contained ephemeris calculator >X >XWRKCSRC= ${WRKDIR}/${PORTNAME} >X >XEXTRACT_AFTER_ARGS= -d ${WRKSRC} >X >XUSE_ZIP= yes >XMAKEFILE= makefile >XALL_TARGET= aa >X >XPORTDOCS= read.me readme.404 Readme.FreeBSD >XPLIST_FILES= bin/aa etc/aa.ini.default >X >X.include <bsd.port.pre.mk> >X >Xpost-patch: >X @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/kfiles.c >X >Xdo-install: >X @${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin >X @${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default >X >Xpost-install: >X.if !defined(NOPORTDOCS) >X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE} > ${WRKSRC}/Readme.FreeBSD >X @${MKDIR} ${DOCSDIR} >X.for i in ${PORTDOCS} >X @${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} >X.endfor >X.endif >X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE} >X >X.include <bsd.port.post.mk> >END-of-astro/aa/Makefile >echo c - astro/aa/files >mkdir -p astro/aa/files > /dev/null 2>&1 >echo x - astro/aa/files/patch-aa.c >sed 's/^X//' >astro/aa/files/patch-aa.c << 'END-of-astro/aa/files/patch-aa.c' >X--- aa.c.orig Sun Nov 1 01:35:05 1998 >X+++ aa.c Fri Aug 11 13:21:19 2006 >X@@ -37,9 +37,7 @@ >X */ >X #include "kep.h" >X >X-#ifdef __BORLANDC__ >X #include <stdlib.h> >X-#endif >X >X #ifdef _MSC_VER >X #if _MSC_VER >= 1000 >END-of-astro/aa/files/patch-aa.c >echo x - astro/aa/files/patch-dms.c >sed 's/^X//' >astro/aa/files/patch-dms.c << 'END-of-astro/aa/files/patch-dms.c' >X--- dms.c.orig Sun Nov 1 18:59:47 1998 >X+++ dms.c Fri Aug 11 13:23:07 2006 >X@@ -485,7 +485,7 @@ >X else >X printf( "Illegal input format\n" ); >X printf( ") ? "); >X-gets(s); >X+fgets(s, 40, stdin); >X if( s[0] != '\0' ) >X sscanf( s, format, num ); >X return(0); >END-of-astro/aa/files/patch-dms.c >echo x - astro/aa/files/patch-kfiles.c >sed 's/^X//' >astro/aa/files/patch-kfiles.c << 'END-of-astro/aa/files/patch-kfiles.c' >X--- kfiles.c.orig Sat Aug 9 17:01:51 2003 >X+++ kfiles.c Fri Aug 11 18:51:05 2006 >X@@ -3,9 +3,7 @@ >X * or file containing orbital elements. >X */ >X >X-#if __BORLANDC__ >X #include <stdlib.h> >X-#endif >X >X #include "kep.h" >X >X@@ -67,13 +65,33 @@ >X int kinit() >X { >X double a, b, fl, co, si, u; >X-FILE *f, *fopen(); >X+FILE *f = NULL, *fopen(); >X char s[84]; >X+char *inifile = NULL, *home = getenv("HOME"); >X >X printf( "\n\tSteve Moshier's Ephemeris Program v5.6\n\n" ); >X printf( "Planetary and lunar positions approximate DE404.\n" ); >X >X-f = fopen( "aa.ini", "r" ); >X+/* User inifile */ >X+ if(home){ >X+ inifile = strdup(home); >X+ realloc(inifile, strlen(home) + strlen("/.aa.ini") + 1); >X+ strcat(inifile,"/.aa.ini"); >X+ f = fopen( inifile, "r" ); >X+ } >X+ >X+ /* System inifile */ >X+ if(!f){ >X+ inifile = "%%PREFIX%%/etc/aa.ini"; >X+ f = fopen( inifile, "r" ); >X+ } >X+ >X+ if (f){ >X+ printf("\nUsing inifile %s\n", inifile); >X+ } else { >X+ printf("\nNo inifile.\n"); >X+ } >X+ >X if( f ) >X { >X fgets( s, 80, f ); >END-of-astro/aa/files/patch-kfiles.c >echo x - astro/aa/distinfo >sed 's/^X//' >astro/aa/distinfo << 'END-of-astro/aa/distinfo' >XMD5 (aa-56.zip) = 74dfb091d8a749e6583bfc2880aecd10 >XSHA256 (aa-56.zip) = c7b1a3d2bcf46b7e649fbe7858725f80be153668cbb8ce51d9f39ee4567c262b >XSIZE (aa-56.zip) = 415059 >END-of-astro/aa/distinfo >echo x - astro/aa/pkg-message >sed 's/^X//' >astro/aa/pkg-message << 'END-of-astro/aa/pkg-message' >X--------------------------------------------------- >XNOTE: The program has been set up to read its >Xinitialization from a dotfile in a user's home, >X >X ${HOME}/.aa.ini >X >Xor from the system's ini file >X >X %%PREFIX%%/etc/aa.ini >X >Xwhere the latter has the lower priority. The port >Xonly installs "%%PREFIX%%/etc/aa.ini.default" >Xwhich shows a sample initialization. To configure >Xaa properly, this sample file should be copied to >Xone of the above ini files which then needs to be >Xedited to match the local requirements. >X--------------------------------------------------- >END-of-astro/aa/pkg-message >echo x - astro/aa/pkg-descr >sed 's/^X//' >astro/aa/pkg-descr << 'END-of-astro/aa/pkg-descr' >XThis program computes ephemerides of Sun, Moon, planets, comets, and stars >Xusing rigorous reduction methods from the _Astronomical Almanac_ and related >Xsources. Includes PLAN404 series for positions of the planets, and a long-term >Xextension of modern Lunar theory for the Moon's position. Reads ASCII file >Xcatalogues of stars and orbital elements. Displays all adjustments as it finds >Xlocal azimuth and elevation, rise and set times, etc. >X >XLatest update 2005-11-09. >X >XWWW: http://moshier.net/aadoc.html >END-of-astro/aa/pkg-descr >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 101850
: 69650