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

github.setup            HOST-Oman libraqm 0.10.1 v
revision                1
checksums               rmd160  dfaaefaa4da6b753f387af3b3f1079a3e8f7caa7 \
                        sha256  4d76a358358d67c5945684f2f10b3b08fb80e924371bf3ebf8b15cd2e321d05d \
                        size    216576

categories              devel
license                 MIT
maintainers             nomaintainer

github.tarball_from     releases
distname                raqm-${version}
use_xz                  yes

description             A library for complex text layout
long_description        Raqm is a small library that encapsulates the logic for complex\
                        text layout and provides a convenient API. It currently provides\
                        bidirectional text support (using FriBiDi), shaping (using HarfBuzz),\
                        and proper script itemization. As a result, Raqm can support most\
                        writing systems covered by Unicode.

homepage                https://host-oman.github.io/libraqm/

patchfiles-append       patch-darwin-dylib-versions.diff

depends_build-append    port:pkgconfig

depends_lib-append      port:freetype \
                        path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
                        port:fribidi

test.run                yes

variant docs description "Install documentation" {
    depends_build-append  port:gtk-doc
    configure.args-append -Ddocs=true
}
