spe for Python 2.7? -> getting closure on a patch
Dave Curtis
dave at dave-curtis.com
Mon Mar 26 20:06:47 PDT 2012
On Mar 26, 2012, at 6:21 PM, Ryan Schmidt wrote:
>>
>> If that is what we want, then I have two questions:
>> 1. How do I make a patch conditional on the build variant?
>
> Instead of writing "arch -i386" into the patchfile, write "arch - at ARCH@" into the patchfile. Then add this to the Portfile:
>
> post-patch {
> reinplace "s|@ARCH@|${build_arch}|g" ${worksrcpath}/path/to/the/file
> }
OK, easy enough.
Thanks!
dave
More information about the macports-users
mailing list