PORTNAME=	JSAN
PORTVERSION=	0.07
PORTREVISION=	8
CATEGORIES=	lang perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:CWEST
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	JavaScript Archive Network (JSAN) Shell
WWW=		https://metacpan.org/release/JSAN

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Class-Accessor>=0:devel/p5-Class-Accessor \
		p5-Class-DBI-DATA-Schema>=0:databases/p5-Class-DBI-DATA-Schema \
		p5-Class-DBI-Loader>=0:databases/p5-Class-DBI-Loader \
		p5-Class-DBI-SQLite>=0:databases/p5-Class-DBI-SQLite \
		p5-Class-DBI>=0:databases/p5-Class-DBI \
		p5-DBD-SQLite>=0:databases/p5-DBD-SQLite \
		p5-SQL-Translator>=0:databases/p5-SQL-Translator \
		p5-XML-XPath>=0:textproc/p5-XML-XPath \
		p5-YAML>=0:textproc/p5-YAML \
		p5-libwww>=0:www/p5-libwww

USES=		perl5
USE_PERL5=	configure

post-patch:
	@${REINPLACE_CMD} -e "40 s,new,new(\'jsan\')," ${WRKSRC}/lib/JSAN.pm
	${FIND} ${WRKSRC}/lib -name "*.bak" -delete

.include <bsd.port.mk>
