multiple distfiles and suffixes
Ryan Schmidt
ryandesign at macports.org
Mon Feb 29 15:18:21 PST 2016
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 \
> http://www.dhondt.de/:tagone \
> http://www.netlib.org/linalg/spooles/:tagtwo
>
> 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).
More information about the macports-dev
mailing list