# -*- 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 105836 2013-05-07 18:24:22Z adfernandes@macports.org $

PortSystem      1.0

name            eric4
version         4.5.5
revision        2
categories      devel
platforms       darwin
maintainers     nomaintainer
license         GPL-3

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           md5     f864c741dd7d46c35d11b481db307624 \
                    sha1    61a3ca02ec5e8b408a8c1891c6cfd72e38815f9b \
                    rmd160  55c66d58a29069ea7dc293056d3a8aece0d44b09

depends_lib     port:python26 port:py26-pyqt4 port:py26-qscintilla \
                port:py26-pysvn port:py26-rope port:py26-pylint 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"
