Ticket #48991: Portfile-ldas-tools.diff

File Portfile-ldas-tools.diff, 2.0 KB (added by emaros, 9 years ago)

Modifications to the Portfile

  • Portfile

    old new  
    44PortGroup     compiler_blacklist_versions 1.0
    55
    66name          ldas-tools
    7 version       2.4.0
     7version       2.4.2
    88categories    science
    99platforms     darwin
    1010maintainers   ligo.org:ed.maros
     
    1515homepage      http://www.ldas-sw.ligo.caltech.edu
    1616master_sites  http://software.ligo.org/lscsoft/source/
    1717
    18 checksums     rmd160 9b250e836b502379ff24124d1bf67e2c3e164feb \
    19               sha256 d49438554a9628ff320e889e55fb3a60a6596c4ab581eb089b4356e9e5e51b86
     18checksums     rmd160  54dec09d6d9d3e55c881af7574226f2d640a5e96 \
     19              sha256  17b9514c8aa2092f70f7d8c7315a7d46008a285d47b730ad2d7a8eb2c89e9a36
     20
     21patchfiles    patch-libraries-ldastoolsal-src-AtExit.cc.diff \
     22              patch-libraries-ldastoolsal-src-TaskThread.cc.diff
    2023
    2124configure.args --disable-silent-rules \
    2225               --with-optimization=high \
     
    4750#  configure.args-append --docdir=${prefix}/share/doc/ldas-tools
    4851#}
    4952
     53default_variants +python27
     54
    5055#------------------------------------------------------------------------
    5156# Python variants
    5257#------------------------------------------------------------------------
    53 set pythons_suffixes {27 34}
     58set pythons_versions     { 27 34 }
    5459
    5560set pythons_ports {}
    56 foreach s ${pythons_suffixes} {
     61foreach s ${pythons_versions} {
    5762    lappend pythons_ports python${s}
    5863}
    5964
    60 foreach s ${pythons_suffixes} {
     65foreach s ${pythons_versions} {
    6166    set p python${s}
    6267    set v [string index ${s} 0].[string index ${s} 1]
    6368    set i [lsearch -exact ${pythons_ports} ${p}]
     
    6671    eval [subst {
    6772        variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
    6873
     74            configure.python        "${prefix}/bin/python${v}"
    6975            depends_build-append    port:swig-python
    7076            depends_lib-append      port:${p} port:py${s}-numpy
    7177            configure.args-strsed   s/--disable-python/--enable-python/