Ticket #30003: ola-python.diff

File ola-python.diff, 975 bytes (added by nomis52@…, 13 years ago)
  • Portfile

    old new  
    3333configure.args      --disable-http \
    3434                    --disable-libusb
    3535
    36 variant python description {Enable the Python API} {
    37     configure.args-append   --enable-python-libs
     36variant python26 conflicts python27 description {Enable the Python 2.6 API} {
     37    depends_lib-append      port:protobuf-python26
     38    configure.args-append   PYTHON=python2.6 --enable-python-libs
     39}
     40
     41variant python27 conflicts python26 description {Enable the Python 2.7 API} {
     42    depends_lib-append      port:protobuf-python27
     43    configure.args-append   PYTHON=python2.7 --enable-python-libs
    3844}
    3945
    4046variant http description {Build with embedded web server} {
     
    4753    configure.args-delete   --disable-libusb
    4854}
    4955
    50 default_variants    +http +python +libusb
     56default_variants    +http +libusb
    5157
    5258test.run            yes
    5359test.target         check