freebsd-ports/japanese/cal.rb/Makefile
Edwin Groothuis 748994921b Make port fetchable and buildable again.
Implicit permission by the fact that the original distfiles weren't
available anymore.

PR:		ports/45870
Submitted by:	Kimura Fuyuki <fuyuki@hadaly.org>
2002-12-16 13:28:24 +00:00

39 lines
975 B
Makefile

# New ports collection makefile for: cal.rb
# Date created: 3 October 2002
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= cal.rb
PORTVERSION= 0.21
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}-${PORTVERSION}
MAINTAINER= fuyuki@hadaly.org
USE_RUBY= yes
RUBY_SHEBANG_FILES= ${WRKSRC}/cal.rb
NO_BUILD= yes
do-extract:
${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
.endfor
post-patch:
${RUBY} -i -pe 'sub "./era_name", "${DATADIR}/era_name"' \
${WRKSRC}/Calendar.rb
${RUBY} -i -pe '/Dir::chdir/ and print "#"' \
${WRKSRC}/cal.rb
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/cal.rb ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/Calendar.rb ${RUBY_SITELIBDIR}
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/era_name ${DATADIR}
.include <bsd.port.mk>