aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/p5-POE-Component-Client-FTP/Makefile
blob: fe3b1a4c2e9ae0d402e961d5ebfd7db500246c5d (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
# New ports collection makefile for:    POE-Component-Client-FTP
# Date created:    17 March 2002
# Whom:        Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   POE-Component-Client-FTP
PORTVERSION=    0.22
CATEGORIES= ftp perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= skv@FreeBSD.org
COMMENT=    Implements an FTP client POE Component

BUILD_DEPENDS=  ${SITE_PERL}/POE.pm:${PORTSDIR}/devel/p5-POE
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes
CONFIGURE_ENV=  PERL_MM_USE_DEFAULT=yes

MAN3=       POE::Component::Client::FTP.3

post-patch:
    @${PERL} -pi -e '$$_="" if /^use warnings/; s/\x0d(?=\x0a)//;' \
        ${WRKSRC}/FTP.pm

post-install:
.ifndef(NOPORTDOCS)
    @${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>