# $Id: Portfile 80389 2011-07-11 12:35:06Z jmr@macports.org $

PortSystem  1.0

name            rarian
version         0.8.1
description     OMF help system.
long_description Rarian manages documentation metadata as specified \
                by the Open Source Metadata Framework (OMF) \
                and provides a simple API to allow help browsers to \
                find, sort and search the document catalog. It is \
                designed to be a replacement for scrollkeeper and \
                will also be able to communicate with catalog servers \
                on the Net to search for documents which are not on \
                the local system.
maintainers     nomaintainer
categories      textproc gnome
license         GPL-2+ LGPL-2.1+
platforms       darwin
homepage        http://rarian.freedesktop.org/
master_sites    gnome:sources/rarian/[join [lrange [split ${version} .] 0 1] .]/ \
                ${homepage}Releases/
use_bzip2       yes
checksums       md5 75091185e13da67a0ff4279de1757b94 \
                sha1 9b3f1bad1cdbb0de51d6f74431b20eb3647edc5a \
                rmd160 2e4c0a4d22a4e0c41d4d3dc8e4a5ad080ee3b6ce
depends_build   port:intltool \
                port:getopt
depends_lib     port:libxslt

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "${name}-(\[0-9\\.\]+)\\${extract.suffix}"
