# -*- 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

PortSystem 1.0
PortGroup xcode 1.0

name                sshfs-gui
version             1.3
categories          fuse
license             Apache-2
platforms           macosx
maintainers         nomaintainer
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            https://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

xcode.destroot.settings SKIP_INSTALL=NO

# sshfs is -universal
universal_variant no

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

post-destroot {
    delete ${destroot}${applications_dir}/askpass
}
