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

PortSystem          1.0
PortGroup           github 1.0

github.setup        eribertomota axel 2.11
categories          net www
platforms           darwin
maintainers         nomaintainer
license             {GPL-2+ OpenSSLException}

description         A light Unix download accelerator

long_description    Axel does the same thing any other accelerator does: \
                    it opens more than one HTTP/FTP connection per download and \
                    each connection transfers its own, separate, part of the file. \
                    It may sound weird, but it works very well in practice.

checksums           rmd160  6c57891c2f6657f69603c2cb638ab736c91202c0 \
                    sha256  4cf7c915c166e539c8b280fb64b7820d929b5dc7e09158ebe65c9299aa67fa27

depends_build       port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:gettext \
                    path:lib/libssl.dylib:openssl

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh

post-destroot {
    # https://trac.macports.org/ticket/47688
    xinstall -d ${destroot}${prefix}/share/doc

    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
}