# -*- 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                ed
version             1.22.6
revision            0

categories          editors
license             GPL-3+
maintainers         nomaintainer

description         ed is a line-oriented text editor.
long_description    {*}${description} It is used to create, display, modify and \
                    otherwise manipulate text files, both interactively and \
                    via shell scripts. A restricted version of ed, red, can \
                    only edit files in the current directory and cannot \
                    execute shell commands. ed is the standard text editor in \
                    the sense that it is the original editor for Unix, and \
                    thus widely available. For most purposes, however, it is \
                    superseded by full-screen editors such as Emacs.

homepage            https://www.gnu.org/software/ed/
master_sites        gnu

use_lzip            yes

checksums           rmd160  6385324797fdf07ecaef39047511d150cdaed9c4 \
                    sha256  3f33b22135219c39c3c695f7b7171c2567d3e2a17c798c0a90607320cbb268f2 \
                    size    71973

configure.args-append \
                    CC=\"\$CC\" \
                    CPPFLAGS=\"\$CPPFLAGS\" \
                    CFLAGS=\"\$CFLAGS\" \
                    LDFLAGS=\"\$LDFLAGS\"

# argument results int "WARNING: unrecognized option"
configure.universal_args-delete \
                    --disable-dependency-tracking

test.run            yes
test.target         check

destroot.target-append \
                    install-man

livecheck.type      regex
livecheck.url       https://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)+)
