diff options
Diffstat (limited to 'shells/bash-completion/Makefile')
-rw-r--r-- | shells/bash-completion/Makefile | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/shells/bash-completion/Makefile b/shells/bash-completion/Makefile index d3444bcc645..d08e7cd0c75 100644 --- a/shells/bash-completion/Makefile +++ b/shells/bash-completion/Makefile @@ -2,11 +2,9 @@ # $FreeBSD$ PORTNAME= bash-completion -PORTVERSION= 2.1 -PORTREVISION= 6 +PORTVERSION= 2.4 PORTEPOCH= 1 CATEGORIES= shells -MASTER_SITES= http://bash-completion.alioth.debian.org/files/ MAINTAINER= adamw@FreeBSD.org COMMENT= Programmable completion library for Bash @@ -15,33 +13,40 @@ LICENSE= GPLv2 RUN_DEPENDS= bash:shells/bash -USE_AUTOTOOLS= aclocal automake +USE_GITHUB= yes +GH_ACCOUNT= scop + +USES= autoreconf gmake pathfix GNU_CONFIGURE= yes -USES= gmake pathfix tar:bzip2 -PATHFIX_MAKEFILEIN= Makefile.am +NO_ARCH= yes SUB_FILES= pkg-message SUB_LIST+= RUNFILE=${DATADIR}/bash_completion.sh -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= CMAKE_MODULES DOCS +OPTIONS_DEFAULT=CMAKE_MODULES +CMAKE_MODULES_DESC= Install bash-completion modules for cmake +OPTIONS_SUB= yes post-patch: - @${REINPLACE_CMD} -e 's|FLAC|&\|flv\|FLV|;' ${WRKSRC}/bash_completion + @${REINPLACE_CMD} -e \ + '/^profiledir =/s|(sysconfdir)/profile.d|(prefix)/share/bash-completion|; \ + s|\((datadir)/cmake\)|\1/Modules|' \ + ${WRKSRC}/Makefile.am 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|/var\(/lib/rpm/macros\)|${PREFIX}\1|g; \ + s|\(/etc/ssl/openssl.cnf\)|${PREFIX}\1 \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: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for i in README doc/bash_completion.txt doc/bashrc doc/inputrc +.for i in CHANGES README.md doc/bash_completion.txt doc/bashrc doc/inputrc ${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR} .endfor |