Ticket #11941: icu-3.6_0.diff

File icu-3.6_0.diff, 2.7 KB (added by n.oxyde@…, 17 years ago)
  • devel/icu/Portfile

    old new  
    33PortSystem 1.0
    44
    55name            icu
    6 version         3.4.1
     6version         3.6
    77categories      devel
    88platforms       darwin
    9 maintainers     nomaintainer@macports.org
     9maintainers     n.oxyde@gmail.com
    1010description     International Components for Unicode
    1111long_description        The International Components for Unicode (ICU) libraries provide robust  and full-featured Unicode services on a wide variety of platforms. ICU  supports the most current version of the Unicode standard, and they provide  support for supplementary Unicode characters (needed for GB 18030  repertoire support).
    12 homepage        http://ibm.com/software/globalization/icu/
    13 master_sites    ftp://ftp.software.ibm.com/software/globalization/icu/${version}/
    14 checksums       md5 2a16f58bcb26e5010c946dca9ec08d5f
     12homepage        http://www.icu-project.org/
     13master_sites    ftp://ftp.software.ibm.com/software/globalization/${name}/${version}/ \
     14                sourceforge
     15
     16distname        icu4c-[strsed ${version} {/\./_/}]
    1517extract.suffix  .tgz
     18distfiles       [suffix ${distname}-src]
     19
     20checksums       [suffix ${distname}-src] \
     21                    md5 6243f7a19e03e05403ce84e597510d4c \
     22                    sha1 b580c2802e74eb6af7e5e19b05c7d7c5d8c623f9 \
     23                    rmd160 b227ac9ff6019362bc4d01c18433869b0e0ff1c2 \
     24                ${distname}-docs.zip \
     25                    md5 d4219dc37c584bc700a60252bf1fc71e \
     26                    sha1 fd724a90a0ebda5369d50c64b6be3779e65cdf1b \
     27                    rmd160 27d66bd6a6befbf64e3d26cf7bc6897fde05c907
     28
    1629worksrcdir      ${name}/source
     30set docdir  ${prefix}/share/doc/${name}-${version}
    1731
    1832pre-configure {
    1933        reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin
    2034}
    21 configure.args  --mandir=${prefix}/share/man
     35configure.args  --mandir=${prefix}/share/man \
     36                --disable-samples
     37
     38test.run        yes
     39
     40post-destroot {
     41    xinstall -m 0755 -d ${destroot}${docdir}/html
     42    xinstall -m 0644 -W ${worksrcpath}/.. license.html readme.html ${destroot}${docdir}/html
     43
     44    delete ${destroot}${prefix}/share/${name}/${version}/license.html
     45}
     46
     47variant doc {
     48    extract.only        [suffix ${distname}-src]
     49    distfiles-append    ${distname}-docs.zip
     50
     51    post-extract {
     52        system "unzip -q ${distpath}/${distname}-docs.zip -d ${workpath}/doc"
     53    }
     54
     55    post-destroot {
     56        eval xinstall -m 0644 [glob ${workpath}/doc/*.{css,gif,html,png}] ${destroot}${docdir}/html
     57    }
     58}
    2259
    2360platform darwin 8 {
    2461        configure.env   CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    2562}
    2663
     64livecheck.distname  ICU4C