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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name gnurl |
---|
6 | version 7.58.0 |
---|
7 | categories net www |
---|
8 | platforms darwin freebsd |
---|
9 | maintainers TBA |
---|
10 | license Curl |
---|
11 | |
---|
12 | description Tool for transferring files with URL syntax |
---|
13 | |
---|
14 | long_description gnurl is fork of the curl client used to get documents/files \ |
---|
15 | from servers, using any of the supported protocols. The command is \ |
---|
16 | designed to work without user interaction or any kind \ |
---|
17 | of interactivity. |
---|
18 | |
---|
19 | homepage https://gnunet.org/ |
---|
20 | master_sites https://ftp.gnu.org/gnu/gnunet/ |
---|
21 | |
---|
22 | |
---|
23 | use_xz yes |
---|
24 | set gnurl_distfile ${distfiles} |
---|
25 | distfiles ${gnurl_distfile}:gnurl |
---|
26 | |
---|
27 | checksums ${gnurl_distfile} \ |
---|
28 | sha256 ddfe41c66264c7dfd5131349134081b358ec14ed0a430a51c4f46a06bee6dafb \ |
---|
29 | sha512 0008cc6635b14dd083051425fdb31b64ecb8e728f6fca84e133b5a674097f7acdb7932c7ae1920840cb97bcc9dc2ca960b7d976ca2f1cc6c850a12c0e546acca |
---|
30 | |
---|
31 | |
---|
32 | PortGroup muniversal 1.0 |
---|
33 | |
---|
34 | revision 0 |
---|
35 | |
---|
36 | depends_build port:pkgconfig |
---|
37 | |
---|
38 | depends_lib port:curl-ca-bundle \ |
---|
39 | port:libidn2 \ |
---|
40 | port:libpsl \ |
---|
41 | port:zlib |
---|
42 | |
---|
43 | configure.args --disable-ntlm-wb \ |
---|
44 | --disable-silent-rules \ |
---|
45 | --enable-ipv6 \ |
---|
46 | --without-brotli \ |
---|
47 | --without-cyassl \ |
---|
48 | --with-gnutls=${prefix} \ |
---|
49 | --without-gssapi \ |
---|
50 | --without-libmetalink \ |
---|
51 | --without-librtmp \ |
---|
52 | --without-libssh2 \ |
---|
53 | --without-nghttp2 \ |
---|
54 | --without-nss \ |
---|
55 | --without-polarssl \ |
---|
56 | --without-spnego \ |
---|
57 | --without-ssl \ |
---|
58 | --without-darwinssl \ |
---|
59 | --disable-ares \ |
---|
60 | --disable-ldap \ |
---|
61 | --disable-ldaps \ |
---|
62 | --with-libidn2=${prefix} \ |
---|
63 | --with-zlib=${prefix} \ |
---|
64 | ac_cv_prog_AWK=/usr/bin/awk |
---|
65 | |
---|
66 | configure.cflags-append -mmacosx-version-min=${macosx_deployment_target} |
---|
67 | |
---|
68 | configure.env PKG_CONFIG_PATH=${prefix} |
---|
69 | |
---|
70 | post-configure { |
---|
71 | if {[variant_isset universal]} { |
---|
72 | set dirs {} |
---|
73 | foreach arch ${universal_archs_to_use} { |
---|
74 | lappend dirs ${worksrcpath}-${arch} |
---|
75 | } |
---|
76 | } else { |
---|
77 | set dirs ${worksrcpath} |
---|
78 | } |
---|
79 | foreach dir ${dirs} { |
---|
80 | reinplace -E {s|-arch [a-z0-9_]+||g} \ |
---|
81 | ${dir}/gnurl-config \ |
---|
82 | ${dir}/libgnurl.pc |
---|
83 | reinplace -E {s/ '(host_alias|--host)=[^']+'//g} ${dir}/gnurl-config |
---|
84 | } |
---|
85 | } |
---|
86 | |
---|
87 | test.run yes |
---|
88 | test.target test-full |
---|
89 | |
---|
90 | global merger_dont_diff |
---|
91 | set merger_dont_diff "${prefix}/include/gnurl/gnurlbuild.h" |
---|
92 | |
---|
93 | post-destroot { |
---|
94 | set docdir ${prefix}/share/doc/${name} |
---|
95 | xinstall -d ${destroot}${docdir}/html/libgnurl ${destroot}${docdir}/pdf/libgnurl \ |
---|
96 | ${destroot}${prefix}/share/aclocal |
---|
97 | xinstall -m 0644 -W ${worksrcpath} \ |
---|
98 | CHANGES \ |
---|
99 | COPYING \ |
---|
100 | README \ |
---|
101 | RELEASE-NOTES \ |
---|
102 | ${destroot}${docdir} |
---|
103 | xinstall -m 0644 -W ${worksrcpath}/docs \ |
---|
104 | BINDINGS.md \ |
---|
105 | BUGS \ |
---|
106 | CODE_OF_CONDUCT.md \ |
---|
107 | CODE_STYLE.md \ |
---|
108 | CONTRIBUTE.md \ |
---|
109 | FAQ \ |
---|
110 | FEATURES \ |
---|
111 | HISTORY.md \ |
---|
112 | HTTP-COOKIES.md \ |
---|
113 | HTTP2.md \ |
---|
114 | INTERNALS.md \ |
---|
115 | KNOWN_BUGS \ |
---|
116 | LICENSE-MIXING.md \ |
---|
117 | MAIL-ETIQUETTE \ |
---|
118 | MANUAL \ |
---|
119 | RESOURCES \ |
---|
120 | ROADMAP.md \ |
---|
121 | SECURITY.md \ |
---|
122 | SSL-PROBLEMS.md \ |
---|
123 | SSLCERTS.md \ |
---|
124 | THANKS \ |
---|
125 | TODO \ |
---|
126 | TheArtOfHttpScripting \ |
---|
127 | VERSIONS \ |
---|
128 | ${destroot}${docdir} |
---|
129 | xinstall -m 0644 ${worksrcpath}/docs/libcurl/libgnurl.m4 \ |
---|
130 | ${destroot}${prefix}/share/aclocal/ |
---|
131 | } |
---|
132 | |
---|
133 | variant ares description {Support resolving names asynchronously} { |
---|
134 | depends_lib-append port:c-ares |
---|
135 | configure.args-replace --disable-ares --enable-ares |
---|
136 | } |
---|
137 | |
---|
138 | |
---|
139 | variant gss description {Support the Generic Security Service API} { |
---|
140 | # This needs to use the system's Kerberos, not MacPorts' gss or kerberos5. |
---|
141 | conflicts-append gss kerberos5 |
---|
142 | configure.args-replace --without-gssapi --with-gssapi |
---|
143 | } |
---|
144 | |
---|
145 | variant http2 description {Support HTTP/2 with nghttp2} { |
---|
146 | depends_lib-append port:nghttp2 |
---|
147 | configure.args-replace --without-nghttp2 --with-nghttp2 |
---|
148 | } |
---|
149 | |
---|
150 | variant metalink description {Support Metalink XML download description files} { |
---|
151 | depends_lib-append port:libmetalink |
---|
152 | configure.args-replace --without-libmetalink --with-libmetalink=${prefix} |
---|
153 | } |
---|
154 | |
---|
155 | variant openldap description {Support performing Lightweight Directory Access Protocol queries with OpenLDAP} { |
---|
156 | depends_lib-append port:openldap |
---|
157 | configure.args-replace --disable-ldap --enable-ldap |
---|
158 | configure.args-replace --disable-ldaps --enable-ldaps |
---|
159 | } |
---|
160 | |
---|
161 | variant sftp_scp description {Support SFTP/SCP connections via libssh2} { |
---|
162 | depends_lib-append port:libssh2 |
---|
163 | configure.args-replace --without-libssh2 --with-libssh2 |
---|
164 | } |
---|
165 | |
---|
166 | variant spnego description {Enable SPNEGO authentication support} { |
---|
167 | # kind of broken? |
---|
168 | depends_lib-append port:fbopenssl |
---|
169 | configure.args-replace --without-spnego --with-spnego=${prefix} |
---|
170 | } |
---|
171 | |
---|
172 | |
---|
173 | livecheck.type regex |
---|
174 | livecheck.url [join [lrange [split [lindex ${master_sites} 0] {:}] 0 end-1] {:}] |
---|
175 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|
176 | |
---|
177 | |
---|