aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-Scrappy/Makefile
blob: b2cd8b588728b3cb90eae01f3c42fa540947d1cb (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
# $FreeBSD$

PORTNAME=   Scrappy
PORTVERSION=    0.94112090
CATEGORIES= www perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:AWNCORP
PKGNAMEPREFIX=  p5-

MAINTAINER= tobez@FreeBSD.org
COMMENT=    All Powerful Web Harvester, Spider, Scraper fully automated

BUILD_DEPENDS=  p5-File-ShareDir-Install>=0.03:${PORTSDIR}/devel/p5-File-ShareDir-Install \
        p5-Array-Unique>=0:${PORTSDIR}/devel/p5-Array-Unique \
        p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
        p5-DateTime-Format-SQLite>=0:${PORTSDIR}/devel/p5-DateTime-Format-SQLite \
        p5-File-Find-Rule>=0:${PORTSDIR}/devel/p5-File-Find-Rule \
        p5-File-ShareDir>=0:${PORTSDIR}/devel/p5-File-ShareDir \
        p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \
        p5-File-Util>=0:${PORTSDIR}/devel/p5-File-Util \
        p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
        p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
        p5-Parallel-ForkManager>=0:${PORTSDIR}/devel/p5-Parallel-ForkManager \
        p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \
        p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
        p5-String-TT>=0:${PORTSDIR}/devel/p5-String-TT \
        p5-URI>=0:${PORTSDIR}/net/p5-URI \
        p5-WWW-Mechanize>=0:${PORTSDIR}/www/p5-WWW-Mechanize \
        p5-Web-Scraper>=0:${PORTSDIR}/www/p5-Web-Scraper \
        p5-YAML-Syck>=0:${PORTSDIR}/textproc/p5-YAML-Syck
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USES=       perl5
USE_PERL5=  configure

MAN1=   scrappy.1
MAN3=   Scrappy.3 \
    Scrappy::Logger.3 \
    Scrappy::Queue.3 \
    Scrappy::Scraper::Control.3 \
    Scrappy::Scraper::Parser.3 \
    Scrappy::Session.3

post-patch:
    rm -f ${WRKSRC}/perltidy.pl
    rm -f ${WRKSRC}/lib/Scrappy.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Action.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Logger.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Scraper.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Queue.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Session.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Project.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Plugin.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Action/Help.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Action/Generate.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Plugin/RandomProxy.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Project/Document.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Scraper/Control.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Scraper/Parser.pm.bak
    rm -f ${WRKSRC}/lib/Scrappy/Scraper/UserAgent.pm.bak

.include <bsd.port.mk>