# -*- 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
PortGroup           cxx11 1.1

name                mesos
version             1.8.0

categories          devel
platforms           darwin
maintainers         {@dgilman gilslotd.com:dgilman} openmaintainer
license             Apache-2
homepage            https://mesos.apache.org/
master_sites        apache:mesos/${version}

description         Apache Mesos abstracts CPU, memory, storage, and other compute resources \
                    away from machines (physical or virtual), enabling fault-tolerant \
                    and elastic distributed systems to easily be built and run effectively.
long_description    ${description}

checksums           rmd160  9b824a8e1a9cc616ea7e1b478fa0483e7ec5b9a8 \
                    sha256  b63f201cf68f5f170e48d8a047c7cfdb23d54cd1c75e76f661cf63d2ce55b634 \
                    size    72442467

configure.args-append --with-svn=${prefix} \
                      --with-apr=${prefix} \
                      --with-sasl=${prefix} \
                      --disable-werror \
                      --disable-python \
                      --disable-java \
                      --disable-maintainer-mode

depends_lib         port:apr-util \
                    port:subversion \
                    port:cyrus-sasl2

use_autoreconf      yes
patchfiles          patch-configureac.patch

build.env           MAVEN_OPTS=-Duser.home=${workpath}/.home

livecheck.type      regex
livecheck.url       https://archive.apache.org/dist/mesos/
livecheck.regex     {(\d+\.\d+\.\d+)/}