summaryrefslogtreecommitdiffstats
path: root/shells/zsh/Makefile
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2004-08-24 14:04:39 +0000
committersergei <sergei@FreeBSD.org>2004-08-24 14:04:39 +0000
commit901d5ab0ebcb1c3c26e23bf25fe7d5b582b5eeae (patch)
tree045b0d4e68668cfc978686ff6ae40e4aa0950759 /shells/zsh/Makefile
parent5bcbb624466aaaa5602ed9ea7b05f09b60b586d2 (diff)
downloadFreeBSD-ports-901d5ab0ebcb1c3c26e23bf25fe7d5b582b5eeae.zip
FreeBSD-ports-901d5ab0ebcb1c3c26e23bf25fe7d5b582b5eeae.tar.gz
- Update to 4.2.1 [1]
- Install rzsh - restricted-mode zsh [2] - Fix static version (NOSHARED=yes) build [3] - Utilize INFO macro again Submitted by: osa [1], ceri [2], Dan Nelson <dnelson@allantgroup.com> [3]
Diffstat (limited to 'shells/zsh/Makefile')
-rw-r--r--shells/zsh/Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index 5bf04e8..18d570c 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -25,7 +25,7 @@
# NOTE: does NOT have to be inside ${PREFIX} tree
PORTNAME= zsh
-PORTVERSION= 4.2.0
+PORTVERSION= 4.2.1
CATEGORIES= shells
MASTER_SITES= http://www.zsh.org/zsh/ \
ftp://ftp.zsh.org/zsh/ \
@@ -52,10 +52,11 @@ COMMENT?= The Z shell
ZSH_VER= ${PORTVERSION}
# Conflicts with shells/zsh-devel as it installs files into the same locations
-CONFLICTS= zsh-devel-* zsh-4.1.*
+CONFLICTS= zsh-devel-[0-9]* zsh-4.1.*
USE_BZIP2= yes
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-etcdir=${ZSH_ETCDIR} --with-curses-terminfo \
@@ -92,21 +93,32 @@ MAN1= zsh.1 zshbuiltins.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 \
zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 zshoptions.1 \
zshparam.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 zshall.1
DOCS= LICENCE META-FAQ README Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ \
- Etc/FEATURES Etc/NEWS Etc/completion-style-guide \
+ Etc/completion-style-guide \
Doc/zsh*.html Doc/zsh.dvi Doc/zsh_a4.ps Doc/zsh_us.ps
EXAMPLES= zlogin zshenv zshrc
+post-patch:
+ ${REINPLACE_CMD} -e 's/link=dynamic/link=either/' ${WRKSRC}/Src/Modules/*.mdd
+
post-build:
# Fix ".so" macro problem by using "soelim" command.
${LN} -sf ${WRKSRC}/Doc ${WRKSRC}/man1
${MV} ${WRKSRC}/Doc/zshall.1 ${WRKSRC}/Doc/zshall.1.source
cd ${WRKSRC} && /usr/bin/soelim ${WRKSRC}/Doc/zshall.1.source > \
${WRKSRC}/Doc/zshall.1
+
.if !defined(NOPORTDOCS)
- cd ${WRKSRC}/Doc && makeinfo --no-split zsh.texi
+INFO= zsh
+
+pre-install:
+ @${MKDIR} ${PREFIX}/info
+ makeinfo --no-split --output=${PREFIX}/info/zsh.info \
+ ${WRKSRC}/Doc/zsh.texi
+ install-info ${PREFIX}/info/zsh.info ${PREFIX}/info/dir
.endif
post-install:
+ ${LN} ${PREFIX}/bin/zsh ${PREFIX}/bin/rzsh
${TEST} -d ${ZSH_ETCDIR} || ${MKDIR} ${ZSH_ETCDIR}
${TEST} -d ${ZSH_SITEFNDIR} || ${MKDIR} ${ZSH_SITEFNDIR}
@${MKDIR} ${EXAMPLESDIR}
@@ -114,13 +126,13 @@ post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/Doc/zsh.info ${PREFIX}/info
- @install-info ${PREFIX}/info/zsh.info ${PREFIX}/info/dir
.endif
@${ECHO_MSG} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/zsh) > /etc/shells
+ @(${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
@${RM} /etc/shells.bak
.include <bsd.port.mk>
OpenPOWER on IntegriCloud