-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathmeta.yaml
146 lines (134 loc) · 4.17 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{% set version = "8.12.1" %}
package:
name: curl_split_recipe
version: {{ version }}
source:
url: http://curl.haxx.se/download/curl-{{ version }}.tar.bz2
sha256: 18681d84e2791183e0e5e4650ccb2a080c1f3a4e57ed2fbc2457228579d68269
build:
number: 0
requirements:
build:
- libtool # [unix]
- {{ compiler('c') }}
- {{ stdlib('c') }}
- make # [unix]
- cmake-no-system # [win]
# perl is required to run the tests on UNIX.
- perl # [unix]
- pkg-config # [unix]
host:
- zlib
- zstd # [unix]
- krb5
- libssh2
- openssl # [unix]
- libnghttp2 # [unix]
- zlib
outputs:
- name: libcurl
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
- openssl # [unix]
- libnghttp2 # [unix]
- zlib
- zstd # [unix]
- libssh2
- krb5
run:
- libssh2
- libnghttp2 # [unix]
build:
run_exports:
- {{ pin_subpackage('libcurl') }}
files:
- include/curl # [unix]
- lib/libcurl.so* # [linux]
- lib/libcurl*.dylib # [osx]
- lib/pkgconfig/libcurl* # [unix]
- bin/curl-config # [unix]
- Library/bin/libcurl.dll # [win]
- Library/include/curl # [win]
- Library/lib/libcurl.lib # [win]
test:
commands:
- curl-config --features # [not win]
- curl-config --protocols # [not win]
- test -f ${PREFIX}/lib/libcurl${SHLIB_EXT} # [not win]
- test ! -f ${PREFIX}/lib/libcurl.a # [not win]
- if exist %LIBRARY_BIN%\curl.exe exit 1 # [win]
- if exist %LIBRARY_LIB%\libcurl_a.lib exit 1 # [win]
- if not exist %LIBRARY_BIN%\libcurl.dll exit 1 # [win]
- CURL_SSL_BACKENDS=$(curl-config --ssl-backends) # [unix]
- if ! echo $CURL_SSL_BACKENDS | grep -q "OpenSSL"; then exit 1; fi # [unix]
- if ! echo $CURL_SSL_BACKENDS | grep -q "Secure Transport"; then exit 1; fi # [osx]
- name: libcurl-static
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
- openssl # [unix]
- zlib
- zstd # [unix]
- libssh2
- krb5
- {{ pin_subpackage('libcurl', exact=True) }}
run:
- {{ pin_subpackage('libcurl', exact=True) }}
files:
- lib/libcurl.a* # [unix]
- Library/lib/libcurl_a.lib # [win]
test:
commands:
- test -f $PREFIX/lib/libcurl.a # [not win]
- if not exist %LIBRARY_LIB%\libcurl_a.lib exit 1 # [win]
- name: curl
files:
- bin/curl # [unix]
- Library/bin/curl.exe* # [win]
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
- {{ pin_subpackage('libcurl', exact=True) }}
# OpenSSL is needed here to prevent conda-build from getting confused while
# both OpenSSL 1.1.1 and 3.0.0 and being supported
- openssl # [unix]
- zlib
- zstd # [unix]
- libssh2
- krb5
run:
- {{ pin_subpackage('libcurl', exact=True) }}
- libssh2
test:
commands:
# curl help commands on Windows have non-zero status codes. Need other test.
- curl --help
# Try downloading something from https to make sure the certs are used correctly.
- curl https://raw.githubusercontent.com/conda-forge/curl-feedstock/master/LICENSE.txt
- if not exist %LIBRARY_BIN%\curl.exe exit 1 # [win]
about:
home: http://curl.haxx.se/
license: curl
license_family: MIT
license_file: COPYING
summary: tool and library for transferring data with URL syntax
description: |
Curl is an open source command line tool and library for transferring data
with URL syntax. It is used in command lines or scripts to transfer data.
doc_url: https://curl.haxx.se/docs/
dev_url: https://github.com/curl/curl
doc_source_url: https://github.com/curl/curl/tree/master/docs
extra:
recipe-maintainers:
- msarahan
- jakirkham
- ocefpaf
- mingwandroid
- xylar