blob: d2cbfa805b5cc2036447af9f82917eeb6b82fadd (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: RubyUnit
# Date created: 22 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= unit
PORTVERSION= 0.5.5
CATEGORIES= devel ruby
MASTER_SITES= http://homepage1.nifty.com/markey/ruby/rubyunit/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
USE_RUBY= yes
USE_RUBY_RDTOOL= yes
RUBY_SHEBANG_FILES= ${WRKSRC}/bin/c2t.rb \
${WRKSRC}/bin/runtest.rb
BINS= c2t runtest
DOCS= ChangeLog README ToDo
DOCS_JA= README.ja
do-build:
.if !defined(NOPORTDOCS)
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${RUBY} makehtml.rb
.endif
do-install:
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${RUBY} install.rb
.for f in ${BINS}
${LN} -sf ${f}.rb ${PREFIX}/bin/${f}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/runit
${CP} -R ${WRKSRC}/sample/ ${RUBY_EXAMPLESDIR}/runit/
${MKDIR} ${RUBY_DOCDIR}/runit/ja
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/runit/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/runit/ja/
.endfor
${CP} -R ${WRKSRC}/doc_en/ ${RUBY_DOCDIR}/runit/
${CP} -R ${WRKSRC}/doc_ja/ ${RUBY_DOCDIR}/runit/ja/
.endif
.include <bsd.port.mk>
|