# -*- 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 92308 2012-04-24 22:36:07Z pixilla@macports.org $

PortSystem 1.0

name                raptor2
version             2.0.7
set major           [lindex [split ${version} .] 0]
description         Raptor RDF Parser Toolkit
long_description    Raptor is an open source C library that provides a set of \
                    parsers and serializers that generate Resource Description \
                    Framework (RDF) triples by parsing syntaxes or serializing \
                    the triples into a syntax.
maintainers         pixilla openmaintainer
license             {LGPL-2.1+ GPL-2+ Apache-2+}
categories          www
platforms           darwin
homepage            http://librdf.org/raptor/
master_sites        http://download.librdf.org/source/

checksums           rmd160  3a52b6dfc8c528be356e308a751f988800c8112b \
                    sha256  d546588f2fc7d1f7c8da7865cec6d9b7d0a95ef6a4393cc9136f3eeb55f28442

depends_lib         port:curl \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:openssl \
                    port:zlib

test.run            yes
test.target         check
livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
