Ignore:
Timestamp:
Apr 1, 2015, 11:25:22 AM (4 years ago)
Author:
robitaille@…
Message:

py-astropy: avoid conflicts with py-pyfits port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-astropy/Portfile

    r134468 r134625  
    66name                py-astropy
    77version             1.0.1
     8revision            1
    89maintainers         robitaille
    910
     
    4950    destroot.cmd  ${python.bin} setup.py --no-user-cfg --offline --no-git
    5051
     52    # Don't let the python portgroup create symlinks to the binaries, because
     53    # the python portgroup's post-destroot block will run before ours, so the
     54    # files won't have the right names yet, and the symlinks will be broken.
     55    python.link_binaries no
     56
    5157    post-destroot {
    52         file rename ${destroot}${prefix}/bin/fitscheck-${python.branch} \
    53                     ${destroot}${prefix}/bin/fitscheck-ap-${python.branch}
    54         file rename ${destroot}${prefix}/bin/fitsdiff-${python.branch} \
    55                     ${destroot}${prefix}/bin/fitsdiff-ap-${python.branch}
    56         file rename ${destroot}${prefix}/bin/fitsheader-${python.branch} \
    57                     ${destroot}${prefix}/bin/fitsheader-ap-${python.branch}
    58         file rename ${destroot}${prefix}/bin/volint-${python.branch} \
    59                     ${destroot}${prefix}/bin/volint-ap-${python.branch}
    60         file rename ${destroot}${prefix}/bin/fits2bitmap-${python.branch} \
    61                     ${destroot}${prefix}/bin/fits2bitmap-ap-${python.branch}
    62         file rename ${destroot}${prefix}/bin/samp_hub-${python.branch} \
    63                     ${destroot}${prefix}/bin/samp_hub-ap-${python.branch}
    64         file rename ${destroot}${prefix}/bin/wcslint-${python.branch} \
    65                     ${destroot}${prefix}/bin/wcslint-ap-${python.branch}
     58        # Don't conflict with files installed by py-pyfits.
     59        set ap_suffix -ap
     60        foreach bin {fitscheck fitsdiff fitsheader volint fits2bitmap samp_hub wcslint} {
     61            move ${destroot}${python.prefix}/bin/${bin} ${destroot}${python.prefix}/bin/${bin}${ap_suffix}
     62            ln -s ${python.prefix}/bin/${bin}${ap_suffix} ${destroot}${prefix}/bin/${bin}${ap_suffix}${python.link_binaries_suffix}
     63        }
    6664    }
    6765
Note: See TracChangeset for help on using the changeset viewer.