summaryrefslogtreecommitdiff
path: root/devel/ruby-bsearch/Makefile
blob: c2811e43a75acd6ef3aa0afe836843058da04c0d (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
# $NetBSD: Makefile,v 1.14 2005/11/03 07:19:03 taca Exp $

DISTNAME=	ruby-bsearch-${VERSION}
PKGNAME=	${RUBY_PKGPREFIX}-bsearch-${VERSION}
PKGREVISION=	1
CATEGORIES=	devel ruby
MASTER_SITES=	http://namazu.org/~satoru/ruby-bsearch/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://namazu.org/~satoru/ruby-bsearch/
COMMENT=	Binary search library for Ruby

VERSION=	1.5
NO_CONFIGURE=	yes
TEST_DIRS=	${WRKSRC}/tests
TEST_TARGET=	check

RD_SRCS=	bsearch.en.rd bsearch.ja.rd
DOCS=		${RD_SRCS} bsearch.en.html bsearch.ja.html bsearch.png

do-build:
.for f in ${RD_SRCS}
	cd ${WRKSRC}; ${RUBY_RD} ${f} > ${f:S/.rd/.html/}
.endfor

do-install:
	${INSTALL_DATA} ${WRKSRC}/bsearch.rb ${RUBY_SITELIBDIR}/bsearch.rb
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/bsearch
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/bsearch
.endfor

.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"