pkgsrc/shells/zsh-current/options.mk

23 lines
545 B
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.2 2007/11/07 09:59:27 bjs Exp $
Re-add development release of Zsh, 4.3.2, first public release of 4.3.x branch. Major changes between versions 4.2 and 4.3 ------------------------------------------ - There is support for multibyte character sets in the line editor, though not the main shell. See Multibyte Character Support in INSTALL. - The shell can now run an installation function for a new user (one with no .zshrc, .zshenv, .zprofile or .zlogin file) without any additional setting up by the administrator. - The manual now has a Roadmap section (manual page zshroadmap) to give new users an indication of the most interesting parts of the manual. - New option PROMPT_SP, on by default, to work around the problem that the line editor can overwrite output with no newline at the end. - New option HIST_SAVE_BY_COPY (on by default): history is saved by copying and renaming instead of directly overwriting. - New redirection syntax e.g. {myfd}>file opens a new file descriptor and stores the number in $myfd, so that >&$myfd will work. Chosen not to break existing code (and to be compatible with proposals for the Korn shell). - Substitutions of the form ${var:-"$@"}, ${var:+"$@"} and similar where word-splitting is applied to the text after the :- or :+ (in particular, where the SH_WORD_SPLIT option is in effect for compatibility) now behave as in other Bourne- and POSIX-compatible shells when in the appropriate emulation mode. - New Posix-style zsh-specific tests [[:IDENT:]], [[:IFS:]], [[:IFSSPACE:]], [[:WORD:]] test if character can appear in identifier, is an IFS character, is an IFS whitespace character, or is considered as part of a word (is alphanumeric or appears in $WORDCHARS). Note the pattern code doesn't yet handle multibyte characters. - The idiom =(<<<...) is optimised so that the shell internally turns the ... into the contents of a file whose name is then substituted. - Supplied functions catch and throw provide limited support for exception handling using the `{ ... } always { ... }' syntax. - Signals now accept the SIG as part of the name for compatibility with other shells. - Editor function argument-base allows non-decimal arguments for editor widgets. - As always, there are many enhancements to completion functions.
2006-03-11 14:20:15 +01:00
PKG_OPTIONS_VAR= PKG_OPTIONS.zsh
PKG_SUPPORTED_OPTIONS= zsh-multibyte
PKG_SUGGESTED_OPTIONS=
.if !defined(ZSH_STATIC)
PKG_SUPPORTED_OPTIONS+= pcre
.endif
Re-add development release of Zsh, 4.3.2, first public release of 4.3.x branch. Major changes between versions 4.2 and 4.3 ------------------------------------------ - There is support for multibyte character sets in the line editor, though not the main shell. See Multibyte Character Support in INSTALL. - The shell can now run an installation function for a new user (one with no .zshrc, .zshenv, .zprofile or .zlogin file) without any additional setting up by the administrator. - The manual now has a Roadmap section (manual page zshroadmap) to give new users an indication of the most interesting parts of the manual. - New option PROMPT_SP, on by default, to work around the problem that the line editor can overwrite output with no newline at the end. - New option HIST_SAVE_BY_COPY (on by default): history is saved by copying and renaming instead of directly overwriting. - New redirection syntax e.g. {myfd}>file opens a new file descriptor and stores the number in $myfd, so that >&$myfd will work. Chosen not to break existing code (and to be compatible with proposals for the Korn shell). - Substitutions of the form ${var:-"$@"}, ${var:+"$@"} and similar where word-splitting is applied to the text after the :- or :+ (in particular, where the SH_WORD_SPLIT option is in effect for compatibility) now behave as in other Bourne- and POSIX-compatible shells when in the appropriate emulation mode. - New Posix-style zsh-specific tests [[:IDENT:]], [[:IFS:]], [[:IFSSPACE:]], [[:WORD:]] test if character can appear in identifier, is an IFS character, is an IFS whitespace character, or is considered as part of a word (is alphanumeric or appears in $WORDCHARS). Note the pattern code doesn't yet handle multibyte characters. - The idiom =(<<<...) is optimised so that the shell internally turns the ... into the contents of a file whose name is then substituted. - Supplied functions catch and throw provide limited support for exception handling using the `{ ... } always { ... }' syntax. - Signals now accept the SIG as part of the name for compatibility with other shells. - Editor function argument-base allows non-decimal arguments for editor widgets. - As always, there are many enhancements to completion functions.
2006-03-11 14:20:15 +01:00
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mzsh-multibyte)
CONFIGURE_ARGS+= --enable-multibyte
.endif
.if !empty(PKG_OPTIONS:Mpcre)
PCRE_CONFIG= ${BUILDLINK_PREFIX.pcre}/bin/pcre-config
CONFIGURE_ARGS+= --with-pcre
CONFIGURE_ENV+= PCRE_CONFIG=${PCRE_CONFIG:Q}
. include "../../devel/pcre/buildlink3.mk"
.endif