PortSystem      1.0

name            erc
version         5.3
categories      irc
license         GPL-3+
maintainers     nomaintainer
platforms       any
supported_archs noarch
description     An irc client for emacs

long_description \
        ERC is a powerful, modular, and extensible Emacs \
        Internet Relay Chat client.

homepage        https://savannah.gnu.org/projects/${name}
master_sites    gnu

checksums       md5     ebe35423994702c982bbbcfacd568add \
                sha1    4dc9b698b9dffbf43771dd8abb4f19ea03ce4e1c \
                rmd160  40c3b2fc28da1d249b7706daa708c588273f7a5e

depends_lib     port:emacs

use_configure   no

destroot.destdir PREFIX=${destroot}${prefix} \
                 INFODIR=${destroot}${prefix}/share/info

post-activate {
    ui_msg "To use erc, add the following to your ~/.emacs file:"
    ui_msg ""
    ui_msg "(add-to-list 'load-path \"${prefix}/share/emacs/site-lisp/erc\")"
    ui_msg "(require 'erc)"
}

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