PortSystem  1.0
PortGroup   gnustep 1.0

name        gworkspace
version     0.8.6
platforms   darwin
license     GPL-2+
maintainers nomaintainer
homepage    http://www.gnustep.it/enrico/gworkspace/
description  GNUstep's Workspace Manager.
long_description \
    GWorkspace is a clone of the NeXT workspace manager \
    with some added features as spatial viewing, \
    real-time auditing of the file-system, \
    an advanced database based search system, etc.

depends_lib-append port:system-preferences

master_sites  ${homepage}
checksums     md5 16dc6b077517b60897cc0d057bb803f5

worksrcdir    GWorkspace-${version}

array set gnustep.post_flags {
    DBKit "-lgnustep-base"
    FSNode "-lgnustep-base -lgnustep-gui"
    Inspector "-lgnustep-base -lgnustep-gui \
        -L../FSNode/FSNode.framework/Versions/Current -lFSNode"
    Operation "-lgnustep-base -lgnustep-gui"
}

use_configure yes

post-destroot {
    xinstall -d ${destroot}${prefix}/GNUstep/Local/Applications
    system "cd ${worksrcpath}/Apps_wrappers && cp -R *.app ${destroot}${prefix}/GNUstep/Local/Applications"
}

livecheck.type  regex
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}