blob: 39531cfe64627b9a8dab67138c141b7b21f3a7ba (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: kirk@strauser.com
# $FreeBSD$
PORTNAME= bash-completion
PORTVERSION= 2.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= shells
MASTER_SITES= http://bash-completion.alioth.debian.org/files/
MAINTAINER= adamw@FreeBSD.org
COMMENT= Programmable completion library for Bash
OPTIONS_DEFINE= BASH_DEVEL
BASH_DEVEL_DESC= Use shells/bash-devel instead of shells/bash
CONFLICTS= bash-completion-classic-[0-9]*
USE_AUTOTOOLS= aclocal automake
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BZIP2= yes
SUB_FILES= pkg-message
SUB_LIST+= RUNFILE=${DATADIR}/bash_completion.sh
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBASH_DEVEL}
RUN_DEPENDS=bash:${PORTSDIR}/shells/bash-devel
.else
RUN_DEPENDS=bash:${PORTSDIR}/shells/bash
.endif
post-patch:
@${REINPLACE_CMD} -e 's|FLAC|&\|flv\|FLV|;' ${WRKSRC}/bash_completion
post-configure:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g; \
s|/etc/bash_completion|${PREFIX}&|g; \
s|/usr\(/sbin/postconf\)|${PREFIX}\1|g; \
s|/usr\(/lib/rpm/macros\)|${PREFIX}\1|g; \
s|/usr/share\(/ssl/openssl.cnf\)|/etc\1|g; \
s|/usr/ports|${PORTSDIR}|g; \
s|/usr/lib\(/aspell\)|${PREFIX}/share\1|g; \
s|/usr/share/info|&:${PREFIX}/info|g;' \
${WRKSRC}/completions/*
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
. for i in README doc/bash_completion.txt doc/bashrc doc/inputrc
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
. endfor
.include <bsd.port.mk>
|