blob: 972e19d30afb40aec3d847633c1b7e91ca562a7f (
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
|
# Created by: kirk@strauser.com
# $FreeBSD$
PORTNAME= bash-completion
PORTVERSION= 2.7
PORTEPOCH= 1
CATEGORIES= shells
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Programmable completion library for Bash
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= bash:shells/bash
OPTIONS_DEFINE= CMAKE_MODULES DOCS
OPTIONS_DEFAULT=CMAKE_MODULES
OPTIONS_SUB= yes
CMAKE_MODULES_DESC= Install bash-completion modules for cmake
NO_ARCH= yes
GNU_CONFIGURE= yes
USES= autoreconf gmake pathfix
SUB_FILES= pkg-message
SUB_LIST= RUNFILE=${DATADIR}/bash_completion.sh
GH_ACCOUNT= scop
USE_GITHUB= yes
post-patch:
@${REINPLACE_CMD} \
-e '/^profiledir =/ s|(sysconfdir)/profile.d|(prefix)/share/bash-completion|' \
-e 's|\((datadir)/cmake\)|\1/Modules|' \
${WRKSRC}/Makefile.am
post-configure:
@${REINPLACE_CMD} \
-e 's|/etc/ssl/openssl.cnf|${PREFIX}& &|g' \
-e 's|/usr/lib\(/aspell\)|${PREFIX}/share\1|g' \
-e 's|/usr/local|${PREFIX}|g' \
-e 's|/usr/ports|${PORTSDIR}|g' \
-e 's|/usr\(/sbin/postconf\)|${PREFIX}\1|g' \
-e 's|/usr/share/info|&:${PREFIX}/info|g' \
-e 's|/var\(/lib/rpm/macros\)|${PREFIX}\1|g' \
${WRKSRC}/completions/*
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README.md doc/bash_completion.txt doc/bashrc doc/inputrc ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|