From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 11 20:10:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D289316A4DD for ; Fri, 11 Aug 2006 20:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29EC143D46 for ; Fri, 11 Aug 2006 20:10:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7BKAFY1019258 for ; Fri, 11 Aug 2006 20:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7BKAE3W019257; Fri, 11 Aug 2006 20:10:14 GMT (envelope-from gnats) Resent-Date: Fri, 11 Aug 2006 20:10:14 GMT Resent-Message-Id: <200608112010.k7BKAE3W019257@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Frank W. Josellis" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A499316A4DF for ; Fri, 11 Aug 2006 20:08:22 +0000 (UTC) (envelope-from frank@dynamical-systems.org) Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id D08DB43D49 for ; Fri, 11 Aug 2006 20:08:21 +0000 (GMT) (envelope-from frank@dynamical-systems.org) Received: from [194.97.55.242] (helo=mx9.freenet.de) by mout1.freenet.de with esmtpa (Exim 4.61) (envelope-from ) id 1GBdIq-0006l0-LF for FreeBSD-gnats-submit@freebsd.org; Fri, 11 Aug 2006 22:08:20 +0200 Received: from p508eadbb.dip0.t-ipconnect.de ([80.142.173.187] helo=pollux.senax.net) by mx9.freenet.de with esmtpsa (ID jr-relay@freenet.de) (TLSv1:AES256-SHA:256) (Exim 4.62 #2) id 1GBdIp-0005s8-SY for FreeBSD-gnats-submit@freebsd.org; Fri, 11 Aug 2006 22:08:20 +0200 Received: from pollux.senax.net (localhost.senax.net [127.0.0.1]) by pollux.senax.net (8.13.6/8.13.6) with ESMTP id k7BK8Hq2006655 for ; Fri, 11 Aug 2006 22:08:17 +0200 (CEST) (envelope-from frank@dynamical-systems.org) Received: (from josellis@localhost) by pollux.senax.net (8.13.6/8.13.6/Submit) id k7BK8GIb006654; Fri, 11 Aug 2006 22:08:16 +0200 (CEST) (envelope-from frank@dynamical-systems.org) Message-Id: <200608112008.k7BK8GIb006654@pollux.senax.net> Date: Fri, 11 Aug 2006 22:08:16 +0200 (CEST) From: "Frank W. Josellis" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/101850: New port: astro/aa - Self-contained ephemeris calculator X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2006 20:10:16 -0000 >Number: 101850 >Category: ports >Synopsis: New port: astro/aa - Self-contained ephemeris calculator >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 11 20:10:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Frank W. Josellis >Release: FreeBSD 5.5-STABLE i386 >Organization: >Environment: System: FreeBSD pollux.senax.net 5.5-STABLE FreeBSD 5.5-STABLE #7: Sun May 28 19:03:10 CEST 2006 root@pollux.senax.net:/usr/obj/usr/src/sys/POLLUX i386 >Description: Ephemeris program by Steve Moshier (aa = 'Astronomical Almanac'). More info at http://moshier.net/aadoc.html >How-To-Repeat: >Fix: --- aa-56.shar begins here --- # 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 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 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 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 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 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 --- aa-56.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: