Opened 7 years ago

Last modified 7 years ago

#55936 new enhancement

Support tags and multiple values for dist_subdir

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: Cc:
Port:

Description

Just as MacPorts base supports multiple values for distfiles and master_sites, and allows tags to be used to link a specific distfile with a specific site, it should do so for dist_subdir to allow linking a specific distfile with a specific directory. This will help keep each project's distfiles in the same place and avoid duplicating the same file in multiple directories.

Take for example the mysql57 port. It downloads both a mysql distfile and a boost distfile. We want the mysql distfile to end up in a mysql subdirectory of the distfiles server (and of the user's computer), and the boost distfile to end up in the boost subdirectory. Many other ports are in a similar situation.

Change History (1)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

I spent some time looking into this, and it's a lot more complicated than I anticipated. There are so many places where dist_subdir is used, that are many nested function calls removed from the place where the names of the distfiles are available. I still plan to do this, but it's not the simple change I thought it would be.

Note: See TracTickets for help on using tickets.