PORTNAME=	DBIx-Simple
PORTVERSION=	1.37
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Simplified object oriented interface to Perl DBI
WWW=		https://metacpan.org/release/DBIx-Simple

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-DBI>=1.21:databases/p5-DBI ${TEST_DEPENDS}
TEST_DEPENDS=	p5-DBD-SQLite>=0:databases/p5-DBD-SQLite

OPTIONS_DEFINE=		SQL_INTERP SQL_ABSTRACT DBIX_XHTML_TABLE TEXT_TABLE
SQL_INTERP_DESC=	Interpolate Perl variables into SQL
SQL_ABSTRACT_DESC=	Generate SQL from Perl data structures
DBIX_XHTML_TABLE_DESC=	Create XHTML tables from SQL queries
TEXT_TABLE_DESC=	Create plain text table from data

NO_ARCH=	yes
USES=		perl5
USE_PERL5=	configure

DBIX_XHTML_TABLE_BUILD_DEPENDS=	p5-DBIx-XHTML_Table>=0:databases/p5-DBIx-XHTML_Table
DBIX_XHTML_TABLE_RUN_DEPENDS=	${DBIX_XHTML_TABLE_BUILD_DEPENDS}
SQL_ABSTRACT_BUILD_DEPENDS=	p5-SQL-Abstract>=0:databases/p5-SQL-Abstract
SQL_ABSTRACT_RUN_DEPENDS=	${SQL_ABSTRACT_BUILD_DEPENDS}
SQL_INTERP_BUILD_DEPENDS=	p5-SQL-Interp>=0:databases/p5-SQL-Interp
SQL_INTERP_RUN_DEPENDS=		${SQL_INTERP_BUILD_DEPENDS}
TEXT_TABLE_BUILD_DEPENDS=	p5-Text-Table>=0:textproc/p5-Text-Table
TEXT_TABLE_RUN_DEPENDS=		${TEXT_TABLE_BUILD_DEPENDS}

.include <bsd.port.mk>
