# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=	IO-Event
PORTVERSION=	0.813
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Tied Filehandles for Nonblocking IO with Object Callbacks

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils
RUN_DEPENDS:=	${BUILD_DEPENDS}
TEST_DEPENDS=	p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent

OPTIONS_DEFINE=	ANYEVENT EVENT
OPTIONS_DEFAULT=ANYEVENT EVENT
ANYEVENT_DESC=	Use AnyEvent as underlying event handler
EVENT_DESC=	Use Event as underlying event handler

USE_PERL5=	configure
USES=		perl5

ANYEVENT_BUILD_DEPENDS=	p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
ANYEVENT_RUN_DEPENDS=	p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
EVENT_BUILD_DEPENDS=	p5-Event>=0:${PORTSDIR}/devel/p5-Event
EVENT_RUN_DEPENDS=	p5-Event>=0:${PORTSDIR}/devel/p5-Event

.include <bsd.port.mk>