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