# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                oregano
version             0.69.0
categories          gnome science
maintainers         nomaintainer
description         An application for schematic capture and simulation of electrical circuits.
long_description    ${description}

platforms           darwin

homepage            http://oregano.gforge.lug.fi.uba.ar/index.php
master_sites        http://gforge.lug.fi.uba.ar/frs/download.php/86/

checksums           md5     f98abc5c79cc733b49cd07995afc9c1e \
                    sha1    1fd3a7396a596a2f9016dbc682c7d37771148205 \
                    rmd160  ea71522aca807b82f8ce50d598014e518fdd08e7

depends_build       port:scons port:pkgconfig

depends_lib         port:gtk2 port:libglade2 port:libgnomeui port:libxml2 \
                    port:libgnomecanvas port:gtksourceview path:lib/pkgconfig/cairo.pc:cairo

use_configure       no

build.cmd           scons
build.target        PREFIX=${prefix}

destroot.cmd        scons
# Make sure DESTDIR's value has a slash at the end...
destroot.destdir    DESTDIR=${destroot}/
destroot.target     install PREFIX=${prefix} RunUpdateMimeDatabase=no

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
      ${destroot}${prefix}/share/help/${name}
   xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README TODO \
      ${destroot}${prefix}/share/doc/${name}
   eval copy [glob ${worksrcpath}/help/*] \
      ${destroot}${prefix}/share/help/${name}
}

livecheck.type      regex
livecheck.url       http://gforge.lug.fi.uba.ar/frs/?group_id=11
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
