PORTNAME=	DBIx-SearchBuilder
PORTVERSION=	1.85
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN/../by-authors/id/B/BP/BPS/

PKGNAMEPREFIX=	p5-

MAINTAINER=	mikael@FreeBSD.org
COMMENT=	Perl extension for easy SQL SELECT Statement generation
WWW=		https://metacpan.org/release/DBIx-SearchBuilder

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Class-ReturnValue>=0:devel/p5-Class-ReturnValue \
		p5-Cache-Simple-TimedExpiry>=0:devel/p5-Cache-Simple-TimedExpiry \
		p5-Want>=0:devel/p5-Want \
		p5-capitalization>=0:devel/p5-capitalization \
		p5-DBI>=0:databases/p5-DBI \
		p5-DBIx-DBSchema>=0:databases/p5-DBIx-DBSchema \
		p5-Class-Accessor>=0:devel/p5-Class-Accessor \
		p5-Clone>=0:devel/p5-Clone
TEST_DEPENDS=	p5-DBD-SQLite>=0:databases/p5-DBD-SQLite

NO_ARCH=	yes
USES=		perl5
USE_PERL5=	configure

post-patch:
		${CP} ${WRKSRC}/lib/DBIx/SearchBuilder/Handle/Pg.pm ${WRKSRC}/lib/DBIx/SearchBuilder/Handle/Pg32.pm
		${REINPLACE_CMD} -e 's/Pg/Pg32/g' ${WRKSRC}/lib/DBIx/SearchBuilder/Handle/Pg32.pm

.include <bsd.port.mk>
