# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ PortSystem 1.0 name erc version 5.2 revision 1 categories irc maintainers nomaintainer platforms darwin description An irc client for emacs long_description \ ERC is a powerful, modular, and extensible Emacs \ Internet Relay Chat client. homepage http://savannah.gnu.org/projects/${name} master_sites gnu checksums md5 8ac1cf2c710757c9f89f6b13fd124fd7 \ sha1 ac968db3651a1cb6b1ece871a1ec88f07e19e9be \ rmd160 dbbf33477dac09f71ad8bd1763dd0a371dd54621 post-patch { reinplace "s|/usr/local|${destroot}${prefix}|g" ${worksrcpath}/Makefile reinplace "s|(PREFIX)/info|(PREFIX)/share/info|" ${worksrcpath}/Makefile } depends_build port:emacs depends_run port:emacs use_configure no build {} 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 http://ftp.gnu.org/gnu/${name}/?C=M&O=D livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)?)