Ticket #22779: libutf8proc2.diff

File libutf8proc2.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

revised patch that also respects build_arch and enables universal variant

  • Portfile

     
    33PortSystem 1.0
    44
    55name                    libutf8proc
    6 version                 1.1.3
     6version                 1.1.5
    77categories              textproc
    88platforms               darwin
    99maintainers             mww
    1010description             library for processing UTF-8 encoded Unicode strings
    1111long_description        ${description}
    1212
    13 homepage                http://www.flexiguided.de/publications.utf8proc.en.html
    14 master_sites    http://www.flexiguided.de/pub/
     13homepage                http://www.public-software-group.org/utf8proc
     14master_sites    http://www.public-software-group.org/pub/projects/utf8proc/v${version}
    1515distname                utf8proc-v${version}
    16 checksums           md5     6c7aef2cecfc7c38d5576f34a0ecb5a6 \
    17                     sha1    52b256f8834dc868d35eef6211ea5a7d6438b902 \
    18                     rmd160  4742b96c2920908a7e6f8c59ae7237da697a72b5
    19 
    20 worksrcdir              utf8proc
     16checksums               md5     b211c133f2ab52342e366eec0feb318a \
     17                                sha1    1ce2bd02f28184ed5908399fe0791e19cd15b9cf \
     18                                rmd160  99f340fe6c325f5b1f1d47e28bc699be916823e6
    2119
    2220use_configure   no
    2321
     
    2523build.target    libutf8proc.a libutf8proc.dylib
    2624build.args-append       CC=${configure.cc}
    2725
     26variant universal {
     27        configure.cflags-append ${configure.universal_cflags}
     28}
     29if {![variant_isset universal] && ${build_arch} != ""} {
     30        configure.cflags-append ${configure.cc_archflags}
     31}
     32
     33pre-build {
     34        build.args-append       CFLAGS="[join ${configure.cflags}]"
     35}
     36
    2837destroot {
    2938        xinstall -m 755 -W ${worksrcpath} \
    3039                libutf8proc.dylib libutf8proc.a \
    3140                ${destroot}${prefix}/lib/
    3241        xinstall -m 644 ${worksrcpath}/utf8proc.h \
    3342                ${destroot}${prefix}/include
     43        set docdir ${destroot}${prefix}/share/doc/${name}
     44        xinstall -d ${docdir}
     45        xinstall -m 644 -W ${worksrcpath} \
     46                Changelog \
     47                LICENSE \
     48                README \
     49                ${docdir}
    3450}
    3551
    3652livecheck.type  regex