aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBIx-Class/Makefile
blob: 09f2b5b798172d5f4d0fd76bcf34909ebc40b244 (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
# New ports collection makefile for:    DBIx-Class
# Date created:     14 Aug 2005
# Whom:         Lars Balker Rasmussen <lbr@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   DBIx-Class
PORTVERSION=    0.07004
CATEGORIES= databases perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBIx
PKGNAMEPREFIX=  p5-

MAINTAINER= lbr@FreeBSD.org
COMMENT=    Extensible and flexible object <-> relational mapper

RUN_DEPENDS=    p5-PathTools>=3.19:${PORTSDIR}/devel/p5-PathTools \
        p5-Data-Page>=2.00:${PORTSDIR}/databases/p5-Data-Page \
        p5-SQL-Abstract>=1.20:${PORTSDIR}/databases/p5-SQL-Abstract \
        p5-SQL-Abstract-Limit>=0.101:${PORTSDIR}/databases/p5-SQL-Abstract-Limit \
        p5-Class-C3>=0.13:${PORTSDIR}/devel/p5-Class-C3 \
        p5-Class-Data-Accessor>=0.01:${PORTSDIR}/devel/p5-Class-Data-Accessor \
        p5-Carp-Clan>=0:${PORTSDIR}/devel/p5-Carp-Clan \
        p5-DBI>=1.40:${PORTSDIR}/databases/p5-DBI \
        p5-Module-Find>=0:${PORTSDIR}/devel/p5-Module-Find \
        p5-Class-Inspector>=0:${PORTSDIR}/devel/p5-Class-Inspector
BUILD_DEPENDS=  ${RUN_DEPENDS}

PERL_MODBUILD=  yes

MAN1=   dbicadmin.1
MAN3=   DBIx::Class.3 \
    DBIx::Class::AccessorGroup.3 \
    DBIx::Class::CDBICompat.3 \
    DBIx::Class::Core.3 \
    DBIx::Class::Cursor.3 \
    DBIx::Class::DB.3 \
    DBIx::Class::InflateColumn.3 \
    DBIx::Class::InflateColumn::DateTime.3 \
    DBIx::Class::Manual.3 \
    DBIx::Class::Manual::Component.3 \
    DBIx::Class::Manual::Cookbook.3 \
    DBIx::Class::Manual::DocMap.3 \
    DBIx::Class::Manual::Example.3 \
    DBIx::Class::Manual::FAQ.3 \
    DBIx::Class::Manual::Glossary.3 \
    DBIx::Class::Manual::Intro.3 \
    DBIx::Class::Manual::Troubleshooting.3 \
    DBIx::Class::Ordered.3 \
    DBIx::Class::PK.3 \
    DBIx::Class::PK::Auto.3 \
    DBIx::Class::PK::Auto::DB2.3 \
    DBIx::Class::PK::Auto::MSSQL.3 \
    DBIx::Class::PK::Auto::MySQL.3 \
    DBIx::Class::PK::Auto::Oracle.3 \
    DBIx::Class::PK::Auto::Pg.3 \
    DBIx::Class::PK::Auto::SQLite.3 \
    DBIx::Class::Relationship.3 \
    DBIx::Class::Relationship::Base.3 \
    DBIx::Class::Relationship::BelongsTo.3 \
    DBIx::Class::ResultSet.3 \
    DBIx::Class::ResultSetColumn.3 \
    DBIx::Class::ResultSetManager.3 \
    DBIx::Class::ResultSource.3 \
    DBIx::Class::ResultSource::Table.3 \
    DBIx::Class::ResultSourceProxy::Table.3 \
    DBIx::Class::Row.3 \
    DBIx::Class::Schema.3 \
    DBIx::Class::Serialize::Storable.3 \
    DBIx::Class::Storage::DBI.3 \
    DBIx::Class::Storage::DBI::Cursor.3 \
    DBIx::Class::Storage::DBI::DB2.3 \
    DBIx::Class::Storage::DBI::MSSQL.3 \
    DBIx::Class::Storage::DBI::MultiDistinctEmulation.3 \
    DBIx::Class::Storage::DBI::NoBindVars.3 \
    DBIx::Class::Storage::DBI::ODBC.3 \
    DBIx::Class::Storage::DBI::ODBC::DB2_400_SQL.3 \
    DBIx::Class::Storage::DBI::Oracle.3 \
    DBIx::Class::Storage::DBI::Pg.3 \
    DBIx::Class::Storage::DBI::SQLite.3 \
    DBIx::Class::Storage::DBI::Sybase.3 \
    DBIx::Class::Storage::DBI::Sybase::MSSQL.3 \
    DBIx::Class::Storage::DBI::mysql.3 \
    DBIx::Class::Storage::Statistics.3 \
    DBIx::Class::Test::SQLite.3 \
    DBIx::Class::UTF8Columns.3 \
    SQL::Translator::Producer::DBIx::Class::File.3

post-extract:
    @${PERL} -i.bak -ne 'print unless /^\s*build_requires/ .. /},$$/' ${WRKSRC}/Build.PL
    @${PERL} -i.bak -ne 'print unless /\.orig$$/' ${WRKSRC}/MANIFEST
    @${RM} -f ${WRKSRC}/lib/DBIx/Class/Schema.pm.orig
    @${RM} -f ${WRKSRC}/lib/DBIx/Class/Storage/DBI.pm.orig

.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500801
IGNORE= requires at least Perl 5.8.1. Install lang/perl5.8, and try again
.endif
.include <bsd.port.post.mk>