39 lines
966 B
Makefile
39 lines
966 B
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bsearch
|
|
PORTVERSION= 1.5
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= http://0xcc.net/ruby-bsearch/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= Binary search library for Ruby
|
|
|
|
USE_RUBY= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
RUBY_RD_FILES= bsearch.en.rd bsearch.ja.rd
|
|
DOCS_EN= ChangeLog \
|
|
${RUBY_RD_FILES:M*.en.rd} \
|
|
${RUBY_RD_HTML_FILES:M*.en.html}
|
|
DOCS_JA= ${RUBY_RD_FILES:M*.ja.rd} \
|
|
${RUBY_RD_HTML_FILES:M*.ja.html}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bsearch.rb ${STAGEDIR}${RUBY_SITELIBDIR}
|
|
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
|
|
.for f in ${DOCS_EN}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}
|
|
.endfor
|
|
.for f in ${DOCS_JA}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|