# -*- 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

name                quilt
version             0.69
categories          devel
platforms           any
supported_archs     noarch
license             GPL-2
maintainers         {jmr @jmroot} openmaintainer
description         patch management scripts
long_description    Patchwork Quilt is a set of scripts designed to allow you to\
                    manage a series of patches by keeping track of the changes each\
                    patch makes. Patches can be applied, un-applied, refreshed, etc.

homepage            https://savannah.nongnu.org/projects/quilt/

master_sites        savannah
checksums           rmd160 fbafd5ac28d635cf261056df75b3888d61dd1b95 \
                    sha256 555ddffde22da3c86d1caf5a9c1fb8a152ac2b84730437bd39cc08849c9f4852

depends_lib         path:libexec/coreutils/libstdbuf.so:coreutils \
                    port:diffutils \
                    port:gpatch \
                    port:gsed \
                    port:util-linux

patchfiles          patch-Makefile.in-quilt_scripts_backup-files.in-make-stat-configurable.diff

configure.args      --with-diff=${prefix}/bin/gdiff \
                    --with-patch=${prefix}/bin/gpatch \
                    --with-sed=${prefix}/bin/gsed \
                    --with-stat=${prefix}/bin/gstat

destroot.destdir    BUILD_ROOT=${destroot}

livecheck.type      regex
livecheck.url       https://download.savannah.gnu.org/releases/quilt/
livecheck.regex     "${name}-(\[0-9\\.\]+)\\${extract.suffix}"
