Re: multiple distfiles and suffixes
> On Feb 29, 2016, at 5:18 PM, Ryan Schmidtwrote: > > > 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). > Do you mean 'tar -xvzf /path/to/file.tgz’ inside a post-extract block? Mark ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
Re: multiple distfiles and suffixes
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). ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev
multiple distfiles and suffixes
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? Mark ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev