# -*- 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
# $Id: Portfile 102754 2013-02-08 01:38:31Z ryandesign@macports.org $

PortSystem          1.0

name                pangox-compat
version             0.0.2
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          x11
platforms           darwin
maintainers         ryandesign openmaintainer
license             LGPL

description         compatibility library for software needing the old pangox library

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

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

checksums           rmd160  4c1f8f0b23037bdba0eef9a905aa234a7dff78a4 \
                    sha256  552092b3b6c23f47f4beee05495d0f9a153781f62a1c4b7ec53857a37dfce046

depends_build       port:pkgconfig

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

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}
}

livecheck.type      regex
livecheck.url       http://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}/
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
