Ticket #11981: icu-3.6_1.diff

File icu-3.6_1.diff, 1.2 KB (added by n.oxyde@…, 17 years ago)
  • Portfile

     
    44
    55name            icu
    66version         3.6
     7revision    1
    78categories      devel
    89platforms       darwin
    910maintainers     n.oxyde@gmail.com
     
    2930worksrcdir      ${name}/source
    3031set docdir  ${prefix}/share/doc/${name}-${version}
    3132
    32 pre-configure {
    33         reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin
    34 }
    3533configure.args  --mandir=${prefix}/share/man \
    3634                --disable-samples
    3735
     36# Fix bug #11981 that prevents ICU from building when upgrading.
     37# The -I default parameter causes utilisation of outdated ICU headers instead of the right ones.
     38# As this port has no dependencies, this trick is safe.
     39configure.cppflags ""
     40
    3841test.run        yes
     42test.target     check
    3943
     44post-patch {
     45        reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin
     46}
     47
    4048post-destroot {
    4149    xinstall -m 0755 -d ${destroot}${docdir}/html
    4250    xinstall -m 0644 -W ${worksrcpath}/.. license.html readme.html ${destroot}${docdir}/html
    43 
    44     delete ${destroot}${prefix}/share/${name}/${version}/license.html
    4551}
    4652
    4753variant doc {