PORTNAME=	Mojo-Pg
PORTVERSION=	4.29
CATEGORIES=	databases www perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:SRI
PKGNAMEPREFIX=	p5-

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	PostgreSQL integration for p5-Mojolicious
WWW=		https://metacpan.org/release/Mojo-Pg

LICENSE=	ART20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-DBD-Pg>=3.7.4:databases/p5-DBD-Pg \
		p5-Mojolicious>=8.50:www/p5-Mojolicious \
		p5-SQL-Abstract-Pg>=1.0:databases/p5-SQL-Abstract-Pg

USES=		perl5
USE_PERL5=	configure

NO_ARCH=	yes

OPTIONS_DEFINE=	EXAMPLES

post-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
