# -*- 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           perl5 1.0
PortGroup           github 1.0

github.setup        so-fancy diff-so-fancy 1.4.14 v
revision            0
checksums           rmd160  7fec4245b2ec4c61d5c9d63ffa52159c2602575b \
                    sha256  98b2eb61c132f411d6005962ca14c3b5c537770bb283eef2c92dfef196f70983 \
                    size    70732

categories          textproc
supported_archs     noarch
platforms           any
license             MIT
maintainers         {ryandesign @ryandesign} openmaintainer

description         good-lookin' diffs

long_description    ${name} strives to make your diffs human readable \
                    instead of machine readable. This helps improve \
                    code quality and helps you spot defects faster.

github.tarball_from releases
master_sites        ${github.master_sites}/${name}?dummy=

extract.mkdir       yes
extract.only
extract.suffix

extract {
    copy ${distpath}/${distfiles} ${worksrcpath}/${name}
}

use_configure       no

perl5.branches      5.34
depends_run-append  port:perl${perl5.major}

post-patch {
    reinplace "s|/usr/bin/env perl|${perl5.bin}|" ${worksrcpath}/${name}
}

build {}

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