source: trunk/dports/net/wget/Portfile

Last change on this file was 154092, checked in by mojca@…, 9 months ago

wget: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 154092 2016-10-20 02:54:05Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6
7name                    wget
8version                 1.18
9revision                1
10categories              net www
11maintainers             ryandesign openmaintainer
12license                 GPL-3+
13homepage                http://www.gnu.org/software/wget/
14platforms               darwin freebsd
15use_parallel_build      yes
16master_sites            gnu
17use_xz                  yes
18
19description \
20    internet file retriever
21
22long_description \
23    GNU Wget is a free software package for retrieving files using HTTP, \
24    HTTPS and FTP, the most widely-used Internet protocols. It is a \
25    non-interactive commandline tool, so it may easily be called from \
26    scripts, cron jobs, terminals without Xsupport, etc.
27
28checksums               rmd160  4fdf9c523b434050eeccfbd14b98c90c591d7ce4 \
29                        sha256  b5b55b75726c04c06fe253daec9329a6f1a3c0c1878e3ea76ebfebc139ea9cc1
30
31configure.args \
32    --without-ssl
33
34# use a specific MacPorts perl version
35# older system perl versions (10.6 and earlier) do not support pod2man --utf8
36# https://trac.macports.org/ticket/50164
37
38set perl_version        5.24
39
40depends_build           bin:makeinfo:texinfo \
41                        port:perl${perl_version} \
42                        port:pkgconfig
43
44depends_lib \
45    port:libidn \
46    port:gettext \
47    port:nettle \
48    port:pcre
49
50patchfiles              nawk.patch \
51                        prefix.patch
52
53configure.perl          ${prefix}/bin/perl${perl_version}
54configure.env-append    POD2MAN=${prefix}/bin/pod2man-${perl_version}
55
56# Ensure libuuid doesn't get used even if the ossp-uuid port is installed.
57configure.args-append       ac_cv_header_uuid_uuid_h=no
58
59# Remove test variant and use depends_test when that becomes available (#38208)
60pre-test {
61    if {![variant_isset test]} {
62        ui_error "To run the tests, you must select the +test variant."
63        return -code error "+test variant not selected"
64    }
65}
66variant test description {Add dependencies needed to run tests} {
67    depends_build-append    port:p${perl_version}-libwww-perl \
68                            port:p${perl_version}-io-socket-ssl
69    test.run                yes
70    test.target             check
71}
72
73variant ssl description {Build with SSL support using GnuTLS} {
74    depends_lib-append      port:gnutls
75    configure.args-delete   --without-ssl
76}
77
78default_variants        +ssl
79
80post-patch {
81    reinplace "s|@PREFIX@|${prefix}|g" \
82        ${worksrcpath}/ChangeLog \
83        ${worksrcpath}/README \
84        ${worksrcpath}/NEWS \
85        ${worksrcpath}/doc/sample.wgetrc \
86        ${worksrcpath}/doc/wget.texi
87}
88
89post-destroot {
90    # Install documentation.
91    set docdir ${destroot}${prefix}/share/doc/${name}
92    xinstall -d ${docdir}
93    xinstall -W ${worksrcpath} -m 0644 AUTHORS COPYING ChangeLog MAILING-LIST NEWS README ${docdir}
94   
95    # Rename sample wgetrc file so we don't clobber a user's real config file on upgrade.
96    move ${destroot}${prefix}/etc/wgetrc ${destroot}${prefix}/etc/wgetrc.sample
97}
98
99notes "
100To customize wget, you can copy ${prefix}/etc/wgetrc.sample to\
101${prefix}/etc/wgetrc and then make changes.
102"
Note: See TracBrowser for help on using the repository browser.