aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-SQL-Translator/Makefile
blob: 7299bf8bc7ca53199edc66f2c0296fb78cb8bcfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Lars Thegler <lars@thegler.dk>
# $FreeBSD$

PORTNAME=	SQL-Translator
PORTVERSION=	0.11021
PORTREVISION=	1
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Manipulate structured data definitions (SQL and more)

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Carp-Clan>=0:${PORTSDIR}/devel/p5-Carp-Clan \
		p5-DBI>=1.54:${PORTSDIR}/databases/p5-DBI \
		p5-File-ShareDir>=1:${PORTSDIR}/devel/p5-File-ShareDir \
		p5-JSON>=2:${PORTSDIR}/converters/p5-JSON \
		p5-List-MoreUtils>=0.09:${PORTSDIR}/lang/p5-List-MoreUtils \
		p5-Moo>=1.000003:${PORTSDIR}/devel/p5-Moo \
		p5-Package-Variant>=1.001001:${PORTSDIR}/devel/p5-Package-Variant \
		p5-Parse-RecDescent>=1.967.009:${PORTSDIR}/devel/p5-Parse-RecDescent \
		p5-Spreadsheet-ParseExcel>=0.41:${PORTSDIR}/textproc/p5-Spreadsheet-ParseExcel \
		p5-Template-Toolkit>=2.20:${PORTSDIR}/www/p5-Template-Toolkit \
		p5-Text-ParseWords>=0:${PORTSDIR}/textproc/p5-Text-ParseWords \
		p5-Text-RecordParser>=0.02:${PORTSDIR}/textproc/p5-Text-RecordParser \
		p5-Try-Tiny>=0.04:${PORTSDIR}/lang/p5-Try-Tiny \
		p5-XML-Writer>=0.5:${PORTSDIR}/textproc/p5-XML-Writer \
		p5-XML-LibXML>=1.69:${PORTSDIR}/textproc/p5-XML-LibXML \
		p5-strictures>=0:${PORTSDIR}/devel/p5-strictures \
		p5-YAML>=0.66:${PORTSDIR}/textproc/p5-YAML
RUN_DEPENDS:=	${BUILD_DEPENDS}
TEST_DEPENDS=	p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
		p5-Test-Differences>=0.61:${PORTSDIR}/devel/p5-Test-Differences \
		p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception

OPTIONS_DEFINE=	DIAGRAM
DIAGRAM_DESC=	Diagram generation support

REINPLACE_ARGS=	-i ''
USES=		perl5
USE_PERL5=	configure

DIAGRAM_BUILD_DEPENDS=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
			p5-Graph>=0:${PORTSDIR}/math/p5-Graph \
			p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz
DIAGRAM_RUN_DEPENDS=	${DIAGRAM_BUILD_DEPENDS}

post-patch:
	@${REINPLACE_CMD} -e 's|@EXPORT|&_OK|' ${WRKSRC}/lib/SQL/Translator/Parser/xSV.pm

regression-test: build
	cd ${WRKSRC}/ && ${MAKE} test

.include <bsd.port.mk>