PORTNAME=	Geo-Coder-OpenCage
PORTVERSION=	0.44
CATEGORIES=	misc geography perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:MTMAIL
PKGNAMEPREFIX=	p5-

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Geocode addresses with the OpenCage Geocoder API
WWW=		https://metacpan.org/release/Geo-Coder-OpenCage

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual
LICENSE_FILE_GPLv1+ =	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Cpanel-JSON-XS>=4.82:converters/p5-Cpanel-JSON-XS \
		p5-IO-Socket-SSL>=2.099:security/p5-IO-Socket-SSL \
		p5-JSON-MaybeXS>=1.004008:converters/p5-JSON-MaybeXS \
		p5-URI>=5.40:net/p5-URI
TEST_DEPENDS=	p5-LWP-Protocol-https>=6.17:www/p5-LWP-Protocol-https \
		p5-Mozilla-CA>=20261105:www/p5-Mozilla-CA \
		p5-Net-Ping>=2.77:net/p5-Net-Ping \
		p5-Test-Exception>=0.43:devel/p5-Test-Exception \
		p5-Test-Perl-Critic>=1.04:textproc/p5-Test-Perl-Critic \
		p5-Test-Simple>=1.302226:devel/p5-Test-Simple \
		p5-Test-Warn>=0:devel/p5-Test-Warn \
		p5-libwww>=6.83:www/p5-libwww

USES=		perl5
USE_PERL5=	configure

NO_ARCH=	yes

.include <bsd.port.mk>
