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

PORTNAME=	POE-Component-IRC-Plugin-QueryDNS
PORTVERSION=	1.04
PORTREVISION=	1
CATEGORIES=	irc perl5 devel
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	POE::Component::IRC plugin for IRC based DNS queries

BUILD_DEPENDS=	p5-Net-IP>=1.25:net-mgmt/p5-Net-IP \
		p5-POE-Component-Client-DNS>=1.00:dns/p5-POE-Component-Client-DNS \
		p5-POE-Component-IRC>=0:irc/p5-POE-Component-IRC
RUN_DEPENDS:=	${BUILD_DEPENDS}

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

OPTIONS_DEFINE=	EXAMPLES

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

.include <bsd.port.mk>
