# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        xcpretty xcpretty 0.3.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          devel
platforms           any
license             MIT
maintainers         nomaintainer
supported_archs     noarch

description         Flexible and fast xcodebuild formatter
long_description    {*}${description}

checksums           rmd160  7381aab67c8bf750e219d185b7e4873261cfe876 \
                    sha256  59da684e6703e1f545d916f780245e83714716865074fa0e600b8a3d6baa7ace \
                    size    440335

patchfiles-append   patch-libpath.diff

# This should use MacPorts ruby and not the system ruby.
# rouge is a dependency but it appears to work OK w/o it
# https://github.com/rouge-ruby/rouge
use_configure       no
build {}

destroot {
    set dpath ${destroot}${prefix}/libexec/${name}
    xinstall -d -m 755 $dpath

    copy ${worksrcpath}/lib $dpath/lib
    copy ${worksrcpath}/assets $dpath/assets

    copy ${worksrcpath}/bin/${name} ${destroot}${prefix}/bin
}
