summaryrefslogtreecommitdiff
path: root/japanese/cal.rb/Makefile
blob: 5de5a8f59057cb7684df2386003da8c455b2038a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>