# -*- 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.68
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 128ba00607a53ab9ca1c2410b62bc9a72c461adb \
                    sha256 fe8c09de03c106e85b3737c8f03ade147c956b79ed7af485a1c8a3858db38426

depends_lib         path:bin/gcp: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}"