aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Alzabo/Makefile
blob: 7c292888a77db0c006c58903f9d5c7f159153a10 (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
# New ports collection makefile for:    p5-Alzabo
# Date created:             8 Aug 2004
# Whom:                     mat
#
# $FreeBSD$
#

PORTNAME=   Alzabo
PORTVERSION=    0.86
CATEGORIES= devel databases perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Alzabo
PKGNAMEPREFIX=  p5-

MAINTAINER= mat@FreeBSD.org
COMMENT=    A data modelling tool and RDBMS-OO mapper

BUILD_DEPENDS=  ${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
        ${SITE_PERL}/Class/Factory/Util.pm:${PORTSDIR}/devel/p5-Class-Factory-Util \
        ${SITE_PERL}/${PERL_ARCH}//Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
        ${SITE_PERL}/Tie/IxHash.pm:${PORTSDIR}/devel/p5-Tie-IxHash \
        ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_MODBUILD=  yes

MAN3=       \
        Alzabo.3 \
        Alzabo::BackCompat.3 \
        Alzabo::ChangeTracker.3 \
        Alzabo::Column.3 \
        Alzabo::ColumnDefinition.3 \
        Alzabo::Config.3 \
        Alzabo::Create.3 \
        Alzabo::Create::Column.3 \
        Alzabo::Create::ColumnDefinition.3 \
        Alzabo::Create::ForeignKey.3 \
        Alzabo::Create::Index.3 \
        Alzabo::Create::Schema.3 \
        Alzabo::Create::Table.3 \
        Alzabo::Debug.3 \
        Alzabo::Design.3 \
        Alzabo::Driver.3 \
        Alzabo::Driver::MySQL.3 \
        Alzabo::Driver::PostgreSQL.3 \
        Alzabo::Exceptions.3 \
        Alzabo::FAQ.3 \
        Alzabo::ForeignKey.3 \
        Alzabo::Index.3 \
        Alzabo::Intro.3 \
        Alzabo::MethodMaker.3 \
        Alzabo::MySQL.3 \
        Alzabo::PostgreSQL.3 \
        Alzabo::QuickRef.3 \
        Alzabo::RDBMSRules.3 \
        Alzabo::RDBMSRules::MySQL.3 \
        Alzabo::RDBMSRules::PostgreSQL.3 \
        Alzabo::Runtime.3 \
        Alzabo::Runtime::Column.3 \
        Alzabo::Runtime::ColumnDefinition.3 \
        Alzabo::Runtime::Cursor.3 \
        Alzabo::Runtime::ForeignKey.3 \
        Alzabo::Runtime::Index.3 \
        Alzabo::Runtime::InsertHandle.3 \
        Alzabo::Runtime::JoinCursor.3 \
        Alzabo::Runtime::Row.3 \
        Alzabo::Runtime::RowCursor.3 \
        Alzabo::Runtime::RowState::Deleted.3 \
        Alzabo::Runtime::RowState::InCache.3 \
        Alzabo::Runtime::RowState::Live.3 \
        Alzabo::Runtime::RowState::Potential.3 \
        Alzabo::Runtime::Schema.3 \
        Alzabo::Runtime::Table.3 \
        Alzabo::Runtime::UniqueRowCache.3 \
        Alzabo::SQLMaker.3 \
        Alzabo::SQLMaker::MySQL.3 \
        Alzabo::SQLMaker::PostgreSQL.3 \
        Alzabo::Schema.3 \
        Alzabo::Table.3

.if !defined(NOPORTDOCS)
EXAMPLES=   eg/alzabo_grep eg/alzabo_to_ascii eg/convert.pl eg/reverse_cardinality.pl
EXAMPLESMASON=  mason/widgets/edit_field_checkbox mason/widgets/edit_field_text_input mason/widgets/edit_field_textarea mason/widgets/fk_to_one_select mason/widgets/insert mason/widgets/insert_or_update mason/widgets/update
PORTDOCS=   README Changes TODO

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
    @${MKDIR} ${EXAMPLESDIR}/mason
    @${INSTALL_DATA} ${EXAMPLESMASON:S|^|${WRKSRC}/|} ${EXAMPLESDIR}/mason
    @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
    @${FIND} -P ${EXAMPLESDIR} ! -type d 2>/dev/null | \
        ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
    @${FIND} -P -d ${EXAMPLESDIR} -type d 2>/dev/null | \
        ${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
        ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
        ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
        ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
.if ${PERL_LEVEL} < 500600
IGNORE=     Needs perl 5.6+, install lang/perl5 or lang/perl5.8 and try again
.endif
.endif

.include <bsd.port.post.mk>