Files
ports/devel/ruby-unit/Makefile
T
Akinori MUSHA 185ceb675c Introduce a knob RUBY_NO_RD_HTML and enable it by default on alpha. This
replaces the non-working NOPORTDOCS workaround and fixes build on the alpha,
where rd2 coredumps.

Tested on:	the axp cluster
Approved by:	kris
2002-12-06 17:17:38 +00:00

59 lines
1.3 KiB
Makefile

# 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
NO_BUILD= yes
RUBY_MODNAME= runit
RUBY_RD_FILES= # defined
RUBY_SHEBANG_FILES= ${WRKSRC}/bin/c2t.rb \
${WRKSRC}/bin/runtest.rb
BINS= c2t runtest
DOCS= ChangeLog README ToDo
DOCS_JA= README.ja
do-install:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${RUBY} install.rb
.for f in ${BINS}
${LN} -sf ${f}.rb ${PREFIX}/bin/${f}
.endfor
post-install: doc-install
.include <bsd.port.mk>
doc-install:
.if !defined(NOPORTDOCS)
.if !defined(RUBY_NO_RD_HTML)
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${RUBY} makehtml.rb
.endif
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${CP} -R ${WRKSRC}/sample/ ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
${CP} -R ${WRKSRC}/doc_en/ ${RUBY_MODDOCDIR}/
${CP} -R ${WRKSRC}/doc_ja/ ${RUBY_MODDOCDIR}/ja/
.endif