how do I patch a file that is created after configure?

Olaf Foellinger olaf at foellinger.de
Thu Oct 23 22:01:48 PDT 2008


Hi Ryan,

* Ryan Schmidt <ryandesign at macports.org> [24.10.08 06:17]wrote:

> On Oct 23, 2008, at 14:31, Olaf Foellinger wrote:
>
>> libgtkhtml3 doesn't builds here because a generated file does not  
>> work.
>> How do I tell the portfile to configure first and patch then?
>
> The patch phase always precedes the configure phase. So you'll need to 
> run a patch command yourself after configure, like:
>
> post-configure {
> 	system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch- 
> something.diff"
> }

thank you, this worked perfectly.

Gruß Olaf


More information about the macports-users mailing list