aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-ack/Makefile
blob: ec30d15ac12f32ec31e13b39429597f9f189d828 (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
# New ports collection makefile for:    p5-ack
# Date created:             2006/08/15
# Whom:                     chinsan <chinsan.tw@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   ack
PORTVERSION=    1.96
PORTREVISION=   1
CATEGORIES= textproc perl5 sysutils
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= App
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    A grep-like text finder for large trees of text

BUILD_DEPENDS=  p5-File-Next>=0.40:${PORTSDIR}/sysutils/p5-File-Next
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN1=       ack.1

OPTIONS=    BASH_COMPLETE "use bash completion" off

.include <bsd.port.pre.mk>

COMPLETION_DIR=     ${PREFIX}/etc/bash_completion.d
.if defined(WITH_BASH_COMPLETE)
RUN_DEPENDS+=   ${COMPLETION_DIR}:${PORTSDIR}/shells/bash-completion
PLIST_SUB+=     BASH=""
post-install:
    ${INSTALL_DATA} ${WRKSRC}/etc/ack.bash_completion.sh ${COMPLETION_DIR}
.else
PLIST_SUB+=     BASH="@comment "
.endif

.include <bsd.port.post.mk>