PORTNAME=	Geo-Coder-OpenCage
PORTVERSION=	0.43
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.40:converters/p5-Cpanel-JSON-XS \
		p5-IO-Socket-SSL>=2.068:security/p5-IO-Socket-SSL \
		p5-JSON-MaybeXS>=1.004003:converters/p5-JSON-MaybeXS \
		p5-URI>=5.19:net/p5-URI
TEST_DEPENDS=	p5-LWP-Protocol-https>=6.10:www/p5-LWP-Protocol-https \
		p5-Mozilla-CA>=20240313:www/p5-Mozilla-CA \
		p5-Net-Ping>=2.73:net/p5-Net-Ping \
		p5-Test-Exception>=0.32:devel/p5-Test-Exception \
		p5-Test-Warn>=0:devel/p5-Test-Warn \
		p5-libwww>=6.55:www/p5-libwww

USES=		perl5
USE_PERL5=	configure

NO_ARCH=	yes

.include <bsd.port.mk>
