# $Id: Portfile 67343 2010-05-06 11:07:52Z and.damore@macports.org $

PortSystem 1.0

name                geda-gaf
version             1.6.1
revision            0
platforms           darwin
categories          science electronics
maintainers         emer.net:emer
description         GEDA EDA Suite
long_description    The gEDA project has produced and continues working on a \
                    full GPL'd suite and toolkit of Electronic Design Automation \
                    tools. These tools are used for electrical circuit design, \
                    schematic capture, simulation, prototyping, and production.

homepage            http://geda.seul.org
master_sites        http://geda.seul.org/release/v1.6/${version}

checksums           md5     c0049dd86c2ca3177bf3bafce85d6edd \
                    sha1    54f706f8ecb3638b0384c5428ef6089237847b6e \
                    rmd160  7274c898985fe097b0cfb87bd9910961e14d1150

depends_lib         port:gtk2 \
                    port:guile

configure.args-append   --disable-update-xdg-database

destroot.destdir    DESTDIR=${destroot}/

variant enable_xdg description {enable XDG database update} {
    depends_lib-append      port:desktop-file-utils
    configure.args-delete   --disable-update-xdg-database
    
    post-destroot {
        file delete ${destroot}${prefix}/share/applications/mimeinfo.cache
        file delete ${destroot}${prefix}/share/mime/XMLnamespaces
    }
    post-activate {
        system ${prefix}/bin/update-desktop-database    }
}

