Changeset 98714


Ignore:
Timestamp:
Oct 13, 2012, 6:58:08 PM (12 years ago)
Author:
blair@…
Message:

py-protobuf: new unified port to replace python-protobuf*.

Location:
trunk/dports/python/py-protobuf
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-protobuf

  • trunk/dports/python/py-protobuf/Portfile

    r98711 r98714  
    22
    33PortSystem      1.0
    4 PortGroup       python27 1.0
     4PortGroup       python 1.0
    55
    6 name            protobuf-python27
     6name            py-protobuf
    77version         2.4.1
    8 categories      devel
     8categories-append   devel
    99maintainers     blair
    1010supported_archs noarch
     
    4141platforms       darwin
    4242
    43 depends_lib     port:protobuf-cpp \
    44                 port:py27-distribute
     43python.versions 24 25 26 27
    4544
    46 worksrcdir      ${worksrcdir}/python
     45if {$subport != $name} {
     46    depends_lib     port:protobuf-cpp \
     47                    port:py${python.version}-distribute
    4748
    48 build.env       PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
    49 build.cmd-append build_ext -I${prefix}/include
     49    worksrcdir      ${worksrcdir}/python
    5050
    51 destroot.env    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
     51    build.env       PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
     52    build.cmd-append    build_ext -I${prefix}/include
    5253
    53 test.run        yes
    54 test.env        PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
    55 test.cmd        "${prefix}/bin/python2.7 setup.py"
    56 test.target     test
     54    destroot.env    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
     55
     56    test.run        yes
     57    test.env        PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
     58    test.cmd        "${python.bin} setup.py"
     59    test.target     test
     60}
Note: See TracChangeset for help on using the changeset viewer.