aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/cal.rb
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2002-11-04 09:35:00 +0800
committernork <nork@FreeBSD.org>2002-11-04 09:35:00 +0800
commit689a2f36a3e59ca9862877625c915beba7a2a84d (patch)
tree163668b2e10bef68e891c111a286f9656bff4132 /japanese/cal.rb
parent3eaf84074b8b9b8c7747d2a188c0795de859f5fe (diff)
downloadfreebsd-ports-gnome-689a2f36a3e59ca9862877625c915beba7a2a84d.tar.gz
freebsd-ports-gnome-689a2f36a3e59ca9862877625c915beba7a2a84d.tar.zst
freebsd-ports-gnome-689a2f36a3e59ca9862877625c915beba7a2a84d.zip
Add cal.rb(0.2), Display a Japanese calendar
PR: ports/43619 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
Diffstat (limited to 'japanese/cal.rb')
-rw-r--r--japanese/cal.rb/Makefile39
-rw-r--r--japanese/cal.rb/distinfo3
-rw-r--r--japanese/cal.rb/pkg-comment1
-rw-r--r--japanese/cal.rb/pkg-descr5
-rw-r--r--japanese/cal.rb/pkg-plist4
5 files changed, 52 insertions, 0 deletions
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