freebsd-ports/net-mgmt/p5-Net-NSCA-Client/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

54 lines
2.4 KiB
Makefile

# $FreeBSD$
PORTNAME= Net-NSCA-Client
PORTVERSION= 0.009002
PORTREVISION= 1
CATEGORIES= net-mgmt perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= tj@FreeBSD.org
COMMENT= Perl extension for sending passive service checks to nagios
RUN_DEPENDS= p5-Const-Fast>=0.013:${PORTSDIR}/devel/p5-Const-Fast \
p5-Convert-Binary-C>=0.76:${PORTSDIR}/converters/p5-Convert-Binary-C \
p5-Data-Rand>=0.0.4:${PORTSDIR}/devel/p5-Data-Rand \
p5-Data-Rand-Obscure>=0.021:${PORTSDIR}/devel/p5-Data-Rand-Obscure \
p5-Data-Validate-Domain>=0.10:${PORTSDIR}/dns/p5-Data-Validate-Domain \
p5-Digest-CRC>=0.18:${PORTSDIR}/security/p5-Digest-CRC \
p5-Moose>=0.89:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Clone>=0.05:${PORTSDIR}/devel/p5-MooseX-Clone \
p5-MooseX-StrictConstructor>=0.08:${PORTSDIR}/devel/p5-MooseX-StrictConstructor \
p5-MooseX-Types>=0.35:${PORTSDIR}/devel/p5-MooseX-Types \
p5-MooseX-Types-PortNumber>=0.02:${PORTSDIR}/devel/p5-MooseX-Types-PortNumber \
p5-namespace-clean>=0.04:${PORTSDIR}/devel/p5-namespace-clean
BUILD_DEPENDS= p5-Const-Fast>=0.013:${PORTSDIR}/devel/p5-Const-Fast \
p5-Convert-Binary-C>=0.76:${PORTSDIR}/converters/p5-Convert-Binary-C \
p5-Data-Rand>=0.0.4:${PORTSDIR}/devel/p5-Data-Rand \
p5-Data-Rand-Obscure>=0.021:${PORTSDIR}/devel/p5-Data-Rand-Obscure \
p5-Data-Section>=0.101621:${PORTSDIR}/devel/p5-Data-Section \
p5-Data-Validate-Domain>=0.10:${PORTSDIR}/dns/p5-Data-Validate-Domain \
p5-Digest-CRC>=0.18:${PORTSDIR}/security/p5-Digest-CRC \
p5-Moose>=0.89:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Clone>=0.05:${PORTSDIR}/devel/p5-MooseX-Clone \
p5-MooseX-StrictConstructor>=0.08:${PORTSDIR}/devel/p5-MooseX-StrictConstructor \
p5-MooseX-Types>=0.35:${PORTSDIR}/devel/p5-MooseX-Types \
p5-MooseX-Types-PortNumber>=0.02:${PORTSDIR}/devel/p5-MooseX-Types-PortNumber \
p5-namespace-clean>=0.04:${PORTSDIR}/devel/p5-namespace-clean
TEST_DEPENDS= p5-Test-Class>=0.37:${PORTSDIR}/devel/p5-Test-Class \
p5-Test-Command>=0.08:${PORTSDIR}/devel/p5-Test-Command \
p5-Test-Fatal>=0.010:${PORTSDIR}/devel/p5-Test-Fatal \
p5-Test-Requires>=0.06:${PORTSDIR}/devel/p5-Test-Requires \
p5-Test-TCP>=1.17:${PORTSDIR}/devel/p5-Test-TCP
USES= perl5
USE_PERL5= modbuild
post-patch:
@cd ${WRKSRC} && ${RM} -f bin/send_nsca
@cd ${WRKSRC} && ${RM} -f t/send_nsca.t
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build test
.include <bsd.port.mk>