Ticket #14242: Portfile

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

Modified Portfile to include configure patch, and took maintainer ship of this port. (current nomainter)

Line 
1# $Id: Portfile 31561 2007-11-27 22:42:37Z simon@macports.org $
2
3PortSystem      1.0
4
5name            lftp
6version         3.6.1
7revision        1
8categories      net
9platforms       darwin
10maintainers     yunzheng.hu@gmail.com
11
12description     Sophisticated file transfer program
13long_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
20homepage        http://lftp.yar.ru/
21platforms       darwin
22
23depends_lib     port:expat \
24                port:libiconv \
25                port:ncurses \
26                port:openssl \
27                port:readline
28
29master_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}/
35use_bzip2       yes
36checksums       md5 29e9e44474aa381029d6ae0fb79b2f2b \
37                sha1 1763aecddf353e8f3cea618609c0948d95da9d17 \
38                rmd160 9b92c1cf1af6b14295641e2703fe44b39f9a4aa3
39
40configure.args  --with-openssl \
41                --without-gnutls \
42                --disable-nls
43
44platform 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
50pre-configure {
51    # look for ncurses first
52    reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure
53}
54
55post-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
62variant 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
69variant 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
77livecheck.check regex
78livecheck.url   ${homepage}
79livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) released
80