diff options
Diffstat (limited to 'shells/bash-completion-classic/Makefile')
-rw-r--r-- | shells/bash-completion-classic/Makefile | 47 |
1 files changed, 18 insertions, 29 deletions
diff --git a/shells/bash-completion-classic/Makefile b/shells/bash-completion-classic/Makefile index 566429633c1..6fffcfb6690 100644 --- a/shells/bash-completion-classic/Makefile +++ b/shells/bash-completion-classic/Makefile @@ -5,47 +5,36 @@ # $FreeBSD$ # -PORTNAME= bash-completion -PORTVERSION= 20060301 -PORTREVISION= 3 -CATEGORIES= shells -MASTER_SITES= http://www.caliban.org/files/bash/ +PORTNAME= bash-completion +PORTVERSION= 1.2 +PORTEPOCH= 1 +CATEGORIES= shells +MASTER_SITES= http://bash-completion.alioth.debian.org/files/ -MAINTAINER= kirk@strauser.com -COMMENT= Programmable completion library for Bash 2.04 and up +MAINTAINER= adamw@FreeBSD.org +COMMENT= Programmable completion library for Bash -WRKSRC= ${WRKDIR}/bash_completion -NO_BUILD= yes - -SUB_FILES= pkg-message -PLIST_FILES= etc/bash_completion - -OPTIONS= GSED "Use GNU sed to enable additional completions" off - -.include <bsd.port.pre.mk> +USE_BZIP2= yes +SUB_FILES= pkg-message RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash -.if defined(WITH_GSED) -RUN_DEPENDS+= gsed:${PORTSDIR}/textproc/gsed -.endif +GNU_CONFIGURE= yes post-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \ + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g; \ s|/etc/bash_completion|${PREFIX}&|g; \ - s|/usr\(/sbin/postconf\)|${LOCALBASE}\1|g; \ - s|/usr\(/lib/rpm/macros\)|${LOCALBASE}\1|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\)|${LOCALBASE}/share\1|g; \ - s|/usr/share/info|&:${LOCALBASE}/info|g; \ + s|/usr/lib\(/aspell\)|${PREFIX}/share\1|g; \ + s|/usr/share/info|&:${PREFIX}/info|g; \ + s|\$$(sysconfdir)/profile.d|${PREFIX}/bin|g; \ s|\(FLAC\)|\1\|flv\|FLV|' \ - ${WRKSRC}/bash_completion - -do-install: - ${INSTALL_DATA} ${WRKSRC}/bash_completion ${PREFIX}/etc + ${WRKSRC}/bash_completion ${WRKSRC}/Makefile.in ${WRKSRC}/contrib/* post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |