aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/cal.rb/Makefile
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/Makefile
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/Makefile')
-rw-r--r--japanese/cal.rb/Makefile39
1 files changed, 39 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>