blob: 37e8e8b20f6e2c35ba798b5de30bf50882f14768 (
plain) (
tree)
|
|
# Created by: Nick Hibma <n_hibma@FreeBSD.org>
# $FreeBSD$
PORTNAME= Sys-Gamin
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl interface to Gamin (File Access Monitor implementation)
USES= perl5
USE_PERL5= configure
USE_FAM= yes
pre-configure:
# Pass in include in LOCALBASE
${PERL} -pi -e 'm/LIBS =>/ && print " INC => \"-I${LOCALBASE}/include\",\n"' ${WRKSRC}/Makefile.PL
# Rename a tool with a generic name (monitor)
${PERL} -pi -e 's/qw.monitor./qw(gamin-monitor)/' ${WRKSRC}/Makefile.PL
${PERL} -pi -e 's/^monitor$$/gamin-monitor/' ${WRKSRC}/MANIFEST
${MV} ${WRKSRC}/monitor ${WRKSRC}/gamin-monitor
.include <bsd.port.mk>
|