Contents of /trunk/core/wget/wget-1.19.1-r4.smage2
Parent Directory | Revision Log
Revision 31218 -
(show annotations)
(download)
Wed Jun 13 07:04:44 2018 UTC (6 years, 3 months ago) by niro
File size: 1411 byte(s)
Wed Jun 13 07:04:44 2018 UTC (6 years, 3 months ago) by niro
File size: 1411 byte(s)
-rebuild for libidn soname change
1 | # $Id$ |
2 | |
3 | PNAME="wget" |
4 | PVER="1.19.1" |
5 | PBUILD="r4" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="A useful utility for non-interactive downloading of files from the web." |
10 | HOMEPAGE="http://wget.sunsite.dk/" |
11 | |
12 | DEPEND=">= dev-libs/openssl-1.1 |
13 | >= dev-libs/libpcre-8.42 |
14 | >= net-dns/libidn-1.35 |
15 | >= sys-libs/libuuid-2.32 |
16 | >= sys-libs/zlib-1.2.8 |
17 | >= app-crypt/ca-certificates-2018" |
18 | |
19 | SDEPEND=">= dev-lang/perl-5.26 |
20 | >= dev-util/texinfo-5" |
21 | |
22 | if mqueryfeature "check" |
23 | then |
24 | SDEPEND+=" |
25 | >= dev-lang/python3-3.6 |
26 | >= dev-perl/perl-io-socket-ssl-2 |
27 | >= dev-perl/perl-http-daemon-6 |
28 | >= virtual/sed" |
29 | fi |
30 | |
31 | PROVIDE="virtual/wget" |
32 | |
33 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
35 | |
36 | # i686 unit test fails |
37 | msetfeature "!check" |
38 | sminclude mbuild |
39 | |
40 | SRC_URI=( |
41 | gnu://${PNAME}/${SRCFILE} |
42 | mirror://${PNAME}/${SRCFILE} |
43 | ) |
44 | |
45 | UP2DATE="updatecmd_gnu ${PNAME} xz" |
46 | |
47 | src_prepare() |
48 | { |
49 | munpack ${SRCFILE} || die |
50 | cd ${SRCDIR} |
51 | |
52 | # enable passive mode by default |
53 | sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die |
54 | |
55 | # use system ca-certificates |
56 | cat >> doc/sample.wgetrc <<EOF |
57 | |
58 | # default root certs location |
59 | ca_certificate=/etc/ssl/certs/ca-certificates.crt |
60 | EOF |
61 | } |
62 | |
63 | src_compile() |
64 | { |
65 | cd ${SRCDIR} |
66 | # force use openssl not gnutls |
67 | mconfigure --with-ssl=openssl || die |
68 | mmake || die |
69 | } |
70 | |
71 | src_check() |
72 | { |
73 | cd ${SRCDIR} |
74 | |
75 | # honor proxy settings |
76 | http_proxy="" https_proxy="" \ |
77 | ftp_proxy="" ftps_proxy="" \ |
78 | make -k check || die |
79 | } |