extract tar.bz2 and tar.gz

Ryan Schmidt ryandesign at macports.org
Thu Apr 28 15:26:55 PDT 2011


On Apr 28, 2011, at 12:28, Bradley Giesbrecht wrote:

> On Apr 28, 2011, at 9:34 AM, Ryan Schmidt wrote:
> 
>> Hmm, what I wrote applies to patchfiles -- compressed or uncompressed text files. But you said your patch is a .tar.gz. If that's true, then indeed you'll need something custom. I wouldn't override the extract phase; I'd let MacPorts extract the main distfile as per usual. List the main distfile name in "extract.only" so MacPorts doesn't try to extract the other file. Then write a post-extract block to manually extract the extra .tar.gz file.
> 
> Right, I've done this before. Cool, and thanks.
> 
> There are a number of "patch files" rolled into a tar.gz so I don't know how I would list them in patchfiles.

Right, you wouldn't. patchfiles is for patch files: text files, optionally compressed. It's not for tarballs.




More information about the macports-dev mailing list