spf_template code.dogmap.org:gnu &&
prj_u2 prj_capture pkg_maj_min prj_sedarg1 's/^\([^.]*\.[^.]*\).*/\1/' "${spf_version?}" &&
spf_url home 'http://icarus.com/eda/verilog/' &&
spf_url watch 'ftp://ftp.icarus.com/pub/eda/verilog/' &&
spf_url src "ftp://ftp.icarus.com/pub/eda/verilog/v${pkg_maj_min?}/verilog-${spf_version?}.tar.gz" &&
spf_depend code.dogmap.org:bzip2 &&
spf_depend code.dogmap.org:ncurses &&
spf_depend code.dogmap.org:readline &&
spf_depend code.dogmap.org:zlib &&
spf_template_gnu_do_after_install() {
  (
    cd "${spf_path_prefix?}"/bin &&
    for pkg_command in iverilog vvp iverilog-vpi; do
      if test -f "${pkg_command?}"-[0123456789]*; then
        ln -s "${pkg_command?}"-[0123456789]* "${pkg_command?}"
      else :
      fi
    done
  )
} &&
spf_tested_version 0.9.4 &&
spf_tested_version 0.9.3 &&
spf_tested_version 0.9.1 &&
spf_tested_version 0.8.7 &&
spf_tested_version 0.8.6 &&
spf_tested_version 0.8.5 &&
spf_tested_version 0.8.4

