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

name                jove
version             4.16.0.73
revision            0

homepage            https://www.cs.toronto.edu/pub/hugh/jove-dev/
master_sites        ${homepage}

description         Jonathan's Own Version of Emacs

long_description    Jove is a simple text editor in the spirit of GNU emacs, \
                    but somewhat smaller and faster to start up.

categories          editors
maintainers         {khera.org:vivek} openmaintainer
license             Permissive

extract.suffix      .tgz
distname            ${name}${version}

checksums           rmd160  f5c91b392baf5d9c05eda39ac85805e3e8d2002c \
                    sha256  9c9e202607f5972c382098d10b63c815ac01e578f432626c982e6aa65000c630 \
                    size    465214

patchfiles          patch-Makefile.diff \
                    patch-getline.diff

depends_lib         port:ncurses

destroot.destdir    JOVEHOME=${destroot}${prefix}

post-patch {
    reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Makefile
}

livecheck.regex     {jove([0-9.]+)\.tgz}
