diff options
author | Sergei Kolobov <sergei@FreeBSD.org> | 2005-09-06 12:53:34 +0000 |
---|---|---|
committer | Sergei Kolobov <sergei@FreeBSD.org> | 2005-09-06 12:53:34 +0000 |
commit | 4af6572b3cd98c26834db1f0a83e346a639f790f (patch) | |
tree | a1039362df65d36e4022511471f2918c39fc48fb /shells/zsh | |
parent | bd0b45663171b0093972ffdc8fe9891011326884 (diff) |
Notes
Diffstat (limited to 'shells/zsh')
-rw-r--r-- | shells/zsh/Makefile | 24 | ||||
-rw-r--r-- | shells/zsh/files/extra-patch-bsdtar | 18 |
2 files changed, 36 insertions, 6 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile index 6baff43a57f0..426263888e87 100644 --- a/shells/zsh/Makefile +++ b/shells/zsh/Makefile @@ -26,6 +26,7 @@ PORTNAME= zsh PORTVERSION= 4.2.5 +PORTREVISION= 1 CATEGORIES= shells MASTER_SITES= \ http://archive.progeny.com/zsh/ \ @@ -103,8 +104,21 @@ DOCS= LICENCE META-FAQ README Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ \ Doc/zsh*.html Doc/zsh.dvi Doc/zsh_a4.ps Doc/zsh_us.ps EXAMPLES= zlogin zshenv zshrc +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 503000 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-bsdtar +.endif + post-patch: - ${REINPLACE_CMD} -e 's/link=dynamic/link=either/' ${WRKSRC}/Src/Modules/*.mdd + ${REINPLACE_CMD} -e "s,link=dynamic,link=either," \ + ${WRKSRC}/Src/Modules/*.mdd + ${REINPLACE_CMD} -e "s,/etc/,${LOCALBASE}/etc/," \ + ${WRKSRC}/Functions/MIME/zsh-mime-setup + ${RM} -f ${WRKSRC}/Functions/MIME/zsh-mime-setup.bak +.if ${OSVERSION} >= 503000 + ${RM} -f ${WRKSRC}/Completion/Unix/Type/_tar_archive.orig +.endif post-build: # Fix ".so" macro problem by using "soelim" command. @@ -135,10 +149,8 @@ post-install: .endif @${ECHO_MSG} "Updating /etc/shells" @${CP} /etc/shells /etc/shells.bak - @(${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak \ - | ${GREP} -v ${PREFIX}/bin/rzsh; \ - ${ECHO_CMD} ${PREFIX}/bin/zsh; \ - ${ECHO_CMD} ${PREFIX}/bin/rzsh) > /etc/shells + @(${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak; \ + ${ECHO_CMD} ${PREFIX}/bin/zsh) > /etc/shells @${RM} /etc/shells.bak -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/shells/zsh/files/extra-patch-bsdtar b/shells/zsh/files/extra-patch-bsdtar new file mode 100644 index 000000000000..d33ed3e0bab9 --- /dev/null +++ b/shells/zsh/files/extra-patch-bsdtar @@ -0,0 +1,18 @@ +--- Completion/Unix/Type/_tar_archive Mon Jul 4 17:16:10 2005 ++++ Completion/Unix/Type/_tar_archive Tue Jul 5 20:44:52 2005 +@@ -14,13 +14,8 @@ + _description files expl 'archive file' + + if [[ "$1" = *[urtx]* ]]; then +- if [[ "$1" = *[zZ]* ]]; then +- _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)' +- elif [[ "$1" = *[Ijy]* ]]; then +- _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)' +- else +- _files "$expl[@]" -g '*.(tar|TAR)(-.)' +- fi ++# bsdtar/libarchive handle these automagically ++ _files "$expl[@]" -g '*.((tar|TAR|iso|ISO|cpio).(|(gz|GZ|Z|bz2))|tgz|tbz|jar|zip)(-.)' + else + _files "$expl[@]" + fi |