# -*- 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

github.setup        harfbuzz icu-le-hb 2.0.0
revision            1
checksums           rmd160  76aaab71faa635b348babb0b2e70ec91cf3bec46 \
                    sha256  baf1ce8654d6205cb939c3c70ac96f22c2b50ef6e98a9d08607b7957414f791a \
                    size    421450

categories          devel textproc
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT

description         library implementing the ICU Layout Engine (icu-le) API

long_description    ${subport} is a {*}${description} using external HarfBuzz \
                    library for implementation. This is useful as a \
                    compatibility layer to make applications using ICU Layout \
                    Engine to use HarfBuzz without porting them to use the \
                    HarfBuzz API.

github.tarball_from releases

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
                    path:lib/pkgconfig/icu-uc.pc:icu

configure.args      --disable-silent-rules

compiler.cxx_standard \
                    2017

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
                    AUTHORS \
                    COPYING \
                    NEWS \
                    README \
                    ${destroot}${docdir}
}
