Changeset 97981


Ignore:
Timestamp:
Sep 21, 2012, 8:27:09 AM (12 years ago)
Author:
ciserlohn@…
Message:

xraylib: move from one python variant to separate variants per python version (maintainer update; fixes #36220, #36223)

Location:
trunk/dports/science/xraylib
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/xraylib/Portfile

    r97904 r97981  
    66name                xraylib
    77version             2.16.0
     8revision            1
    89categories          science
    910platforms           darwin
     
    2627                    sha256 91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c
    2728
     29patchfiles          patch-configure.diff \
     30                    patch-m4-m4-ax_python_devel.m4.diff \
     31                    patch-python-Makefile.am.diff \
     32                    patch-python-Makefile.in.diff
     33
     34patch.pre_args      -p1
     35
    2836configure.args      --disable-idl \
    2937                    --disable-fortran2003 \
     
    4351}
    4452
    45 variant python description {Python bindings} {
    46     configure.args-append --enable-python --enable-python-integration
     53variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 {
     54    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.6
    4755    configure.args-delete --disable-python
    4856    depends_build-append port:swig-python
     57    depends_lib-append port:python26
     58}
     59
     60variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 {
     61    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.7
     62    configure.args-delete --disable-python
     63    depends_build-append port:swig-python
     64    depends_lib-append port:python27
     65}
     66
     67variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 {
     68    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.1
     69    configure.args-delete --disable-python
     70    depends_build-append port:swig-python
     71    depends_lib-append port:python31
     72}
     73
     74variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 {
     75    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.2
     76    configure.args-delete --disable-python
     77    depends_build-append port:swig-python
     78    depends_lib-append port:python32
    4979}
    5080
     
    97127}
    98128
    99 default_variants    +python
     129if {![variant_isset python26] && ![variant_isset python27] && ![variant_isset python31] && ![variant_isset python32]} {
     130    default_variants    +python27
     131}
     132
Note: See TracChangeset for help on using the changeset viewer.