multiple distfiles and suffixes

Mojca Miklavec mojca at
Tue Mar 1 11:02:21 PST 2016

On 1 March 2016 at 00:18, Ryan Schmidt wrote:
> On Feb 29, 2016, at 1:06 PM, Mark Brethen wrote:
>> I’m working on a portfile that has two distfiles so I set it up as:
>>    master_sites            \
>> \
>>    distfiles               \
>>        ccx_${version}.src.tar.bz2:tagone \
>>        spooles.2.2.tgz:tagtwo
>> I did not find an example in the guide when two different extraction methods (i.e. bzip and gzip) are required. How should this be handled?
> MacPorts assumes all distfiles use the same compression method. When they don't, you have to limit MacPorts' automatic extraction to just one of the types of compression using extract.only to the list the files of that compression type, then write a post-extract block to manually decompress the files of the other compression type(s).

Or implement some new functionality in the core :)

The port could contain either wildcards or lists of files to extract
with different methods. Most cases could be handled based on file
extension anyway (and in such cases developers are forced to specify
file extensions anyway).


More information about the macports-dev mailing list