Various on qt4-mac
Michael Dickens
michaelld at macports.org
Sat Jun 26 10:34:17 PDT 2010
One last issue I think, on the qt4-* front & then I'll start checking
dependent ports. I've figured out all the 'select' stuff & everything
seems to be working, such that the first installed port (when
'qt4_select -s' returns 'none') sets itself up correctly w/o printing
anything out. Any subsequent installed port I'd like to print out the
standard note about finishing it's install -- so, something long the
lines of:
post-activate {
# If this is the first qt4-* installed, select it.
set current_select [exec ${prefix}/bin/qt4_select -s]
if {${current_select} == "none"} {
system "${prefix}/bin/qt4_select ${name}"
} else {
if {${current_select} != ${name}} {
# Print out the 'select' info.
notes "\
Port ${current_select} is already selected.\n \
To fully complete this installation and make ${name} the default,\n \
please run:\n \
\tsudo qt4_select ${name}"
}
}
}
But the "notes" don't seem to print out. Is this an incorrect usage of
'notes'? Should I be doing the printout in some other way. I'd like
the printout to happen no matter the state of debugging, but only as a
conditional (as above). Thanks! - MLD
More information about the macports-dev
mailing list