2002-11-04 01:35:00 +00:00
|
|
|
# New ports collection makefile for: cal.rb
|
|
|
|
# Date created: 3 October 2002
|
|
|
|
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cal.rb
|
2004-01-23 10:58:24 +00:00
|
|
|
PORTVERSION= 1.17
|
- Chase checksum, unbreak
--- /usr/ports/distfiles/cal.rb-1.17/Calendar.rb Tue Jun 8 05:37:53 2004
+++ Calendar.rb Fri Jan 30 13:18:35 2004
@@ -308,11 +308,9 @@
wday = what_day(year, month, day) if wday == -1
f.each{|s|
s.chomp!
-# s.gsub!(" ", "")
+ s.gsub!(" ", "")
next if /^#/ =~ s
-# puts s.split(",\s*")
-# puts "#{day} #{month} #{year}"
- y, m, d, w, j, e, c = s.split(",\s*")
+ y, m, d, w, j, e, c = s.split(",")
if (y == "*" or y == year.to_s) and
(m == "*" or m == month.to_s) and
(w == "*" or w == wday.to_s) and
PR: ports/69511
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
2004-07-25 22:36:49 +00:00
|
|
|
PORTREVISION= 1
|
2002-11-04 01:35:00 +00:00
|
|
|
CATEGORIES= japanese deskutils
|
|
|
|
MASTER_SITES= http://aglaia.c.u-tokyo.ac.jp/~yamamoto/Script/Calendar/
|
|
|
|
DISTFILES= cal.rb Calendar.rb era_name
|
2002-12-16 13:28:24 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
2002-11-04 01:35:00 +00:00
|
|
|
|
2003-06-02 01:24:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-19 11:15:39 +00:00
|
|
|
COMMENT= Displays a Japanese calendar
|
2002-11-04 01:35:00 +00:00
|
|
|
|
2003-03-25 12:18:28 +00:00
|
|
|
EXTRACT_CMD= ${CP}
|
|
|
|
EXTRACT_BEFORE_ARGS=
|
|
|
|
EXTRACT_AFTER_ARGS= ${WRKSRC}
|
|
|
|
|
2002-11-04 01:35:00 +00:00
|
|
|
USE_RUBY= yes
|
|
|
|
RUBY_SHEBANG_FILES= ${WRKSRC}/cal.rb
|
2003-03-25 12:18:28 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
2002-11-04 01:35:00 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
post-patch:
|
2002-12-16 13:28:24 +00:00
|
|
|
${RUBY} -i -pe 'sub "./era_name", "${DATADIR}/era_name"' \
|
|
|
|
${WRKSRC}/Calendar.rb
|
2002-11-04 01:35:00 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cal.rb ${PREFIX}/bin
|
2002-12-16 13:28:24 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Calendar.rb ${RUBY_SITELIBDIR}
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/era_name ${DATADIR}
|
2002-11-04 01:35:00 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|