# -*- 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 92697 2012-05-04 06:10:59Z ryandesign@macports.org $

PortSystem 1.0

name                geda-gaf
version             1.6.2
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     35ae86aebc174ec1fc03863fde4c843c \
                    sha1    87c21b3b77eebc8eec1c16672d4b1ab418ccb80d \
                    rmd160  4e32ba11188b9a2849036299b972c35481cb975e

depends_build       port:pkgconfig
depends_lib         port:gtk2 \
                    port:guile

patchfiles          patch-glib-2.32.diff

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    }
}

