spf_template gnu &&
spf_template sourceforge &&
spf_template_sourceforge_pid 97492 &&
spf_depend m4 flags none &&
if test 2.5.4a = "${spf_version?}"
  then spf_srcdir flex-2.5.4
  else spf_cc_ nls
fi &&
spf_template_gnu_do_before_configure() { prj_x2 prj_set LEX :; } &&
spf_template_gnu_do_after_install() {
  mkdir "${sp_path?}"/wrappers &&
  mkdir "${sp_path?}"/wrappers/command &&
  prj_u2 prj_capture pkg_path prj_quote_sh "${sp_path?}" &&
  cat > "${sp_path?}"/wrappers/command/lex <<EOT &&
#!/bin/sh
case \$ZSH_VERSION in '') :;; *) alias -g '\${1+"\$@"}="\$@"';; esac &&
CDPATH= && unset CDPATH

case \$? in 0) :;; *) (exit "\$?");; esac &&
exec ${pkg_path?}/command/flex -l \${1+"\$@"}
EOT
  chmod +x "${sp_path?}"/wrappers/command/lex
} &&
spf_tested_version 2.5.35 && #### causes problems with kbd
spf_tested_version 2.5.34 && #### causes problems building libidl
spf_tested_version 2.5.33 &&
spf_tested_version 2.5.4a

