aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-POE-Component-Daemon/Makefile
blob: ce8e54a73c3af3bb513f00864dd22146404dd4d2 (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
# Created by: Zach Thompson <hideo@lastamericanempire.com>
# $FreeBSD$

PORTNAME=   POE-Component-Daemon
PORTVERSION=    0.1400
CATEGORIES= devel perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Handles all the housework for a daemon in POE

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-POE>=1:${PORTSDIR}/devel/p5-POE
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USES=       perl5
USE_PERL5=  configure

MAN3=       POE::Component::Daemon.3

PORTDOCS=   *

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    @for i in ${WRKSRC}/eg/*forking; do \
        ${PERL} -pi -e '$$_ = undef if m{use FindBin}o;' \
            -e 's{.FindBin::Dir(.+)$$}{/tmp$$1\nwarn "Logging to \$$logfile\\n";}o' $${i}; \
        ${INSTALL_SCRIPT} $${i} ${EXAMPLESDIR}; \
    done

.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @for i in ${WRKSRC}/eg/*.png ${WRKSRC}/eg/*.dot; do \
        ${INSTALL_DATA} $${i} ${DOCSDIR}; \
    done
.endif

.include <bsd.port.mk>