PORTNAME=	Gungho
PORTVERSION=	0.09008
PORTREVISION=	2
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:DMAKI
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Event Based High Performance Web Crawler Framework
WWW=		https://metacpan.org/release/Gungho

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Best>=0:devel/p5-Best \
		p5-Class-Accessor>=0:devel/p5-Class-Accessor \
		p5-Class-C3-Componentised>=0:devel/p5-Class-C3-Componentised \
		p5-Class-C3-XS>=0.02:devel/p5-Class-C3-XS \
		p5-Class-C3>=0.16:devel/p5-Class-C3 \
		p5-Class-Data-Inheritable>=0:devel/p5-Class-Data-Inheritable \
		p5-Class-Inspector>=0:devel/p5-Class-Inspector \
		p5-Config-Any>=0:devel/p5-Config-Any \
		p5-Danga-Socket-Callback>=0:devel/p5-Danga-Socket-Callback \
		p5-Danga-Socket>=1.57:devel/p5-Danga-Socket \
		p5-Data-Throttler-Memcached>=0.0003:devel/p5-Data-Throttler-Memcached \
		p5-Data-Throttler>=0:devel/p5-Data-Throttler \
		p5-Event-Notify>=0.00004:devel/p5-Event-Notify \
		p5-Exception-Class>=0:devel/p5-Exception-Class \
		p5-HTML-RobotsMETA>=0:www/p5-HTML-RobotsMETA \
		p5-HTTP-Parser>=0:www/p5-HTTP-Parser \
		p5-IO-Async>=0:devel/p5-IO-Async \
		p5-Log-Dispatch>=0:devel/p5-Log-Dispatch \
		p5-POE-Component-Client-DNS>=0:dns/p5-POE-Component-Client-DNS \
		p5-POE-Component-Client-HTTP>=0.81:www/p5-POE-Component-Client-HTTP \
		p5-POE-Component-Client-Keepalive>=0:net/p5-POE-Component-Client-Keepalive \
		p5-POE>=0.9999:devel/p5-POE \
		p5-Path-Class>=0:devel/p5-Path-Class \
		p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
		p5-UNIVERSAL-isa>=0.06:devel/p5-UNIVERSAL-isa \
		p5-UNIVERSAL-require>=0:devel/p5-UNIVERSAL-require \
		p5-URI>=0:net/p5-URI \
		p5-WWW-RobotRules-Parser>=0:www/p5-WWW-RobotRules-Parser \
		p5-Web-Scraper-Config>=0:www/p5-Web-Scraper-Config \
		p5-YAML>=0:textproc/p5-YAML \
		p5-libwww>=0:www/p5-libwww

NO_ARCH=	yes
USES=		perl5 shebangfix
USE_PERL5=	configure
SHEBANG_FILES=	script/*

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/script/gungho ${STAGEDIR}${PREFIX}/bin/gungho

.include <bsd.port.mk>
