summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2012-08-28 17:14:13 +0000
committeris <is@pkgsrc.org>2012-08-28 17:14:13 +0000
commit4cb4cef831cd367b2272968207688119d5db3886 (patch)
tree00b0a0daa05318512920a7f8b4939d95405d997c /time
parent2e0ef5c3c9a92a37245de7e3964ceed508b01364 (diff)
downloadpkgsrc-4cb4cef831cd367b2272968207688119d5db3886.tar.gz
phoon 29jun2005. Mostly an update to astronomy routines derived from
J. Walker's Moontool 2.5 (used to be 2.0).
Diffstat (limited to 'time')
-rw-r--r--time/phoon/DESCR6
-rw-r--r--time/phoon/Makefile6
-rw-r--r--time/phoon/distinfo12
-rw-r--r--time/phoon/patches/patch-aa22
-rw-r--r--time/phoon/patches/patch-ab12
-rw-r--r--time/phoon/patches/patch-ac21
6 files changed, 56 insertions, 23 deletions
diff --git a/time/phoon/DESCR b/time/phoon/DESCR
index 48ceb071024..9b492f7c1cc 100644
--- a/time/phoon/DESCR
+++ b/time/phoon/DESCR
@@ -1,6 +1,4 @@
- phoon - display current moon phase on ASCII terminal
- Distribution of 01apr95
- Previous distribution 07jun88
+ phoon - display current moon phase
phoon - program to display the PHase of the mOON. Unlike other
such programs, which just tell you how long since first quarter
@@ -9,4 +7,4 @@ picture. I've put an example at the end of this file. I first
wrote this program in Pascal / TOPS-20 at CMU in 1979; I translated
it to Ratfor / Software Tools in 1981; and now it's in C / Unix.
- Jef Poskanzer jef@acme.com http://www.acme.com/jef/
+ Jef Poskanzer jef@mail.acme.com http://www.acme.com/jef/
diff --git a/time/phoon/Makefile b/time/phoon/Makefile
index 48950c41717..9320e92a082 100644
--- a/time/phoon/Makefile
+++ b/time/phoon/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:53 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2012/08/28 17:14:13 is Exp $
#
-DISTNAME= phoon_01apr1995
-PKGNAME= phoon-19950401
+DISTNAME= phoon_29jun2005
+PKGNAME= phoon-20050629
CATEGORIES= time
MASTER_SITES= http://www.acme.com/software/phoon/
diff --git a/time/phoon/distinfo b/time/phoon/distinfo
index 17fc9bc22ed..9881d4c8d8c 100644
--- a/time/phoon/distinfo
+++ b/time/phoon/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.5 2012/05/10 22:16:54 dholland Exp $
+$NetBSD: distinfo,v 1.6 2012/08/28 17:14:13 is Exp $
-SHA1 (phoon_01apr1995.tar.gz) = b0e81c9cd6f1d332bc25340c12e1f0fcc274c8b5
-RMD160 (phoon_01apr1995.tar.gz) = e5521bc9a78b34070f5072a112bf99d59f3ed7ac
-Size (phoon_01apr1995.tar.gz) = 15769 bytes
-SHA1 (patch-aa) = 3c51027cf81895628774dd59dd002b62668b8560
+SHA1 (phoon_29jun2005.tar.gz) = d646af184b83e1a4104fe82588daadae2938e08c
+RMD160 (phoon_29jun2005.tar.gz) = 5a03f83965e8b6dd490a6fffd0ec6bf36d155853
+Size (phoon_29jun2005.tar.gz) = 17450 bytes
+SHA1 (patch-aa) = 96167efc32d02cbd4b17f096438d03b034d6ac78
+SHA1 (patch-ab) = 2a2aa975027dad5392a69c1238c2805417484c32
+SHA1 (patch-ac) = 5fe9ed29dfdcfa61405eb1d9baab6f20f640dd93
diff --git a/time/phoon/patches/patch-aa b/time/phoon/patches/patch-aa
index 50e4fc73c31..b795ce70d3a 100644
--- a/time/phoon/patches/patch-aa
+++ b/time/phoon/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2012/05/10 22:16:55 dholland Exp $
-diff -r -u phoon.orig/Makefile Makefile
---- phoon.orig/Makefile Sat Nov 11 20:57:08 1995
-+++ Makefile Sat Nov 10 20:10:33 2001
-@@ -1,15 +1,15 @@
+$NetBSD: patch-aa,v 1.4 2012/08/28 17:14:13 is Exp $
+
+--- Makefile.orig 2003-01-21 03:04:36.000000000 +0000
++++ Makefile
+@@ -1,15 +1,14 @@
# Makefile for phoon
-BINDIR = /usr/local/bin
@@ -12,19 +12,19 @@ diff -r -u phoon.orig/Makefile Makefile
+
+INSTALL = install
- DEFINES = -DBSD
- #DEFINES = -DSYSV
+ DEFINES = -DOS_BSD
+ #DEFINES = -DOS_SYSV
-CC = gcc
-CFLAGS = -O $(DEFINES)
-+CFLAGS += $(DEFINES)
-
+-
-LDFLAGS = -s
++CFLAGS = $(DEFINES)
all: phoon
-@@ -21,10 +21,8 @@
- $(CC) $(CFLAGS) -c $<
+@@ -24,10 +23,8 @@ date_parse.o: date_parse.h
+ astro.o: astro.h
install: all
- rm -f $(BINDIR)/phoon
diff --git a/time/phoon/patches/patch-ab b/time/phoon/patches/patch-ab
new file mode 100644
index 00000000000..ef7f9732b39
--- /dev/null
+++ b/time/phoon/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2012/08/28 17:14:13 is Exp $
+
+--- astro.c.orig 2003-01-28 00:56:55.000000000 +0000
++++ astro.c
+@@ -25,6 +25,7 @@
+ ** See http://www.fourmilab.ch/moontool/
+ */
+
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+ #include <time.h>
diff --git a/time/phoon/patches/patch-ac b/time/phoon/patches/patch-ac
new file mode 100644
index 00000000000..f04cf06e396
--- /dev/null
+++ b/time/phoon/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2012/08/28 17:14:13 is Exp $
+
+--- phoon.c.orig 2005-05-20 19:10:24.000000000 +0000
++++ phoon.c
+@@ -45,6 +45,7 @@
+ */
+
+
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+ #include <time.h>
+@@ -354,7 +355,7 @@ putmoon( time_t t, int numlines, char* a
+ struct tm* tmP;
+ double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;
+ double phases[2], which[2];
+- long clocknow;
++ time_t clocknow;
+ int atflrlen, atflridx, numcols, lin, col, midlin;
+ double mcap, yrad, xrad, y, xright, xleft;
+ int colright, colleft;