| 44 | variant python description {install SWIG Python interface} { |
| 45 | depends_lib-append port:python26 |
| 46 | |
| 47 | post-destroot { |
| 48 | set python.branch 2.6 |
| 49 | set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} |
| 50 | set python.bin ${python.prefix}/bin/python${python.branch} |
| 51 | |
| 52 | system "cd ${worksrcpath}/python; ${python.bin} setup.py install --prefix=${python.prefix} --root=${destroot}" |
| 53 | |
| 54 | # install python docs |
| 55 | set docs ${destroot}${prefix}/share/doc/${name}-${version} |
| 56 | xinstall -m 755 -d ${docs}/python |
| 57 | xinstall -m 644 -W ${worksrcpath}/python README \ |
| 58 | svm_test.py test_cross_validation.py ${docs}/python |
| 59 | file rename ${worksrcpath}/tools ${docs}/tools |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | variant java description {install Java jar files} { |
| 64 | depends_lib-append bin:java:kaffe |
| 65 | |
| 66 | post-destroot { |
| 67 | set jdir ${destroot}${prefix}/share/java |
| 68 | xinstall -m 775 -d ${jdir} |
| 69 | file rename ${worksrcpath}/java ${jdir}/${name} |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | default_variants +java |