[MacPorts] #58117: Arduino: should fetch files in fetch phase and not in build phase

MacPorts noreply at macports.org
Sun Feb 24 01:02:08 UTC 2019


#58117: Arduino: should fetch files in fetch phase and not in build phase
--------------------------+--------------------
  Reporter:  giansalvo    |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.5.4
Resolution:               |   Keywords:
      Port:  Arduino      |
--------------------------+--------------------

Comment (by giansalvo):

 I found out how to use {{{master_sites-append}}} and {{{distfiles-
 append}}} to fetch several files. I'm attaching the current Portfile.

 The problem now is that Arduino requires to download several files with
 the same filename but with different master_sites and different final
 destinations: for example one file named {{{1.0.6.zip}}} must be fetched
 from
 https://github.com/arduino-libraries/GSM/archive/1.0.6.zip and must be
 moved to {{{.../build/GSM-1.0.6.zip}}}, another file with the same name
 must be fetched from https://github.com/arduino-
 libraries/TFT/archive/1.0.6.zip and goes to {{{.../build/TFT-1.0.6.zip}}}.

 Is there a way to rename files while fetching or to download them into a
 path specific to each file?

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


More information about the macports-tickets mailing list