Contents of /smage/trunk/core/wget/wget-1.19.1-r4.smage2
Parent Directory | Revision Log
Revision 12073 -
(show annotations)
(download)
Wed Aug 22 10:04:49 2018 UTC (6 years, 1 month ago) by niro
File size: 1703 byte(s)
Wed Aug 22 10:04:49 2018 UTC (6 years, 1 month ago) by niro
File size: 1703 byte(s)
-libidn-1.33 rebuild to honor ica-client
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.41 |
14 | >= net-dns/libidn-1.33 |
15 | >= sys-libs/libuuid-2.30 |
16 | >= sys-libs/zlib-1.2.8 |
17 | >= app-crypt/ca-certificates-2017" |
18 | |
19 | SDEPEND=">= dev-lang/perl-5.26 |
20 | >= dev-util/texinfo-5 |
21 | >= dev-libs/openssl-dev-1.1 |
22 | >= dev-libs/libpcre-dev-8.41 |
23 | >= net-dns/libidn-dev-1.33 |
24 | >= sys-libs/libuuid-dev-2.30 |
25 | >= sys-libs/zlib-dev-1.2.8" |
26 | |
27 | if mqueryfeature "check" |
28 | then |
29 | SDEPEND+=" |
30 | >= dev-lang/python3-3.4 |
31 | >= dev-perl/io-socket-ssl-2 |
32 | >= dev-perl/http-daemon-6 |
33 | >= virtual/sed" |
34 | fi |
35 | |
36 | PROVIDE="virtual/wget" |
37 | |
38 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
39 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
40 | |
41 | ALX_PKG_KEEP="etc/wgetrc usr/bin/wget" |
42 | |
43 | # i686 unit test fails |
44 | msetfeature "!check" |
45 | sminclude mbuild alx-split |
46 | |
47 | SRC_URI=( |
48 | gnu://${PNAME}/${SRCFILE} |
49 | mirror://${PNAME}/${SRCFILE} |
50 | ) |
51 | |
52 | #UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz" |
53 | UP2DATE="updatecmd_gnu ${PNAME} xz" |
54 | |
55 | src_prepare() |
56 | { |
57 | munpack ${SRCFILE} || die |
58 | cd ${SRCDIR} |
59 | |
60 | # enable passive mode by default |
61 | sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die |
62 | |
63 | # use system ca-certificates |
64 | cat >> doc/sample.wgetrc <<EOF |
65 | |
66 | # default root certs location |
67 | ca_certificate=/etc/ssl/certs/ca-certificates.crt |
68 | EOF |
69 | } |
70 | |
71 | src_compile() |
72 | { |
73 | cd ${SRCDIR} |
74 | # force use openssl not gnutls |
75 | mconfigure --with-ssl=openssl || die |
76 | mmake || die |
77 | } |
78 | |
79 | src_check() |
80 | { |
81 | cd ${SRCDIR} |
82 | |
83 | # honor proxy settings |
84 | http_proxy="" https_proxy="" \ |
85 | ftp_proxy="" ftps_proxy="" \ |
86 | make -k check || die |
87 | } |