1 | # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name lftp |
---|
6 | version 4.0.2 |
---|
7 | revision 1 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers gmail.com:yunzheng.hu |
---|
11 | |
---|
12 | description Sophisticated file transfer program |
---|
13 | long_description Lftp is a shell-like command line ftp client. It is \ |
---|
14 | reliable, can retry operations and does reget \ |
---|
15 | automatically. It can do several transfers \ |
---|
16 | simultaneously in background. You can start a transfer \ |
---|
17 | in background and continue browsing the ftp site or \ |
---|
18 | another one. This all is done in one process. Background \ |
---|
19 | jobs will be completed in nohup mode if you exit or \ |
---|
20 | close modem connection. Lftp has reput, mirror, reverse \ |
---|
21 | mirror among its features. |
---|
22 | |
---|
23 | homepage http://lftp.yar.ru/ |
---|
24 | master_sites http://ftp.yars.free.net/pub/source/${name}/ \ |
---|
25 | http://ftp.yars.free.net/pub/source/${name}/old \ |
---|
26 | ftp://ftp.cs.tu-berlin.de/pub/net/ftp/${name}/ |
---|
27 | use_bzip2 yes |
---|
28 | checksums md5 437e657fd6470ef6d23d8a2ff67cc59c \ |
---|
29 | sha1 abef8b229c49638167c4c53131618999adccd692 \ |
---|
30 | rmd160 2321eef85b2f07de249f30bed87b6b6feeb74323 |
---|
31 | |
---|
32 | depends_lib port:expat \ |
---|
33 | port:libiconv \ |
---|
34 | port:ncurses \ |
---|
35 | port:openssl \ |
---|
36 | port:readline |
---|
37 | |
---|
38 | configure.args --with-openssl \ |
---|
39 | --without-gnutls \ |
---|
40 | --disable-nls |
---|
41 | |
---|
42 | pre-configure { |
---|
43 | # look for ncurses first |
---|
44 | reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure |
---|
45 | } |
---|
46 | |
---|
47 | post-destroot { |
---|
48 | set docdir ${destroot}${prefix}/share/doc/${name}-${version} |
---|
49 | xinstall -d ${docdir} |
---|
50 | xinstall -W ${worksrcpath} AUTHORS BUGS ChangeLog COPYING FAQ FEATURES \ |
---|
51 | NEWS README README.debug-levels README.modules MIRRORS THANKS TODO \ |
---|
52 | ${docdir} |
---|
53 | file delete -force "${destroot}${prefix}/lib/charset.alias" |
---|
54 | } |
---|
55 | |
---|
56 | variant tls description {Use GnuTLS instead of OpenSSL} { |
---|
57 | configure.args-append --without-openssl --with-gnutls |
---|
58 | configure.args-delete --with-openssl --without-gnutls |
---|
59 | depends_lib-append port:gnutls |
---|
60 | depends_lib-delete port:openssl |
---|
61 | } |
---|
62 | |
---|
63 | variant nls description {Add internationalization support} { |
---|
64 | configure.args-append --enable-nls |
---|
65 | configure.args-delete --disable-nls |
---|
66 | depends_lib-append port:gettext |
---|
67 | } |
---|
68 | |
---|
69 | livecheck.type regex |
---|
70 | livecheck.url ${homepage} |
---|
71 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) released |
---|