# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           makefile 1.0

github.setup        JuliaStrings utf8proc 2.11.0 v
github.tarball_from archive
revision            0
name                libutf8proc
categories          textproc
license             MIT
maintainers         {judaew @judaew} openmaintainer
description         library for processing UTF-8 encoded Unicode strings
long_description    {*}${description}

homepage            https://julialang.org/utf8proc/

checksums           rmd160  41bb393117e1d12bd3844acb1aaf578ffdc06a4e \
                    sha256  c24379b5fa0a429a1f9a3fc23b44a75f2b141a34c09146a529a55d20a5808070 \
                    size    201577

patchfiles          remove-Wsign-conversion.diff

makefile.prefix_name \
                    prefix

makefile.override-append \
                    PREFIX

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE.md \
        README.md \
        NEWS.md \
        ${docdir}
}

depends_test        bin:curl:curl
test.run            yes
test.target         check
