# -*- 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

# The author archived this repository, and later deleted all of their
# repositories from GitHub. Some projects, but not this one, were moved to
# https://git.madhouse-project.org/algernon/

name                libmongo-client
version             0.1.8
revision            3
categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer
license             Apache-2

description         alternative C driver for MongoDB

long_description    {*}${description}

homepage            https://web.archive.org/web/20201026131711/https://algernon.github.io/libmongo-client/
master_sites        macports_distfiles
worksrcdir          algernon-libmongo-client-ff423cd
checksums           rmd160  5fd276ef638dec82a2d5317c07d370d8f39e071f \
                    sha256  ab8515de2e9c05520b1c395d5e09864566c88762d4fed3ec711c8c71a6a4178f \
                    size    127635

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/libssl.dylib:openssl

use_autoreconf      yes

configure.args      --disable-silent-rules

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE \
        NEWS \
        README.md \
        ${destroot}${docdir}
}

livecheck.type      none
