Ticket #52787: Portfile-ldas-tools-utilities.diff

File Portfile-ldas-tools-utilities.diff, 3.5 KB (added by emaros, 8 years ago)

git format-patch style patch

  • science/ldas-tools-utilities/Portfile

    From b166c545b2f89da94d9072127658d407b1df90ca Mon Sep 17 00:00:00 2001
    From: "ed.maros" <ed.maros@ligo.org>
    Date: Tue, 1 Nov 2016 17:10:16 -0700
    Subject: [PATCH] Updated to source distribution 2.5.1
    
    ---
     science/ldas-tools-utilities/Portfile | 53 ++++++-----------------------------
     1 file changed, 9 insertions(+), 44 deletions(-)
    
    diff --git a/science/ldas-tools-utilities/Portfile b/science/ldas-tools-utilities/Portfile
    index 0a8b928..2115bac 100644
    a b  
    1 # $Id$
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem    1.0
    44PortGroup     compiler_blacklist_versions 1.0
    55
    66name          ldas-tools-utilities
    7 version       2.5.0
     7version       2.5.1
    88categories    science
    99platforms     darwin
    1010maintainers   ligo.org:ed.maros
    long_description ${description} 
    1515homepage      https://wiki.ligo.org/DASWG/LDASTools
    1616master_sites  http://software.ligo.org/lscsoft/source/
    1717
    18 checksums     rmd160 963611ade9082e5b32bbce4979f011e4f88beb70 \
    19               sha256 34ef792dfa5ca32c333d350d9afeb6021ae0a67682842801f049efd96eaf9739
     18checksums     rmd160 e81be56d8d8e079ded4547f0dbe6bafe1cecac93 \
     19              sha256 cd19fcb17927173133d81777aa598c928f2854c998e82653fbc4922e72df771d
    2020
    21 depends_lib    port:ldas-tools-al \
    22                port:ldas-tools-frameAPI \
     21depends_lib    port:ldas-tools-frameAPI \
    2322               port:ldas-tools-diskcacheAPI
    2423
    25 configure.args --disable-silent-rules \
     24configure.args --disable-warnings-as-errors \
     25               --disable-silent-rules \
    2626               --with-optimization=high \
    2727               --disable-tcl \
    2828               --disable-python \
    configure.args --disable-silent-rules \ 
    3030               --without-dot \
    3131               --disable-latex
    3232
    33 if {${os.major} < 13} {
     33if {${configure.cxx_stdlib} eq "libstdc++" } {
    3434    configure.args-append --disable-cxx11
    3535}
    3636
    compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2 
    3939
    4040use_parallel_build yes
    4141
    42 #variant docs description {build documentation} {
    43 #  configure.args-delete --disable-latex \
    44 #                        --disable-dot \
    45 #                        --disable-ldas-documentation \
    46 #  configure.args-append --docdir=${prefix}/share/doc/ldas-tools
    47 #}
    48 
    49 #------------------------------------------------------------------------
    50 # Python variants
    51 #------------------------------------------------------------------------
    52 set pythons_suffixes {27 34}
    53 
    54 set pythons_ports {}
    55 foreach s ${pythons_suffixes} {
    56     lappend pythons_ports python${s}
    57 }
    58 
    59 foreach s ${pythons_suffixes} {
    60     set p python${s}
    61     set v [string index ${s} 0].[string index ${s} 1]
    62     set i [lsearch -exact ${pythons_ports} ${p}]
    63     set c [lreplace ${pythons_ports} ${i} ${i}]
    64     set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
    65     eval [subst {
    66         variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
    67 
    68             depends_build-append    port:swig-python
    69             depends_lib-append      port:${p} port:py${s}-numpy
    70             configure.args-strsed   s/--disable-python/--enable-python/
    71             destroot.args-append    pythondir="${d}" pyexecdir="${d}"
    72 
    73         }
    74     }]
    75 }
    76 
    7742livecheck.type   regex
    7843livecheck.url    ${master_sites}
    79 livecheck.regex  {ldas-tools-filters-(\d+(?:\.\d+)*).tar.gz}
     44livecheck.regex  {ldas-tools-utilities-(\d+(?:\.\d+)*).tar.gz}