@@ -30,13 +30,13 @@ def version(self):
30
30
def c_configure_args (self ):
31
31
if config_args := self .cfg_configure (self .deps_lib ):
32
32
yield config_args
33
+
33
34
else :
34
35
yield "--enable-shared=no"
35
36
yield "--enable-static=yes"
36
37
yield "--enable-dbm"
37
38
yield "--with-pic=yes"
38
39
39
-
40
40
def _do_linux_compile (self ):
41
41
self .run_configure ("../dist/configure" , self .c_configure_args ())
42
42
self .run_make ()
@@ -85,10 +85,11 @@ def url(self):
85
85
@property
86
86
def version (self ):
87
87
return self .cfg_version ("1.24" )
88
-
88
+
89
89
def c_configure_args (self ):
90
90
if config_args := self .cfg_configure (self .deps_lib ):
91
91
yield config_args
92
+
92
93
else :
93
94
yield "--enable-shared=no"
94
95
yield "--enable-static=yes"
@@ -122,22 +123,24 @@ class LibFFI(ModuleBuilder):
122
123
123
124
@property
124
125
def url (self ):
125
- return self .cfg_url (self .version ) or f"https://github.com/libffi/libffi/releases/download/v{ self .version } /libffi-{ self .version } .tar.gz"
126
+ return (
127
+ self .cfg_url (self .version ) or f"https://github.com/libffi/libffi/releases/download/v{ self .version } /libffi-{ self .version } .tar.gz"
128
+ )
126
129
127
130
@property
128
131
def version (self ):
129
132
return self .cfg_version ("3.4.6" )
130
-
133
+
131
134
def c_configure_args (self ):
132
135
if config_args := self .cfg_configure (self .deps_lib ):
133
136
yield config_args
137
+
134
138
else :
135
139
yield "--enable-shared=no"
136
140
yield "--enable-static=yes"
137
141
yield "--with-pic=yes"
138
142
yield PPG .target .is_macos and "--disable-multi-os-directory"
139
143
yield "--disable-docs"
140
-
141
144
142
145
def _do_linux_compile (self ):
143
146
self .run_configure ("./configure" , self .c_configure_args ())
@@ -162,7 +165,10 @@ def url(self):
162
165
if self .version and self .version .startswith ("1.1.1" ):
163
166
# Not sure why URL suddenly changed for this on github...
164
167
vfolder = self .version .replace ("." , "_" )
165
- return self .cfg_url (self .version ) or f"https://github.com/openssl/openssl/releases/download/OpenSSL_{ vfolder } /openssl-{ self .version } .tar.gz"
168
+ return (
169
+ self .cfg_url (self .version )
170
+ or f"https://github.com/openssl/openssl/releases/download/OpenSSL_{ vfolder } /openssl-{ self .version } .tar.gz"
171
+ )
166
172
167
173
return f"https://github.com/openssl/openssl/releases/download/openssl-{ self .version } /openssl-{ self .version } .tar.gz"
168
174
@@ -175,6 +181,7 @@ def version(self):
175
181
def c_configure_args (self ):
176
182
if config_args := self .cfg_configure (self .deps_lib ):
177
183
yield config_args
184
+
178
185
else :
179
186
yield "-v"
180
187
yield "--openssldir=/etc/ssl"
@@ -203,6 +210,7 @@ def version(self):
203
210
def c_configure_args (self ):
204
211
if config_args := self .cfg_configure (self .deps_lib ):
205
212
yield config_args
213
+
206
214
else :
207
215
yield "--disable-shared"
208
216
yield "--enable-static"
@@ -259,6 +267,7 @@ def version(self):
259
267
def c_configure_args (self ):
260
268
if config_args := self .cfg_configure (self .deps_lib ):
261
269
yield config_args
270
+
262
271
else :
263
272
yield "--enable-shared=no"
264
273
yield "--enable-static=yes"
@@ -298,16 +307,17 @@ def url(self):
298
307
@property
299
308
def version (self ):
300
309
return self .cfg_version ("3.47.0" )
301
-
310
+
302
311
def c_configure_args (self ):
303
312
if config_args := self .cfg_configure (self .deps_lib ):
304
313
yield config_args
314
+
305
315
else :
306
- yield "--enable-shared=no" ,
307
- yield "--enable-static=yes" ,
308
- yield "--disable-tcl" ,
309
- yield "--disable-readline" ,
310
- yield "--with-pic=yes" ,
316
+ yield "--enable-shared=no"
317
+ yield "--enable-static=yes"
318
+ yield "--disable-tcl"
319
+ yield "--disable-readline"
320
+ yield "--with-pic=yes"
311
321
312
322
def _do_linux_compile (self ):
313
323
self .run_configure ("./configure" , self .c_configure_args ())
@@ -338,6 +348,7 @@ def version(self):
338
348
def c_configure_args (self ):
339
349
if config_args := self .cfg_configure (self .deps_lib ):
340
350
yield config_args
351
+
341
352
else :
342
353
yield "--enable-shared=no"
343
354
yield "--enable-static=yes"
@@ -363,19 +374,20 @@ def url(self):
363
374
@property
364
375
def version (self ):
365
376
return self .cfg_version ("5.6.3" )
366
-
377
+
367
378
def c_configure_args (self ):
368
379
if config_args := self .cfg_configure (self .deps_lib ):
369
380
yield config_args
381
+
370
382
else :
371
- yield "--enable-shared=no" ,
372
- yield "--enable-static=yes" ,
373
- yield "--with-pic=yes" ,
374
- yield "--disable-rpath" ,
375
- yield "--disable-dependency-tracking" ,
376
- yield "--disable-doc" ,
377
- yield "--disable-nls" ,
378
- yield "--without-libintl-prefix" ,
383
+ yield "--enable-shared=no"
384
+ yield "--enable-static=yes"
385
+ yield "--with-pic=yes"
386
+ yield "--disable-rpath"
387
+ yield "--disable-dependency-tracking"
388
+ yield "--disable-doc"
389
+ yield "--disable-nls"
390
+ yield "--without-libintl-prefix"
379
391
380
392
def _do_linux_compile (self ):
381
393
self .run_configure ("./configure" , self .c_configure_args ())
@@ -405,10 +417,11 @@ def url(self):
405
417
@property
406
418
def version (self ):
407
419
return self .cfg_version ("1.3.1" )
408
-
420
+
409
421
def c_configure_args (self ):
410
422
if config_args := self .cfg_configure (self .deps_lib ):
411
423
yield config_args
424
+
412
425
else :
413
426
yield "--static"
414
427
0 commit comments