# $Id: Portfile 62427 2010-01-07 17:33:45Z jmr@macports.org $

PortSystem 1.0
PortGroup xcode 1.0

name                sshfs-gui
version             1.3
categories          fuse
platforms           macosx
maintainers         eridius
description         OS X GUI for sshfs
long_description    This is an OS X Cocoa GUI on top of sshfs that \
                    makes it easy to set up new sshfs mounts.

homepage            http://code.google.com/p/macfuse/

master_sites        macports
checksums           md5 e7bd5cce586bf9b583f54b46da86b693 \
                    sha1 1aaeeb96f67d882a503809be03eee0e0b411cf5f

worksrcdir          sshfs-gui

patchfiles          patch-AppController.m.diff \
                    patch-sshfs.xcodeproj_project.pbxproj.diff

use_bzip2           yes

depends_run         port:sshfs

xcode.target        sshfs
xcode.configuration Release

post-patch {
    reinplace "s|##PREFIX##|${prefix}|" ${worksrcpath}/AppController.m
}

post-destroot {
    xinstall -d ${destroot}${applications_dir}
    copy ${worksrcpath}/build/UninstalledProducts/sshfs.app ${destroot}${applications_dir}/sshfs.app
}
