2002-06-10 18:38:52 +00:00
|
|
|
# New ports collection makefile for: rbot
|
|
|
|
# Date created: 14 Apr 2002
|
|
|
|
# Whom: David Bushong <david+ports@bushong.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rbot
|
2002-08-08 19:18:36 +00:00
|
|
|
PORTVERSION= 0.9.6
|
2004-03-27 16:04:40 +00:00
|
|
|
PORTREVISION= 1
|
2002-06-10 18:38:52 +00:00
|
|
|
CATEGORIES= irc ruby
|
|
|
|
MASTER_SITES= http://linuxbrit.co.uk/downloads/
|
|
|
|
|
|
|
|
MAINTAINER= david+ports@bushong.net
|
2003-02-21 12:17:17 +00:00
|
|
|
COMMENT= Ruby IRC bot similar to infobot
|
2002-06-10 18:38:52 +00:00
|
|
|
|
2003-10-31 18:55:28 +00:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
|
2002-07-31 23:52:42 +00:00
|
|
|
|
2002-06-10 18:38:52 +00:00
|
|
|
USE_RUBY= yes
|
2003-10-31 18:55:28 +00:00
|
|
|
USE_RUBY_FEATURES= rexml
|
2002-06-10 18:38:52 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${RUBY} -pi -e 'sub /rbotconf/, "${PREFIX}/etc/rbot"' ${WRKSRC}/rbot.rb
|
2004-03-27 16:04:40 +00:00
|
|
|
@rm ${WRKSRC}/rbot/*.orig
|
|
|
|
@rm ${WRKSRC}/rbot/plugins/*.orig
|
2002-06-10 18:38:52 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rbot.rb ${PREFIX}/bin/rbot
|
2002-08-08 19:18:36 +00:00
|
|
|
${TAR} -C ${WRKSRC} -cf - rbot | ${TAR} -C ${RUBY_SITELIBDIR} -xkpf -
|
2002-06-10 18:38:52 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/rbot
|
2002-08-08 19:18:36 +00:00
|
|
|
( cd ${WRKSRC}/rbotconf && ${TAR} -cf - * ) | \
|
|
|
|
${TAR} -C ${PREFIX}/etc/rbot -xkpf -
|
2002-06-10 18:38:52 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2002-08-08 19:18:36 +00:00
|
|
|
( cd ${WRKSRC}/doc && ${TAR} -cf - * ) | \
|
2002-10-06 21:38:34 +00:00
|
|
|
${TAR} -C ${RUBY_MODDOCDIR} -xpf -
|
2002-06-10 18:38:52 +00:00
|
|
|
.endif
|
2004-03-27 16:04:40 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-06-10 18:38:52 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|