Magellan Linux

Contents of /trunk/core/wget/wget-1.17-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27120 - (show annotations) (download)
Mon Nov 16 10:46:23 2015 UTC (8 years, 7 months ago) by niro
File size: 1508 byte(s)
auto added: ver bump to 1.17-r4
1 # $Id$
2
3 PNAME="wget"
4 PVER="1.17"
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.0.1
13 >= dev-libs/libpcre-8.36
14 >= net-dns/libidn-1.29
15 >= sys-libs/libuuid-2.25
16 >= sys-libs/zlib-1.2.8
17 >= app-crypt/ca-certificates-2014"
18
19 SDEPEND=">= dev-lang/perl-5.20
20 >= dev-util/texinfo-5"
21
22 if mqueryfeature "check"
23 then
24 SDEPEND+="
25 >= dev-lang/python3-3.4
26 >= dev-perl/io-socket-ssl-2
27 >= dev-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 \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz"
46 UP2DATE="updatecmd_gnu ${PNAME} xz"
47
48 src_prepare()
49 {
50 munpack ${SRCFILE} || die
51 cd ${SRCDIR}
52
53 # enable passive mode by default
54 sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die
55
56 # use system ca-certificates
57 cat >> doc/sample.wgetrc <<EOF
58
59 # default root certs location
60 ca_certificate=/etc/ssl/certs/ca-certificates.crt
61 EOF
62 }
63
64 src_compile()
65 {
66 cd ${SRCDIR}
67 # force use openssl not gnutls
68 mconfigure --with-ssl=openssl || die
69 mmake || die
70 }
71
72 src_check()
73 {
74 cd ${SRCDIR}
75
76 # honor proxy settings
77 http_proxy="" https_proxy="" \
78 ftp_proxy="" ftps_proxy="" \
79 make -k check || die
80 }