48 |
http://www.python.org/ftp/python/${PVER%.*}/${SRCFILE} |
http://www.python.org/ftp/python/${PVER%.*}/${SRCFILE} |
49 |
http://www.python.org/ftp/python/${PVER}/${SRCFILE} |
http://www.python.org/ftp/python/${PVER}/${SRCFILE} |
50 |
mirror://python/${SRCFILE} |
mirror://python/${SRCFILE} |
51 |
mirror://python/python-3.3.2-disable_modules_and_ssl.patch |
mirror://python/python-3.7.0-disable_modules_and_ssl.patch |
52 |
mirror://python/python-2.5.0-mimetypes-apache.patch |
mirror://python/python-2.5.0-mimetypes-apache.patch |
53 |
mirror://python/python-3.6.5-lib64.patch |
mirror://python/python-3.7.1-lib64.patch |
54 |
) |
) |
55 |
|
|
56 |
# sed line: on 2 digits add an zero: 2.6 -> 2.6.0 |
# sed line: on 2 digits add an zero: 2.6 -> 2.6.0 |
62 |
{ |
{ |
63 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
64 |
|
|
65 |
mpatch python-3.3.2-disable_modules_and_ssl.patch || die |
mpatch python-3.7.0-disable_modules_and_ssl.patch || die |
66 |
mpatch python-2.5.0-mimetypes-apache.patch || die |
mpatch python-2.5.0-mimetypes-apache.patch || die |
67 |
|
|
68 |
only-m64 mpatch python-3.6.5-lib64.patch || die |
only-m64 mpatch python-3.7.1-lib64.patch || die |
69 |
|
|
70 |
# ensure to use system-wide copies of expat, zlib and libffi |
# ensure to use system-wide copies of expat, libmpdec and libffi |
71 |
# rather than copies shipped in the tarball |
# rather than copies shipped in the tarball |
72 |
all-abis 'rm -r Modules/expat || die' |
all-abis 'rm -r Modules/expat || die' |
|
all-abis 'rm -r Modules/zlib || die' |
|
73 |
all-abis 'rm -r Modules/_ctypes/{darwin,libffi}* || die' |
all-abis 'rm -r Modules/_ctypes/{darwin,libffi}* || die' |
74 |
|
all-abis 'rm -r Modules/_decimal/libmpdec || die' |
75 |
} |
} |
76 |
|
|
77 |
src_compile() |
src_compile() |