Subtleties of Modifying post-configure

Steven Smith steve.t.smith at gmail.com
Mon Mar 15 00:58:32 UTC 2021


I need to run some post-configure steps in a cmake Portfile.

I’m running into two these issues:

Issue 1:

cmake already has some post-configure code. How do I add stuff to whatever cmake already has? Not post-configure-append, I see. Not {*}${post-configure}. I don’t know enough of the guts of MacPorts tcl to know which approach should be used. 

Issue 2:

If I change post-configure in an `if` block, the change doesn’t hold. Why doesn’t this work?

post-configure {
     awesome_tcl_proc
}

if {${name} eq ${subport}} {
    # don’t run awesome tcl proc
    post-configure {}
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210314/18220fef/attachment.bin>


More information about the macports-dev mailing list