# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 66920 2010-04-25 23:06:47Z adfernandes@macports.org $

PortSystem      1.0

name            eric4
version         4.4.3
categories      devel
platforms       darwin
maintainers     adfernandes openmaintainer
description     Eric is a full featured Python and Ruby editor and IDE, written in python

long_description \
    Eric is a full featured Python and Ruby editor and IDE, written in python. \
    It is based on the cross platform Qt gui toolkit, integrating the highly  \
    flexible Scintilla editor control. It is designed to be usable as everdays' \
    quick and dirty editor as well as being usable as a professional project \
    management tool integrating many advanced features Python offers the \
    professional coder.

homepage        http://eric-ide.python-projects.org/index.html
master_sites    sourceforge:project/eric-ide/${name}/stable/${version}/

checksums       sha1 7506e9d0146a072d69bf754ca31d2e55bdd41267

depends_lib     port:python26 port:qt4-mac port:py26-pyqt4 port:py26-qscintilla \
                port:py26-svn port:py26-rope port:py26-lint port:py26-cx_Freeze port:py26-enchant

use_configure   no

build {
    # Building and installing are synonymous
}

destroot {
    system "cd '${worksrcpath}'; ${prefix}/bin/python2.6 install.py -b '${prefix}/bin' -i '${destroot}'"
}

livecheck.type  regex
livecheck.url   http://eric-ide.python-projects.org/eric-news.html
livecheck.regex "eric4 (\\d+\\.\\d+\\.\\d+) has been released"
