# -*- 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                joe
conflicts           ${name} ${name}37
conflicts-delete    ${subport}
version             4.8
revision            0
checksums           rmd160  98e614ade14177cf45832f4c03aabf56baffc4a7 \
                    sha256  6995b28ee20dcdbbcb5a45a4c110642dc96d67748aea27450c74cdb4dd07cc20 \
                    size    1973683

subport ${name}37 {
    version         3.7
    revision        0
    checksums       rmd160  7e2c72a750c6aac4732cf4369bceee5333460f15 \
                    sha256  cae456e1ad5a8c1d3c94920a3416c2347277739b260e3494d3bc0f2b9b73106f \
                    size    696036
}

categories          editors
license             GPL-2
platforms           darwin freebsd
maintainers         @oakimov \
                    openmaintainer

description         Joe's Own Editor
long_description    JOE is the professional freeware ASCII text screen editor for UNIX. \
            It makes full use of the power and versatility of UNIX, but lacks the steep \
            learning curve and basic nonsense you have to deal with in every other UNIX \
            editor. JOE has the feel of most IBM PC text editors: The key-sequences are \
            reminiscent of WordStar and Turbo-C.  JOE is much more powerful than those \
            editors, however.  JOE has all of the features a UNIX user should expect: \
            full use of termcap/terminfo, excellent screen update optimizations (JOE is \
            fully useable at 2400 baud), simple installation, and all of the \
            UNIX-integration features of VI.

homepage            https://sourceforge.net/projects/joe-editor/
master_sites        sourceforge:project/joe-editor/JOE%20sources/joe-${version}

# fix sed-related build failures on Mountain Lion; see #35421
build.env           LANG=C

if {${subport} eq ${name}} {
    livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
} else {
    patchfiles      implicit-${version}.patch

    livecheck.type  none
}
