# -*- 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 100824 2012-12-27 22:27:51Z cal@macports.org $

PortSystem      1.0

name            fribidi
version         0.19.5
categories      textproc
license         LGPL-2.1+
maintainers     cal openmaintainer
platforms       darwin
description     Free Implementation of the Unicode BiDi algorithm

long_description \
    The FriBidi library implements the algorithm described in the \"Unicode \
    Standard Annex #9, The Bidirectional Algorithm\", available at \
    http://www.unicode.org/unicode/reports/tr9/.

homepage        http://fribidi.org/
master_sites    ${homepage}download/
use_bzip2       yes

checksums       sha256  501231e4260f83fccedae1cafe983a7de87082e3f5387e0b283d016f7f4cb428 \
                rmd160  956b82badfbc8d3f82a588493a635090a68f163c

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

livecheck.type  regex
livecheck.url   ${master_sites}?C=M&O=D
livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)*)
