blob: 4e326ff65aff70cf479efe63ec1f0a8ed3bb0918 (
plain)
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
|
# 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
MAN1= gamin-monitor.1
MAN3= Sys::Gamin.3
NO_STAGE= 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>
|