extract tar.bz2 and tar.gz
Ryan Schmidt
ryandesign at macports.org
Thu Apr 28 09:31:29 PDT 2011
On Apr 28, 2011, at 11:24, Bradley Giesbrecht wrote:
> Fetching src with .tar.bz2 suffix and patch with .tar.gz suffix.
>
> Do I need to add a custom extract {} stage to my Portfile?
>
> Or is there some use_bzip2:${filename} type mechanism?
I don't believe you need to do anything special. Put "use_bzip2 yes", list your bz2 distfile's name in distname if necessary, and list your patchfiles' names in the patchfiles line; any mixture of uncompressed, gzip-compressed, or bzip2-compressed patchfiles should be fine and MacPorts will handle each of them based on their extension. At least that's how I read the code:
https://trac.macports.org/browser/trunk/base/src/port1.0/portpatch.tcl?rev=78062#L98
More information about the macports-dev
mailing list