[MacPorts] #50246: CMake PortGroup : generate a file in ${workpath} containing the complete cmake invocation
MacPorts
noreply at macports.org
Fri Jan 8 13:53:58 PST 2016
#50246: CMake PortGroup : generate a file in ${workpath} containing the complete
cmake invocation
--------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
--------------------------+--------------------------------
Comment (by rjvbertin@…):
Here's what I came up with, a small post-configure block to be copied
immediately after the 1st pre-configure block in cmake-1.0.tcl:
{{{
post-configure {
if {![catch {set fd [open
"${workpath}/.macports.${subport}.configure.cmd" "w"]} err]} {
foreach var [array names ::env] {
puts ${fd} "${var}=$::env(${var})"
}
puts ${fd} "[join [lrange [split ${configure.env} " "] 0 end]
"\n"]\n"
puts ${fd} "cd ${worksrcpath}"
puts ${fd} "${configure.cmd} ${configure.pre_args}
${configure.args} ${configure.post_args}"
close ${fd}
unset fd
}
}
}}}
I'll attach a diff of my vs. the current upstream cmake-1.0.tcl (or maybe
I should do that in the ticket about adding a "MacPorts" CMAKE_BUILD_TYPE
...)
--
Ticket URL: <https://trac.macports.org/ticket/50246#comment:10>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list