# -*- 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
# $Id$

PortSystem          1.0

name                edbrowse
version             3.4.4
revision        1
categories          www
license             GPL
maintainers         snc email.uc.edu:obrienj
description         A combination editor, browser, and mail client that is \
                    100% text based.
long_description    Edbrowse is a combination editor, browser, and mail client \
                    that is 100% text based.  The interface is similar to \
                    /bin/ed, though there are many more features, such as \
                    editing multiple files simultaneously, and rendering html.\
                    This program was originally written for blind users, but \
                    many sighted users have taken advantage of the unique \
                    scripting capabilities of this program, which can be found \
                    nowhere else.  A batch job, or cron job, can access web \
                    pages on the internet, submit forms, and send email, with \
                    no human intervention whatsoever.  edbrowse can also tap \
                    into databases through odbc.

homepage            http://eklhad.net/edbrowse/

platforms           darwin freebsd
depends_lib         port:pcre \
                    port:spidermonkey \
                    port:curl \
                    port:openssl

master_sites        ${homepage}
use_zip             yes
dist_subdir			${name}-1
checksums           md5     1abe73a484a0b4cd0963cc7e9174c83d \
                    sha1    180ac417442eba5a9fd2f431fde23d25c0526626 \
                    rmd160  d22f14a5dd64dad3ca8d60b4ec3cd0fc234d5bfd

worksrcdir          ${distname}/src

patchfiles          patch-makefile.osx.diff
post-patch {
    reinplace       "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/makefile.osx
    reinplace       "s|@@DESTROOT@@|${destroot}${prefix}|g" ${worksrcpath}/makefile.osx
}

use_configure       no

build.dir           ${worksrcpath}
build.args          -f makefile.osx

destroot.args       -f makefile.osx

livecheck.regex     {(3.[0-9].[0-9])}
livecheck.type      regex