From 363077d41519f0251212959bf53cc20199843b75 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 26 Nov 1997 22:13:06 +0000 Subject: [PATCH] --- chinese/lunar/Makefile | 28 ++++++++++++++++++++++++++++ chinese/lunar/files/md5 | 1 + chinese/lunar/patches/patch-01 | 12 ++++++++++++ chinese/lunar/patches/patch-02 | 22 ++++++++++++++++++++++ chinese/lunar/pkg/COMMENT | 1 + chinese/lunar/pkg/DESCR | 13 +++++++++++++ chinese/lunar/pkg/PLIST | 3 +++ 7 files changed, 80 insertions(+) create mode 100644 chinese/lunar/Makefile create mode 100644 chinese/lunar/files/md5 create mode 100644 chinese/lunar/patches/patch-01 create mode 100644 chinese/lunar/patches/patch-02 create mode 100644 chinese/lunar/pkg/COMMENT create mode 100644 chinese/lunar/pkg/DESCR create mode 100644 chinese/lunar/pkg/PLIST diff --git a/chinese/lunar/Makefile b/chinese/lunar/Makefile new file mode 100644 index 00000000000..27d9ea41677 --- /dev/null +++ b/chinese/lunar/Makefile @@ -0,0 +1,28 @@ +# OpenBSD makefile for: lunar +# Version required: 2.1 +# Date created: Nov 26 1997 +# Whom: ejovi +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/11/26 22:13:06 joey Exp $ +# + +DISTNAME= lunar-2.1 +PKGNAME= zh-lunar-2.1 +CATEGORIES= chinese +MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/c-utils/ \ + ftp://ftp.edu.tw/Chinese/ifcss/software/unix/c-utils/ \ + ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/ + +MAINTAINER= joey@OpenBSD.ORG + +ALL_TARGET= +MAN1= lunar.1 + +do-install: + @${MKDIR} ${PREFIX}/share/chinese + ${INSTALL_PROGRAM} ${WRKSRC}/lunar ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/lunar.bitmap ${PREFIX}/share/chinese + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 + + +.include diff --git a/chinese/lunar/files/md5 b/chinese/lunar/files/md5 new file mode 100644 index 00000000000..832a84840ee --- /dev/null +++ b/chinese/lunar/files/md5 @@ -0,0 +1 @@ +MD5 (lunar-2.1.tar.gz) = 399683498a01615b3a68dceff09581b2 diff --git a/chinese/lunar/patches/patch-01 b/chinese/lunar/patches/patch-01 new file mode 100644 index 00000000000..34d3fd70306 --- /dev/null +++ b/chinese/lunar/patches/patch-01 @@ -0,0 +1,12 @@ +--- Makefile.orig Mon Aug 10 21:14:48 1992 ++++ Makefile Tue Feb 4 01:20:50 1997 +@@ -1,6 +1,8 @@ + # Makefile of LUNAR + +-CFLAGS= -O ++CFLAGS= -O -DBITMAPFILE=\"$(BITMAPFILE)\" ++ ++BITMAPFILE= $(PREFIX)/share/chinese/lunar.bitmap + + lunar: lunar.o + cc -o lunar lunar.o diff --git a/chinese/lunar/patches/patch-02 b/chinese/lunar/patches/patch-02 new file mode 100644 index 00000000000..8667e0ba005 --- /dev/null +++ b/chinese/lunar/patches/patch-02 @@ -0,0 +1,22 @@ +--- lunar.c.orig Mon Aug 10 21:14:48 1992 ++++ lunar.c Tue Feb 4 01:04:18 1997 +@@ -60,6 +60,10 @@ + #define GanBM 4 + #define ZhiBM 14 + ++#ifndef BITMAPFILE ++#define BITMAPFILE "lunar.bitmap" ++#endif ++ + typedef struct { + int year, month, day, hour, weekday; + int leap; /* the lunar month is a leap month */ +@@ -124,7 +128,7 @@ + + int showHZ = 0; /* output in hanzi */ + int showBM = 0; /* output in bitmap */ +-char BMfile[] = "lunar.bitmap"; /* bit map file */ ++char BMfile[] = BITMAPFILE; /* bit map file */ + char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ + char *progname; + diff --git a/chinese/lunar/pkg/COMMENT b/chinese/lunar/pkg/COMMENT new file mode 100644 index 00000000000..b9a9b876578 --- /dev/null +++ b/chinese/lunar/pkg/COMMENT @@ -0,0 +1 @@ +convert between the Gregorian Solar Calendar (SC) and the Lunar Calendar (LC). diff --git a/chinese/lunar/pkg/DESCR b/chinese/lunar/pkg/DESCR new file mode 100644 index 00000000000..d9e42c95876 --- /dev/null +++ b/chinese/lunar/pkg/DESCR @@ -0,0 +1,13 @@ +The lunar program performs date conversion between the Gregorian Solar +Calendar (SC) and the Chinese Lunar Calendar (LC). + +Given a date in either calendar, the program also outputs the corresponding +"shengxiao" (animal of the year) and "ganzhi" characters. + +The date range currently covered is from about 1900 A.D. to 2049 A.D. + +The standard time of the Lunar Calendar is Beijing (Hong Kong) Standard Time, +not GMT. Be sure to adjust appropriately for other time zones and "Day-light +Saving Time". + +-- David O'Brien diff --git a/chinese/lunar/pkg/PLIST b/chinese/lunar/pkg/PLIST new file mode 100644 index 00000000000..d289ca0eabb --- /dev/null +++ b/chinese/lunar/pkg/PLIST @@ -0,0 +1,3 @@ +bin/lunar +share/chinese/lunar.bitmap +man/man1/lunar.1.gz