# New ports collection makefile for:   Ruby/DICT
# Date created:                26 September 2002
# Whom:                        Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD: ports/net/ruby-dict/Makefile,v 1.2 2003/02/21 06:33:46 knu Exp $
#

PORTNAME=	dict
PORTVERSION=	0.9.0
CATEGORIES=	net ruby
MASTER_SITES=	http://www.caliban.org/files/ruby/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DISTNAME=	ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=	ruby

MAINTAINER=	fuyuki@hadaly.org
COMMENT=	A client-side implementation of the DICT protocol in Ruby

USE_RUBY=	yes
USE_RUBY_SETUP=	yes
RUBY_SETUP=	install.rb

RUBY_SHEBANG_FILES=	${WRKSRC}/rdict

DOCS=		README doc/dict.html doc/rdict.html

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/rdict ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

.include <bsd.port.mk>
