Ticket #36225: qt4-mac-private-headers.patch

File qt4-mac-private-headers.patch, 1.1 KB (added by macports@…, 12 years ago)

Portfile patch

  • Portfile

    old new  
    1212name                qt4-mac
    1313conflicts           qt3 qt3-mac qt4-mac-devel
    1414version             4.8.2
    15 revision            3
     15revision            4
    1616categories          aqua
    1717platforms           macosx
    1818maintainers         michaelld openmaintainer
     
    640640        LICENSE.GPL3 LICENSE.LGPL README \
    641641        ${destroot}${qt_docs_dir}
    642642
     643    # Install private headers needed by QtCreator
     644    foreach {src_dir include_dir} \
     645        {corelib QtCore gui QtGui script QtScript declarative QtDeclarative} {
     646        set dest_dir ${destroot}${qt_includes_dir}/${include_dir}/private
     647        xinstall -m 755 -d ${dest_dir}
     648        set files \
     649            [exec find ${worksrcpath}/src/${src_dir} -type f -name "*_p.h"]
     650        eval xinstall -m 644 [split ${files}] ${dest_dir}
     651    }
     652
    643653    # Move .apps into the applications_dir
    644654    xinstall -m 755 -d ${destroot}${qt_apps_dir}
    645655    foreach app [glob ${destroot}/${qt_bins_dir}/*.app] {