Ticket #22145: Portfile

File Portfile, 2.7 KB (added by yunzheng.hu@…, 15 years ago)

Updated Portfile for lftp 4.0.2

Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                lftp
6version             4.0.2
7revision            1
8categories          net
9platforms           darwin
10maintainers         gmail.com:yunzheng.hu
11
12description         Sophisticated file transfer program
13long_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
23homepage            http://lftp.yar.ru/
24master_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}/
27use_bzip2           yes
28checksums           md5 437e657fd6470ef6d23d8a2ff67cc59c \
29                    sha1 abef8b229c49638167c4c53131618999adccd692 \
30                    rmd160 2321eef85b2f07de249f30bed87b6b6feeb74323
31
32depends_lib         port:expat \
33                    port:libiconv \
34                    port:ncurses \
35                    port:openssl \
36                    port:readline
37
38configure.args      --with-openssl \
39                    --without-gnutls \
40                    --disable-nls
41
42pre-configure {
43    # look for ncurses first
44    reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure
45}
46
47post-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
56variant 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
63variant 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
69livecheck.type      regex
70livecheck.url       ${homepage}
71livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*) released