From 3c9ee882e394d3dcf1cd6fbb147e426932ac4403 Mon Sep 17 00:00:00 2001
From: Norikatsu Shigemura <nork@FreeBSD.org>
Date: Mon, 4 Nov 2002 01:35:00 +0000
Subject: Add cal.rb(0.2), Display a Japanese calendar

PR:		ports/43619
Submitted by:	Kimura Fuyuki <fuyuki@hadaly.org>
---
 japanese/Makefile           |  1 +
 japanese/cal.rb/Makefile    | 39 +++++++++++++++++++++++++++++++++++++++
 japanese/cal.rb/distinfo    |  3 +++
 japanese/cal.rb/pkg-comment |  1 +
 japanese/cal.rb/pkg-descr   |  5 +++++
 japanese/cal.rb/pkg-plist   |  4 ++++
 6 files changed, 53 insertions(+)
 create mode 100644 japanese/cal.rb/Makefile
 create mode 100644 japanese/cal.rb/distinfo
 create mode 100644 japanese/cal.rb/pkg-comment
 create mode 100644 japanese/cal.rb/pkg-descr
 create mode 100644 japanese/cal.rb/pkg-plist

(limited to 'japanese')

diff --git a/japanese/Makefile b/japanese/Makefile
index 8178b8b02116..9fc4d8225d9b 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -22,6 +22,7 @@
     SUBDIR += bible_names-fpw
     SUBDIR += binder
     SUBDIR += bookview
+    SUBDIR += cal.rb
     SUBDIR += cannadic
     SUBDIR += cdrom2
     SUBDIR += celrw
diff --git a/japanese/cal.rb/Makefile b/japanese/cal.rb/Makefile
new file mode 100644
index 000000000000..5de5a8f59057
--- /dev/null
+++ b/japanese/cal.rb/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for:   cal.rb
+# Date created:                3 October 2002
+# Whom:                        Kimura Fuyuki <fuyuki@hadaly.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	cal.rb
+PORTVERSION=	0.2
+CATEGORIES=	japanese deskutils
+MASTER_SITES=	http://aglaia.c.u-tokyo.ac.jp/~yamamoto/Script/Calendar/
+DISTFILES=	cal.rb Calendar.rb era_name
+DIST_SUBDIR=	${PORTNAME}
+
+MAINTAINER=	fuyuki@hadaly.org
+
+USE_RUBY=	yes
+RUBY_SHEBANG_FILES=	${WRKSRC}/cal.rb
+NO_BUILD=	yes
+
+LIBDIR=		${PREFIX}/libdata/cal
+
+do-extract:
+	${MKDIR} ${WRKSRC}
+.for i in ${DISTFILES}
+	${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
+.endfor
+
+post-patch:
+	${RUBY} -i -pe 'sub "chdir(.*)", %q{chdir("${LIBDIR}")}' ${WRKSRC}/cal.rb
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/cal.rb ${PREFIX}/bin
+	${MKDIR} ${LIBDIR}
+.for i in Calendar.rb era_name
+	${INSTALL_DATA} ${WRKSRC}/${i} ${LIBDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/japanese/cal.rb/distinfo b/japanese/cal.rb/distinfo
new file mode 100644
index 000000000000..ab118d49b39f
--- /dev/null
+++ b/japanese/cal.rb/distinfo
@@ -0,0 +1,3 @@
+MD5 (cal.rb/cal.rb) = 89a4eabee1e00de929cd944698a9ea7e
+MD5 (cal.rb/Calendar.rb) = b51bb285fde892ccbdedb0ad8d7d53f9
+MD5 (cal.rb/era_name) = 2c3c6a4de0d7d8a2101fbe7165509982
diff --git a/japanese/cal.rb/pkg-comment b/japanese/cal.rb/pkg-comment
new file mode 100644
index 000000000000..540096ec9ae3
--- /dev/null
+++ b/japanese/cal.rb/pkg-comment
@@ -0,0 +1 @@
+Display a Japanese calendar
diff --git a/japanese/cal.rb/pkg-descr b/japanese/cal.rb/pkg-descr
new file mode 100644
index 000000000000..cd4a36491176
--- /dev/null
+++ b/japanese/cal.rb/pkg-descr
@@ -0,0 +1,5 @@
+cal.rb is a cal(1)-like program which shows a calendar with
+the Japanese holidays.  It can also display years in the
+Japanese era.
+
+WWW: http://aglaia.c.u-tokyo.ac.jp/~yamamoto/Script/Calendar/calendar.html
diff --git a/japanese/cal.rb/pkg-plist b/japanese/cal.rb/pkg-plist
new file mode 100644
index 000000000000..97aa9b03bd41
--- /dev/null
+++ b/japanese/cal.rb/pkg-plist
@@ -0,0 +1,4 @@
+bin/cal.rb
+libdata/cal/Calendar.rb
+libdata/cal/era_name
+@dirrm libdata/cal
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0