aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2000-02-22 00:44:15 +0800
committertaoka <taoka@FreeBSD.org>2000-02-22 00:44:15 +0800
commit36907203a0a38d8f6359b1b4614191471df83933 (patch)
tree1c18b52badb432325a178b7d11a2fbe5b7188fa7 /astro
parent5b71f4e1b67d5c0ec0f215c057e06460ca55a679 (diff)
downloadfreebsd-ports-gnome-36907203a0a38d8f6359b1b4614191471df83933.tar.gz
freebsd-ports-gnome-36907203a0a38d8f6359b1b4614191471df83933.tar.zst
freebsd-ports-gnome-36907203a0a38d8f6359b1b4614191471df83933.zip
Fix MASTER_SITES
Divide patch-aa into patch-a[b-g] PR: 16865 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> No response from: maintainer
Diffstat (limited to 'astro')
-rw-r--r--astro/luna/Makefile12
-rw-r--r--astro/luna/distinfo2
-rw-r--r--astro/luna/files/patch-ab92
-rw-r--r--astro/luna/files/patch-ac103
-rw-r--r--astro/luna/files/patch-ae55
-rw-r--r--astro/luna/files/patch-af33
-rw-r--r--astro/luna/files/patch-ag30
-rw-r--r--astro/luna/pkg-plist1
8 files changed, 319 insertions, 9 deletions
diff --git a/astro/luna/Makefile b/astro/luna/Makefile
index 6903b8dd8e6d..4bb8c75ae193 100644
--- a/astro/luna/Makefile
+++ b/astro/luna/Makefile
@@ -6,10 +6,10 @@
# $FreeBSD$
#
-DISTNAME= luna19
+DISTNAME= luna19s
PKGNAME= luna-1.9
CATEGORIES= astro games
-MASTER_SITES= ftp://ftp.ae.keio.ac.jp/pub/msdos/utils/
+MASTER_SITES= ftp://ftp.vector.co.jp/pack/dos/edu/science/space/
EXTRACT_SUFX= .lzh
MAINTAINER= rewsirow@ff.iij4u.or.jp
@@ -17,12 +17,10 @@ MAINTAINER= rewsirow@ff.iij4u.or.jp
BUILD_DEPENDS= lha:${PORTSDIR}/archivers/lha
EXTRACT_CMD= lha
-EXTRACT_BEFORE_ARGS= xfw=${WRKDIR}
+EXTRACT_BEFORE_ARGS= xtfqw=${WRKDIR}
EXTRACT_AFTER_ARGS= # empty
-PATCH_STRIP= -p1
-post-extract:
- @${ECHO_MSG} "===> Removing object files for ${DISTNAME}"
- @(cd ${WRKDIR}/luna19/iprintf; ${RM} -fr *.o)
+NO_WRKSUBDIR= yes
+MAKEFILE= makefile
.include <bsd.port.mk>
diff --git a/astro/luna/distinfo b/astro/luna/distinfo
index 6a2366bcdf08..3acfc289a612 100644
--- a/astro/luna/distinfo
+++ b/astro/luna/distinfo
@@ -1 +1 @@
-MD5 (luna19.lzh) = 128166e7c6f94f37717adf17cb10f36d
+MD5 (luna19s.lzh) = 07b2c53ccb7b5d4761412f569c0531bd
diff --git a/astro/luna/files/patch-ab b/astro/luna/files/patch-ab
new file mode 100644
index 000000000000..3566040f4cdc
--- /dev/null
+++ b/astro/luna/files/patch-ab
@@ -0,0 +1,92 @@
+--- makefile.orig Sun May 24 03:57:22 1992
++++ makefile Mon Feb 21 02:45:58 2000
+@@ -2,23 +2,24 @@
+ # Makefile for luna using BSD cc
+ #
+
+-MAKEFILE = Makefile
++#MAKEFILE = Makefile
+ OPTDEF = -DBOX
+
+ # MSDOS
+-CC = cl
+-CFLAGS = -Ox -AS -DANSI -W4 $(OPTDEF)
+-LD = link
+-LDFLAGS = -NOI
+-O = .obj
+-EXE = .exe
++#CC = cl
++#CFLAGS = -Ox -AS -DANSI -W4 $(OPTDEF)
++#LD = link
++#LDFLAGS = -NOI
++#O = .obj
++#EXE = .exe
+ # UNIX
+-#CC = cc
+-#CFLAGS = -Ox -DUNIX $(OPTDEF)
+-#LD = cc
+-#LDFLAGS =
+-#O = .o
+-#EXE =
++CC ?= cc
++CFLAGS += -DUNIX $(OPTDEF)
++LD = cc
++LDFLAGS =
++O = .o
++EXE =
++IANSILIB = iprintf/iansilib.o
+
+ # The program name
+ PROG = luna$(EXE)
+@@ -26,7 +27,8 @@
+ # All modules
+ SRCS = famplan.c luna.c pyramid.c
+ OBJS = famplan$(O) luna$(O) pyramid$(O)
+-OBJSIP = iprintf/idoprnt$(O) iprintf/iprintf$(O) iprintf/isprintf$(O)
++OBJSIP = iprintf/idoprnt$(O) iprintf/iprintf$(O) iprintf/isprintf$(O) \
++ $(IANSILIB)
+ HDRS = luna.h
+ HDRSPR = pyramid.h
+ HDRSIP = iprintf/iansilib.h iprintf/iprint.h
+@@ -35,13 +37,18 @@
+ #
+ all : $(PROG)
+
++install:
++ ${BSD_INSTALL_PROGRAM} $(PROG) ${PREFIX}/bin
++clean:
++ rm -fr $(OBJS) $(OBJSIP) $(PROG)
++
+ # MSDOS
+-$(PROG) : $(OBJS) $(OBJSIP)
+- $(LD) @link.i
++#$(PROG) : $(OBJS) $(OBJSIP)
++# $(LD) @link.i
+ # $(LD) $(LDFLAGS) $(OBJS) $(OBJSIP), $(PROG);
+ # UNIX
+-#$(PROG) : $(OBJS) $(OBJSIP)
+-# $(LD) -o $(PROG) $(OBJS) $(OBJSIP) $(LDFLAGS)
++$(PROG) : $(OBJS) $(OBJSIP)
++ $(LD) -o $(PROG) $(OBJS) $(OBJSIP) $(LDFLAGS)
+
+ $(OBJS) : $(HDRS)
+
+@@ -50,13 +57,13 @@
+ $(OBJS) : $(MAKEFILE)
+
+ # UNIX
+-#$(OBJSIP) : $(HDRSIP)
+-# ( cd iprintf; make )
++$(OBJSIP) : $(HDRSIP)
++ ( cd iprintf; ${MAKE} )
+ # MSDOS
+ $(OBJSIP) : $(HDRSIP)
+- cd iprintf
+- make
+- cd ..
++# cd iprintf
++# make
++# cd ..
+ #
+ # Other dependencies
+ #
diff --git a/astro/luna/files/patch-ac b/astro/luna/files/patch-ac
new file mode 100644
index 000000000000..681ee9a48cf9
--- /dev/null
+++ b/astro/luna/files/patch-ac
@@ -0,0 +1,103 @@
+--- luna.c.orig Mon May 25 01:01:32 1992
++++ luna.c Mon Feb 21 02:23:14 2000
+@@ -30,22 +30,38 @@
+ int argc;
+ char **argv;
+ {
+- int aotmoon, i;
+- struct tm *localtmp, *algotmp;
+- char *chp;
++ int aotmoon, tzhere,
++ i;
++ struct tm *localtmp, algotm;
++ char *chp, *envp, *tzname;
+
+- getoptions(argc, argv, &localtmp, &algotmp);
++ getoptions(argc, argv, &localtmp);
++ envp = getenv("TZ");
++ if ((envp = getenv("TZ")) == NULL ||
++ (chp = strchr(envp, '-')) == NULL && (chp = strchr(envp, '+')) == NULL
++ ) {
++ tzhere = TZ_DFL;
++ } else {
++ tzhere = atoi(chp);
++ }
++ tzconv(&algotm, localtmp, tzhere - TZ_ALGO);
++/*printf("%d %d:%d\n", algotm.tm_mday, algotm.tm_hour, algotm.tm_min);*/
++
+ for (i = 0; i < bdate; i++) {
+ if (extluna) {
+ aotmoon = getext(localtmp -> tm_year, localtmp -> tm_mon,
+ localtmp -> tm_mday);
+ } else {
+- aotmoon = getmoon(algotmp -> tm_year, algotmp -> tm_yday);
++ aotmoon = getmoon(algotm.tm_year, algotm.tm_yday);
+ }
+
++
++ if ((tzname = getenv("TZ")) == NULL) {
++ tzname = TZNAME_DFL;
++ }
+ chp = Asctime(localtmp);
+ chp[LASCTIME - 2] = 0;
+- printf("%s", chp);
++ printf("%s %3.3s", chp, tzname);
+
+ if (numonly) {
+ printf(" ");
+@@ -62,10 +78,11 @@
+
+ today = FALSE;
+ tomorrow(localtmp);
+- tomorrow(algotmp);
++ tomorrow(&algotm);
+ }
+
+ exit(0);
++/* NEVERREACHED */
+ }
+
+
+@@ -177,18 +194,15 @@
+
+
+ void
+-getoptions(argc, argv, localtmpp, algotmpp)
++getoptions(argc, argv, localtmpp)
+ int argc;
+ char **argv;
+ struct tm **localtmpp;
+- struct tm **algotmpp;
+ {
+- int argnum[3], argnumcnt,
+- tzhere;
+- char *chp, *envp;
++ int argnum[3], argnumcnt;
++ char *chp;
+ register int j, i;
+ BOOLEAN namedmon, followname;
+- static struct tm algotm;
+ struct tm *localtmp;
+
+ argnumcnt = 0;
+@@ -375,20 +389,7 @@
+ localtmp -> tm_yday
+ = ymd2yday(localtmp -> tm_year, localtmp -> tm_mon,
+ localtmp -> tm_mday);
+-
+- envp = getenv("TZ");
+- if ((envp = getenv("TZ")) == NULL ||
+- (chp = strchr(envp, '-')) == NULL && (chp = strchr(envp, '+')) == NULL
+- ) {
+- tzhere = TZ_DFL;
+- } else {
+- tzhere = atoi(chp);
+- }
+- tzconv(&algotm, localtmp, tzhere - TZ_ALGO);
+-printf("%d %d:%d\n", algotm.tm_mday, algotm.tm_hour, algotm.tm_min);
+-
+ *localtmpp = localtmp;
+- *algotmpp = &algotm;
+
+ return;
+ }
diff --git a/astro/luna/files/patch-ae b/astro/luna/files/patch-ae
new file mode 100644
index 000000000000..06ad88e9511a
--- /dev/null
+++ b/astro/luna/files/patch-ae
@@ -0,0 +1,55 @@
+--- pyramid.h.orig Mon May 25 01:24:12 1992
++++ pyramid.h Mon Feb 21 02:23:55 2000
+@@ -14,13 +14,16 @@
+ # include <dos.h>
+ # include <stdlib.h>
+ # include <string.h>
+-# define LASCTIME (30)
++# define LASCTIME (26)
+
+ #else /* UNIX */
+-# include <sys/time.h>
++/*# include <sys/time.h>*/
++# include <time.h>
+ typedef time_t Time_t;
+ # include <memory.h>
+-# define LASCTIME (30)
++# define LASCTIME (26)
++ extern char *asctime();
++ extern char *getenv();
+ #endif /* MSDOS or not */
+
+ typedef long ABDATE;
+@@ -52,15 +55,6 @@
+ # if defined(MSDOS)
+ extern char *Asctime(struct tm *tmp);
+ extern char *capitalize(char *chp);
+-# define Tolower(cc) tolower(cc)
+-# define Toupper(cc) toupper(cc)
+-# else /* MSDOS */
+-# define Asctime asctime
+-/*# define Tolower(cc) \
+-/* (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
+-/*# define Toupper(cc) \
+-/* (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
+- */
+ # endif /* ANSI and MSDOS */
+
+ #else /* ANSI */
+@@ -69,3 +63,16 @@
+ extern void tzconv();
+ extern void tomorrow();
+ #endif /* ANSI or not */
++
++
++#if defined(MSDOS)
++# define Tolower(cc) tolower(cc)
++# define Toupper(cc) toupper(cc)
++
++#else
++# define Asctime asctime
++# define Tolower(cc) \
++ (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
++# define Toupper(cc) \
++ (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
++#endif /* MSDOS */
diff --git a/astro/luna/files/patch-af b/astro/luna/files/patch-af
new file mode 100644
index 000000000000..da829614cf00
--- /dev/null
+++ b/astro/luna/files/patch-af
@@ -0,0 +1,33 @@
+--- pyramid.c.orig Mon May 25 01:26:10 1992
++++ pyramid.c Mon Feb 21 02:23:51 2000
+@@ -67,7 +67,7 @@
+ Time_t ltime;
+
+ time(&ltime);
+- return (localtime(ltime));
++ return (localtime(&ltime));
+ #endif /* MSDOS or UNIX */
+ }
+
+@@ -197,19 +197,14 @@
+ Asctime(struct tm *tmp)
+ {
+ static char s[LASCTIME];
+- char *tzname;
+
+- if ((tzname = getenv("TZ")) == NULL) {
+- tzname = TZNAME_DFL;
+- }
+- sprintf(s, "%s %s %2d %02d:%02d:%02d %4d %3.3s\n",
++ sprintf(s, "%s %s %2d %4d %02d:%02d:%02d\n",
+ downame[ymd2wday(tmp -> tm_year, tmp -> tm_mon,
+ tmp -> tm_mday)],
+ capitalize(monname[tmp -> tm_mon]),
+ tmp -> tm_mday,
+- tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec,
+ tmp -> tm_year + 1900,
+- tzname
++ tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec,
+ );
+
+ return (s);
diff --git a/astro/luna/files/patch-ag b/astro/luna/files/patch-ag
new file mode 100644
index 000000000000..941d222dd192
--- /dev/null
+++ b/astro/luna/files/patch-ag
@@ -0,0 +1,30 @@
+--- iprintf/makefile.orig Sun May 10 03:03:06 1992
++++ iprintf/makefile Sat Feb 12 23:27:55 2000
+@@ -3,11 +3,11 @@
+ #
+
+ # MSDOS
+-CC = cl
+-CFLAGS = -Ox -AS -DANSI -W4
++#CC = cl
++#CFLAGS = -Ox -AS -DANSI -W4
+ # UNIX
+-#CC = cc
+-#CFLAGS = -O -DUNIX
++CC ?= cc
++CFLAGS += -DUNIX
+
+ #
+ # All modules
+@@ -15,9 +15,9 @@
+ SRCS = iansilib.c idoprnt.c iprintf.c isprintf.c
+
+ # MSDOS
+-OBJS = iansilib.obj idoprnt.obj iprintf.obj isprintf.obj
++#OBJS = iansilib.obj idoprnt.obj iprintf.obj isprintf.obj
+ # UNIX
+-#OBJS = iansilib.o idoprnt.o iprintf.o isprintf.o
++OBJS = iansilib.o idoprnt.o iprintf.o isprintf.o
+
+ HDRS = iansilib.h iprint.h
+ #
diff --git a/astro/luna/pkg-plist b/astro/luna/pkg-plist
index b963374b4ef9..130899f86b3b 100644
--- a/astro/luna/pkg-plist
+++ b/astro/luna/pkg-plist
@@ -1,2 +1 @@
bin/luna
-@comment man/ja_JP.euc/cat1/luna.1.gz