# -*- 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 92952 2012-05-11 18:43:44Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        marc-lorber oregano 0.72 v
categories          gnome science
maintainers         nomaintainer
license             GPL-2+

description         A graphical software application for schematic capture and simulation of electrical circuits.
long_description    ${description}

platforms           darwin

checksums           rmd160  4ec7bcd08c20bf17e779d6d62da4919f618f75b2 \
                    sha256  7a765fd92b04c9a01e4d74f7580f7b6fe006ae0f4c172869174e5c233ffe38ef

depends_build       port:autoconf \
                    port:automake \
                    port:intltool \
                    port:libtool \
                    port:pkgconfig \
                    port:rarian

depends_lib         port:libgnomeui \
                    port:libgnomecanvas \
                    port:gtksourceview2

patchfiles          patch-autogen.sh.diff \
                    patch-glib-2.32.diff

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh

post-destroot {
    foreach f [glob ${destroot}${prefix}/share/mime/*] {
        if {[file isfile ${f}]} {
            delete ${f}
        }
    }
}
