| 54 | variant python26 description {Install SWIG Python interface} { |
| 55 | depends_lib-append port:python26 |
| 56 | |
| 57 | post-destroot { |
| 58 | set python.branch 2.6 |
| 59 | set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} |
| 60 | set python.bin ${python.prefix}/bin/python${python.branch} |
| 61 | |
| 62 | system "cd ${worksrcpath}/python; ${python.bin} setup.py install --prefix=${python.prefix} --root=${destroot}" |
| 63 | |
| 64 | set docs ${destroot}${prefix}/share/doc/${name} |
| 65 | xinstall -m 755 -d ${docs}/python |
| 66 | xinstall -m 644 -W ${worksrcpath}/python README \ |
| 67 | svm_test.py test_cross_validation.py ${docs}/python |
| 68 | file rename ${worksrcpath}/tools ${docs}/tools |
| 69 | } |
| 70 | } |
| 71 | |