How to do patching in post-configure phase?

Ryan Schmidt ryandesign at macports.org
Thu Nov 10 14:22:56 PST 2011


On Nov 10, 2011, at 15:39, Marko Käning wrote:

> But how do I properly patch if I need to do this in post-configure phase?
> 
> Marko
> 
> P.S.: Actually I just need to remove the last 5 lines of a generated CMakeLists.txt, which I could also do with reinplace. Even better would be a command which would chop off the last five lines...

Something like:

post-configure {
	system -W ${worksrcpath} "patch -p0 < ${filespath}/patch-something.diff"
}




More information about the macports-dev mailing list