Annotation of /smage/branches/alx07x-unstable/core/wget/wget-1.19.1-r5.smage2
Parent Directory | Revision Log
Revision 14543 -
(hide annotations)
(download)
Tue Aug 4 11:17:12 2020 UTC (3 years, 9 months ago) by niro
File size: 1703 byte(s)
Tue Aug 4 11:17:12 2020 UTC (3 years, 9 months ago) by niro
File size: 1703 byte(s)
-release branches/alx07x-unstable
1 | niro | 14053 | # $Id$ |
2 | |||
3 | PNAME="wget" | ||
4 | PVER="1.19.1" | ||
5 | PBUILD="r5" | ||
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.44 | ||
14 | >= net-dns/libidn-1.33 | ||
15 | >= sys-libs/libuuid-2.35 | ||
16 | >= sys-libs/zlib-1.2.8 | ||
17 | >= app-crypt/ca-certificates-2020" | ||
18 | |||
19 | SDEPEND=">= dev-lang/perl-5.32 | ||
20 | >= dev-util/texinfo-5 | ||
21 | >= dev-libs/openssl-dev-1.1 | ||
22 | >= dev-libs/libpcre-dev-8.44 | ||
23 | >= net-dns/libidn-dev-1.33 | ||
24 | >= sys-libs/libuuid-dev-2.35 | ||
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 | } |