# -*- 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                fspclient
version             0.93.1
revision            0
checksums           rmd160  abe08ca9f942e17cda32053a4906caf5997b0603 \
                    sha256  a419870f43eef1d8ab059379e0baddeb6bcc5c8acd26561939fea9be51e75487 \
                    size    69325

categories          net
platforms           darwin
maintainers         nomaintainer
# Quoth the web site: "Source code is copyrighted and uses 2-point BSD-like license which ais also called MIT/X11 License"
license             {BSD MIT}

description         command line client for the fsp protocol

long_description    FSP Client is FTP-like interface for File Service \
                    Protocol. It look exactly like classic FTP does, but uses \
                    different transfer protocol.

homepage            http://fspclient.sourceforge.net/
master_sites        sourceforge:project/fspclient/fspclient/${version}
use_bzip2           yes

depends_build       port:scons

patchfiles          patch-client_util.c

use_configure       no

variant universal {}

build.cmd           ${prefix}/bin/scons
build.target
build.args          CC="${configure.cc} [get_canonical_archflags cc]"
destroot.args  {*}${build.args}
build.args-append   prefix=${prefix}
destroot.destdir    prefix=${destroot}${prefix}

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} doc/FOR.MORE.INFO doc/HISTORY ChangeLog \
        README ${destroot}${prefix}/share/doc/${name}
}

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