aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBIx-Class-Schema-Loader/Makefile
blob: d87bab2b2b9ac7256f6021c6c6f1031b4d34ade1 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Created by: Lars Balker Rasmussen <lbr@FreeBSD.org>
# $FreeBSD$

PORTNAME=	DBIx-Class-Schema-Loader
PORTVERSION=	0.07033
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:RKITOVER
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Dynamic definition of a DBIx::Class::Schema

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Carp-Clan>=0:${PORTSDIR}/devel/p5-Carp-Clan \
		p5-Class-Accessor-Grouped>=0.10002:${PORTSDIR}/devel/p5-Class-Accessor-Grouped \
		p5-Class-C3-Componentised>=1.0008:${PORTSDIR}/devel/p5-Class-C3-Componentised \
		p5-Class-Inspector>=1.27:${PORTSDIR}/devel/p5-Class-Inspector \
		p5-Class-Load>=0:${PORTSDIR}/devel/p5-Class-Load \
		p5-Class-Unload>=0:${PORTSDIR}/devel/p5-Class-Unload \
		p5-DBIx-Class>=0.08127:${PORTSDIR}/databases/p5-DBIx-Class \
		p5-Data-Dump>1.06:${PORTSDIR}/devel/p5-Data-Dump \
		p5-File-Slurp>=9999.13:${PORTSDIR}/devel/p5-File-Slurp \
		p5-Hash-Merge>=0:${PORTSDIR}/textproc/p5-Hash-Merge \
		p5-Lingua-EN-Inflect-Number>=1.1:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Number \
		p5-Lingua-EN-Inflect-Phrase>=0.02:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \
		p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils \
		p5-MRO-Compat>=0.09:${PORTSDIR}/devel/p5-MRO-Compat \
		p5-Scope-Guard>=0:${PORTSDIR}/devel/p5-Scope-Guard \
		p5-String-CamelCase>=0.02:${PORTSDIR}/textproc/p5-String-CamelCase \
		p5-String-ToIdentifier-EN>=0.05:${PORTSDIR}/textproc/p5-String-ToIdentifier-EN \
		p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
		p5-namespace-clean>=0.20:${PORTSDIR}/devel/p5-namespace-clean
RUN_DEPENDS:=	${BUILD_DEPENDS}
TEST_DEPENDS=	p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General \
		p5-DBD-SQLite>=1.29:${PORTSDIR}/databases/p5-DBD-SQLite \
		p5-DBIx-Class-IntrospectableM2M>=0:${PORTSDIR}/databases/p5-DBIx-Class-IntrospectableM2M \
		p5-Moose>=1.12:${PORTSDIR}/devel/p5-Moose \
		p5-MooseX-MarkAsMethods>=0.13:${PORTSDIR}/devel/p5-MooseX-MarkAsMethods \
		p5-MooseX-NonMoose>=0.16:${PORTSDIR}/devel/p5-MooseX-NonMoose \
		p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \
		p5-Test-Pod>=1.14:${PORTSDIR}/devel/p5-Test-Pod \
		p5-Test-Warn>=0.21:${PORTSDIR}/devel/p5-Test-Warn

OPTIONS_DEFINE=	MYSQL ORACLE PGSQL SQLITE
ORACLE_DESC=	Enable Oracle backend (experimental)

PERL_CONFIGURE=	yes

MAN1=	dbicdump.1
MAN3=	DBIx::Class::Schema::Loader.3 \
	DBIx::Class::Schema::Loader::Base.3 \
	DBIx::Class::Schema::Loader::DBI.3 \
	DBIx::Class::Schema::Loader::DBI::ADO.3 \
	DBIx::Class::Schema::Loader::DBI::ADO::MS_Jet.3 \
	DBIx::Class::Schema::Loader::DBI::ADO::Microsoft_SQL_Server.3 \
	DBIx::Class::Schema::Loader::DBI::Component::QuotedDefault.3 \
	DBIx::Class::Schema::Loader::DBI::DB2.3 \
	DBIx::Class::Schema::Loader::DBI::Firebird.3 \
	DBIx::Class::Schema::Loader::DBI::Informix.3 \
	DBIx::Class::Schema::Loader::DBI::InterBase.3 \
	DBIx::Class::Schema::Loader::DBI::MSSQL.3 \
	DBIx::Class::Schema::Loader::DBI::ODBC.3 \
	DBIx::Class::Schema::Loader::DBI::ODBC::ACCESS.3 \
	DBIx::Class::Schema::Loader::DBI::ODBC::Firebird.3 \
	DBIx::Class::Schema::Loader::DBI::ODBC::Microsoft_SQL_Server.3 \
	DBIx::Class::Schema::Loader::DBI::ODBC::SQL_Anywhere.3 \
	DBIx::Class::Schema::Loader::DBI::Oracle.3 \
	DBIx::Class::Schema::Loader::DBI::Pg.3 \
	DBIx::Class::Schema::Loader::DBI::SQLAnywhere.3 \
	DBIx::Class::Schema::Loader::DBI::SQLite.3 \
	DBIx::Class::Schema::Loader::DBI::Sybase.3 \
	DBIx::Class::Schema::Loader::DBI::Sybase::Common.3 \
	DBIx::Class::Schema::Loader::DBI::Sybase::Microsoft_SQL_Server.3 \
	DBIx::Class::Schema::Loader::DBI::Writing.3 \
	DBIx::Class::Schema::Loader::DBI::mysql.3 \
	DBIx::Class::Schema::Loader::DBObject.3 \
	DBIx::Class::Schema::Loader::DBObject::Informix.3 \
	DBIx::Class::Schema::Loader::DBObject::Sybase.3 \
	DBIx::Class::Schema::Loader::Manual::UpgradingFromV4.3 \
	DBIx::Class::Schema::Loader::Optional::Dependencies.3 \
	DBIx::Class::Schema::Loader::RelBuilder.3 \
	DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040.3 \
	DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_05.3 \
	DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_06.3 \
	DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_07.3 \
	DBIx::Class::Schema::Loader::Table.3 \
	DBIx::Class::Schema::Loader::Table::Informix.3 \
	DBIx::Class::Schema::Loader::Table::Sybase.3

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=	yes
.endif

.if ${PORT_OPTIONS:MORACLE}
BUILD_DEPENDS+=	p5-DBD-Oracle>=0.19:${PORTSDIR}/databases/p5-DBD-Oracle
RUN_DEPENDS+=	p5-DBD-Oracle>=0.19:${PORTSDIR}/databases/p5-DBD-Oracle
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=	yes
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE=	yes
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501200
TEST_DEPENDS+=	p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
.endif

.include <bsd.port.post.mk>