[MacPorts] #55440: libpsl: download data files in fetch phase, not in post-extract

MacPorts noreply at macports.org
Mon Dec 4 11:57:14 UTC 2017


#55440: libpsl: download data files in fetch phase, not in post-extract
--------------------------+---------------------------------------
  Reporter:  Schamschula  |      Owner:  dbevans
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  tiger leopard snowleopard
      Port:  libpsl       |
--------------------------+---------------------------------------

Comment (by svensen):

 I did some modifications to the Portfile:

 {{{
 # set psl_data_url        https://github.com/publicsuffix/list/archive
 set psl_data_url        https://codeload.github.com/publicsuffix/list/zip

 post-extract {
     system "/usr/bin/curl -s -k -o \"${psl_data_dir}/${psl_data_archive}\"
 \"${psl_data_url}/${psl_data_commit}\""
 #    curl fetch ${psl_data_url}/${psl_data_archive}
 ${psl_data_dir}/${psl_data_archive}

 }}}

 There might be a more appropriate fix. However, this works for me.

--
Ticket URL: <https://trac.macports.org/ticket/55440#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list