# -*- 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: Portfile 55516 2009-08-12 14:16:18Z snc@macports.org $

PortSystem      1.0

name            ecb
version         2.32
revision        1
categories      editors
platforms       darwin
maintainers     nox
description     Emacs Code Browser

long_description \
    While Emacs already has good editing support for many modes, \
    its browsing support is somewhat lacking. That's where ECB comes \
    in: it displays a number of informational windows that allow for \
    easy source code navigation and overview.

homepage        http://ecb.sourceforge.net/
master_sites    sourceforge

checksums       md5 565b245f9e49e941214db256cf2b8e23 \
                sha1 f396adbe2079ee8a314912f9920d4e4c363bc7e3 \
                rmd160 e5361142bfc211a6389400536c034a32ae1998ec

depends_build   port:emacs port:cedet-devel
depends_run     port:emacs port:cedet-devel

use_configure   no

build.args      CEDET=

destroot {
    set lispdir ${prefix}/share/emacs/site-lisp
    eval xinstall -d ${destroot}${lispdir}
    eval xinstall -m 0644 [glob -directory ${worksrcpath} *.el *.elc] \
        ${destroot}${lispdir}

    foreach {dir} {ecb-images info-help} {
        copy ${worksrcpath}/${dir} ${destroot}${lispdir}
    }
}

universal_variant   no

livecheck.regex "<title>${name} ${name}-(.*) released.*</title>"

