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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           xcode 1.0

github.setup        jeromelebel MongoObjCDriver 1.0.6
categories          devel
maintainers         ryandesign openmaintainer

description         framework to connect to a mongodb database

long_description    ${name} is a ${description} with an asynchronous API.

checksums           rmd160  8264c6b2c9e1e0056e0b133827474b8d2695cb3c \
                    sha256  76ab2bb4e01fc4637aa3e0aaa92b1d636ebdbc642a8082ff0565bb3c9d73d116

depends_lib         port:cyrus-sasl2 \
                    port:libbson \
                    port:mongo-c-driver

patchfiles          patch-MongoObjCDriver.xcodeproj-project.pbxproj.diff \
                    patch-Sources-MODClient_utils.m.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/MongoObjCDriver.xcodeproj/project.pbxproj
}

xcode.target        ${name}
xcode.destroot.type framework