# -*- 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                rasqal
version             0.9.33
revision            3
description         Raptor RDF Query Library
long_description    Rasqal is an open source C library that handles Resource \
                    Description Framework (RDF) query syntaxes, query \
                    construction and query execution returning result \
                    bindings. The supported query languages are SPARQL and RDQL.
maintainers         nomaintainer
license             {LGPL-2.1+ GPL-2+ Apache-2+}
categories          www
platforms           darwin
homepage            http://librdf.org/rasqal/
master_sites        http://download.librdf.org/source/

checksums           rmd160  def2b5f5510596a1b2508f19493ecdeed8ef9e47 \
                    sha256  6924c9ac6570bd241a9669f83b467c728a322470bf34f4b2da4f69492ccfd97c

depends_build       port:pkgconfig

depends_lib         port:curl \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:mhash \
                    port:mpfr \
                    path:lib/libssl.dylib:openssl \
                    port:pcre \
                    port:raptor2 \
                    port:zlib

# prevent "-L/lib" from appearing in rasqal.pc
configure.args-append --with-mhash=${prefix}

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