# -*- 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.29
revision            1
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         pixilla openmaintainer
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  50f8c44966a43648dbfed3ab96c3a5033880763f \
                    sha256  8b218dc51b77b99f33103a9251218a4439748f73ee30fa8ee549ab6d150e7c53

depends_build       port:pkgconfig

depends_lib         port:curl \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:mhash \
                    port:mpfr \
                    path:lib/libssl.dylib:openssl \
                    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}"