source: trunk/dports/net/lftp/Portfile

Last change on this file was 151193, checked in by mps@…, 16 months ago

lftp: update to version 4.7.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- 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
2# $Id: Portfile 151193 2016-08-09 21:26:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                lftp
8version             4.7.3
9categories          net
10platforms           darwin
11maintainers         mps openmaintainer
12license             GPL-3+
13
14description         Sophisticated file transfer program
15long_description    Lftp is a shell-like command line ftp client. It is \
16                    reliable, can retry operations and does reget \
17                    automatically. It can do several transfers \
18                    simultaneously in background. You can start a transfer \
19                    in background and continue browsing the ftp site or \
20                    another one. This all is done in one process. Background \
21                    jobs will be completed in nohup mode if you exit or \
22                    close modem connection. Lftp has reput, mirror, reverse \
23                    mirror among its features.
24
25homepage            http://lftp.yar.ru/
26master_sites        ${homepage}ftp/
27use_xz              yes
28
29checksums           rmd160  3dd882bbd3cde872bee8c573a4586319cd1c289a \
30                    sha256  3b22259cdc4c1a6ae349057d16bda4b4816929e04d223242ab8927bc31a48e7c
31
32depends_build       port:autoconf \
33                    port:automake
34
35depends_lib         port:expat \
36                    port:gettext \
37                    port:libiconv \
38                    port:ncurses \
39                    path:lib/libssl.dylib:openssl \
40                    port:readline \
41                    port:zlib
42
43# look for ncurses first, fix 4.7.x build issues
44patchfiles          patch-configure.diff \
45                    patch-src.diff
46
47configure.args      --with-openssl \
48                    --without-gnutls \
49                    --with-readline=${prefix} \
50                    --enable-nls
51
52pre-patch {
53        # needed for 4.7.x build issues
54        move ${worksrcpath}/src/lftp_rl.c ${worksrcpath}/src/lftp_rl.cc
55}
56
57post-destroot {
58    set docdir ${destroot}${prefix}/share/doc/${name}
59    xinstall -d ${docdir}
60    xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS ChangeLog COPYING FAQ FEATURES \
61        NEWS README README.debug-levels README.modules MIRRORS THANKS TODO \
62        ${docdir}
63    file delete -force "${destroot}${prefix}/lib/charset.alias"
64}
65
66variant tls description {Use GnuTLS instead of OpenSSL} {
67    depends_build-append    port:pkgconfig
68    depends_lib-replace     path:lib/libssl.dylib:openssl port:gnutls
69
70    configure.args-replace  --with-openssl --without-openssl
71    configure.args-replace  --without-gnutls --with-gnutls
72}
73
74livecheck.type      regex
75livecheck.url       ${homepage}
76livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*) released
Note: See TracBrowser for help on using the repository browser.