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

name                qbs

version             1.6.0
categories          devel
platforms           darwin
license             LGPL-2.1
maintainers         openmaintainer \
                    qt.io:jake.petroules
description         Build tool that helps simplify the build process for developing projects across multiple platforms.
long_description    Qbs is a tool that helps simplify the build process for developing projects across multiple platforms.

homepage            https://wiki.qt.io/Qbs
distname            qbs-src-${version}
master_sites        https://download.qt.io/official_releases/qbs/${version}/

checksums           rmd160  4222650eb0c5b11b4dff030183c8450b7b619360 \
                    sha256  ae850e957e4a811a193b02a067321722dd0e5fc50b7c370ec34273c1565e78ab

depends_lib-append  port:qt5-qtscript

configure.post_args QBS_INSTALL_PREFIX=${prefix} \
                    CONFIG+=qbs_disable_rpath \
                    qbs.pro

livecheck.type      regex
livecheck.url       https://download.qt.io/official_releases/qbs/
livecheck.regex     {(\d+(?:\.\d+)+)/}