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

name                duck
version             7.8.5.34493
checksums           rmd160  696c1572aadf30e2f39514162a7bb1ab8a716282 \
                    sha256  65ebfde2df81fce63e130ec988a81a7e81c1c76a7ca72426611f52e162abb3ad \
                    size    108484092

categories          net
platforms           darwin

license             GPL-2+
maintainers         {ijackson @JacksonIsaac} openmaintainer

description         CLI for Cyberduck (a multi-protocol file transfer tool)
long_description    The universal file transfer tool 'duck' which runs \
    in your shell on Linux and OS X or your Windows command line prompt. \
    Edit files on remote servers, download, upload and copy between servers \
    with FTP, SFTP or WebDAV plus support for cloud storage Amazon S3 & \
    OpenStack Swift deployments.

homepage            https://duck.sh/
master_sites        https://dist.duck.sh/

use_configure       no

build { }

## Upstream binary seems to be built using libstdc++
#  Port keeps failing on rev-upgrade since it
#  checks if duck is built against libc++ or not.
#  Note: Check and update this when port version updates.
configure.cxx_stdlib \
                    libstdc++

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/libexec/${name}
    file copy ${workpath}/${name}.bundle ${destroot}${prefix}/libexec/${name}
    ln -s ${prefix}/libexec/${name}/${name}.bundle/Contents/MacOS/duck ${destroot}${prefix}/bin/duck
}
