# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
#
# Inspired by the Portfile of CocoaDialog

PortSystem    1.0
PortGroup     xcode 1.0

name          SSHKeychain
version       0.8.2
revision      2
categories    aqua sysutils
license       BSD
maintainers   nomaintainer
description   SSHKeychain is a graphical front-end to ssh-add
long_description    \
    SSHKeychain is a graphical front-end to ssh-agent and \
    also allows the creation of ssh tunnels. It automatically \
    loads keys when needed, integrates with Apple Keychain \
    and offers key-management.

homepage      http://sshkeychain.sourceforge.net/
platforms     macosx

# unfortunately there are no tarballs...
fetch.type          git
git.url             git://git.code.sf.net/p/sshkeychain/code
git.branch          3ea5174056396a4edc717c193a57720b9c69a1e5

# needed to prevent helper apps from getting installed
patchfiles    patch-SSHKeychain_xcodeproj__project_pbxproj.diff

xcode.target  ${name}

# The Deployment configuration sets archs, SDKs and deployment targets,
# none of which we want, so use the Default configuration which doesn't
# do any of that and let xcode portgroup variables take effect.
xcode.configuration Default

post-destroot {
    fs-traverse dir ${destroot} {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions u+w
        }
    }
}
