Commits
Chris Jones authored 77f3a998416
27 27 | by IT-ST at CERN, and while the project's purpose \ |
28 28 | is its use on the CERN grid, the functionality \ |
29 29 | offered is generic. |
30 30 | |
31 31 | license LGPL-2.1 |
32 32 | platforms darwin |
33 33 | |
34 34 | set py_ver 3.6 |
35 35 | set py_ver_no_dot [join [split ${py_ver} "."] ""] |
36 36 | |
37 - | depends_build-append port:pkgconfig |
37 + | depends_build-append port:pkgconfig \ |
38 + | port:python${py_ver_no_dot} |
38 39 | |
39 - | depends_lib port:libxml2 \ |
40 - | path:lib/libssl.dylib:openssl \ |
41 - | port:python${py_ver_no_dot} |
40 + | depends_lib port:libxml2 \ |
41 + | path:lib/libssl.dylib:openssl |
42 42 | |
43 43 | configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python${py_ver} |
44 44 | |
45 45 | pre-configure { |
46 46 | # Force use of macports python in build scripts |
47 47 | # Find command finds text files containing the string to be replaced. |
48 48 | set pystringtoreplace "/usr/bin/env python2" |
49 49 | foreach f [ exec find ${worksrcpath} -type f -and -name "*.py" ] { |
50 50 | reinplace -q "s|${pystringtoreplace}|${prefix}/bin/python${py_ver}|g" $f |
51 51 | } |
52 52 | } |