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

github.setup        ymattw ydiff 1.4.2
github.tarball_from archive
revision            0

description         \
    View colored, incremental diff in workspace or from stdin with side by \
    side and auto pager support

long_description    {*}${description}

categories          textproc python
license             BSD
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  30750fde10141de3596b3630c682fdce2a1d2a93 \
                    sha256  1facb8b9097ce98333b913d163bb1d9d110739d550c978862d847b2a314c2850 \
                    size    2966400

patch {
    foreach _pyfile [glob ${worksrcpath}/*.py] {
        reinplace -E "s|^#!/usr/bin/env python3|#!${python.bin}|" ${_pyfile}
    }
}

python.default_version 312
