summaryrefslogtreecommitdiff
path: root/devel/ruby-unit/Makefile
blob: ddf0f031ffef6bf173c49dcfe4f11be91be7fc35 (plain)
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
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 16:53:42 taca Exp $
# FreeBSD: ports/devel/ruby-runit/Makefile,v 1.10 2001/01/19 09:41:15 knu Exp

DISTNAME=	rubyunit-0.3.9.03a
PKGNAME=	${RUBY_PKGNAMEPREFIX}unit-0.3.9.3
CATEGORIES=	devel
MASTER_SITES=	http://homepage1.nifty.com/markey/ruby/rubyunit/

MAINTAINER=	taca@netbsd.org
HOMEPAGE=	http://homepage1.nifty.com/markey/ruby/rubyunit/rubyunit_e.html
COMMENT=	Ruby implementation of eXtreme Programming

DIST_SUBDIR=	ruby
USE_RUBY=	yes
USE_RUBY_RD=	yes

REPLACE_RUBY=	bin/c2t.rb bin/runtest.rb

BINS=		c2t runtest
DOCS=		ChangeLog README ToDo
EXAMPLE=	simpletest.rb testall.rb testarray.rb testrepeatedtest.rb \
		testtestsetup.rb

do-build:
	@cd ${WRKSRC}; \
	${SETENV} ${MAKE_ENV} ${RUBY} makehtml.rb

do-install:
	@cd ${WRKSRC}; \
	${SETENV} ${MAKE_ENV} ${RUBY} install.rb
.for f in ${BINS}
	${LN} -sf ${f}.rb ${PREFIX}/bin/${f}
.endfor
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/runit
.for f in ${EXAMPLE}
	${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/runit
.endfor
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/runit/ja
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/runit
.endfor
	${CP} -R ${WRKSRC}/doc_en/* ${RUBY_DOCDIR}/runit
	${CP} -R ${WRKSRC}/doc_ja/* ${RUBY_DOCDIR}/runit/ja

.include "../../textproc/ruby-rdtool/Makefile.common"
.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"