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

name                pangox-compat
version             0.0.2
revision            2
checksums           rmd160  4c1f8f0b23037bdba0eef9a905aa234a7dff78a4 \
                    sha256  552092b3b6c23f47f4beee05495d0f9a153781f62a1c4b7ec53857a37dfce046 \
                    size    267396

set branch          [join [lrange [split ${version} .] 0 1] .]
categories          x11
maintainers         {ryandesign @ryandesign} openmaintainer
license             LGPL-2+

description         compatibility library for software needing the old pangox library

long_description    ${name} is a ${description}.

homepage            https://www.pango.org/
master_sites        gnome:sources/${name}/${branch}
use_xz              yes

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         path:lib/pkgconfig/pango.pc:pango \
                    port:xorg-libX11

patchfiles-append   basic-x.c.patch \
                    pango_x_font_class_init.patch \
                    pango_x_font_find_shaper.patch \
                    private-functions.patch

configure.args      --disable-silent-rules

test.run            yes
test.target         check

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

# The upstream project has been archived.
livecheck.type      none