aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Spoon/Makefile
blob: 0f9f2b68fab5c98a6927b998943121bada92d092 (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
# New ports collection makefile for:    p5-Spoon
# Date created:             Fri Jul 16 14:17:55 CST 2004
# Whom:                 Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD$
#

PORTNAME=   Spoon
PORTVERSION=    0.24
CATEGORIES= devel perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/I/IN/INGY/
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    A Spiffy Application Building Framework

BUILD_DEPENDS=  ${SITE_PERL}/Spiffy.pm:${PORTSDIR}/devel/p5-Spiffy \
        ${SITE_PERL}/IO/All.pm:${PORTSDIR}/devel/p5-IO-All \
        ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN3=       Spoon.3 \
        Spoon::Base.3 \
        Spoon::CGI.3 \
        Spoon::Command.3 \
        Spoon::ContentObject.3 \
        Spoon::Cookie.3 \
        Spoon::DataObject.3 \
        Spoon::Formatter.3 \
        Spoon::Hooks.3 \
        Spoon::Hub.3 \
        Spoon::Installer.3 \
        Spoon::MetadataObject.3 \
        Spoon::Plugin.3 \
        Spoon::Registry.3 \
        Spoon::Template.3 \
        Spoon::Template::TT2.3 \
        Spoon::Utils.3

.if !defined(NOPORTDOCS)
PORTDOCS=   Changes README

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
        ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
post-patch:
    @${PERL} -i -pe '$$_ = "" if $$. == 3' \
        ${WRKSRC}/lib/Spoon/Base.pm
.else
MAN3+=      Spoon::Config.3
.endif

.include <bsd.port.post.mk>