# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD: tags/RELEASE_11_0_0/irc/p5-POE-Component-IRC-Plugin-POE-Knee/Makefile 412347 2016-04-01 14:08:37Z mat $

PORTNAME=	POE-Component-IRC-Plugin-POE-Knee
PORTVERSION=	1.08
PORTREVISION=	2
CATEGORIES=	irc perl5 devel
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	POE::Component::IRC plugin that runs Acme::POE::Knee races

BUILD_DEPENDS=	p5-Math-Random>=0.69:math/p5-Math-Random \
		p5-POE-Component-IRC>=0:irc/p5-POE-Component-IRC \
		p5-POE>=0:devel/p5-POE
RUN_DEPENDS:=	${BUILD_DEPENDS}

PLIST_SUB=	EXAMPLESDIR="share/examples/${PORTNAME}"
USES=		perl5 shebangfix
USE_PERL5=	configure

OPTIONS_DEFINE=	EXAMPLES

PORTEXAMPLES=	*
SHEBANG_FILES=	examples/*.pl

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
