1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/www/p5-Scrappy/Makefile
Mathieu Arnold eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00

56 lines
2.1 KiB
Makefile

# $FreeBSD$
PORTNAME= Scrappy
PORTVERSION= 0.94112090
PORTREVISION= 1
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
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>