Ticket #52778: Portfile-ldas-tools-al.diff
File Portfile-ldas-tools-al.diff, 5.6 KB (added by emaros, 8 years ago) |
---|
-
science/ldas-tools-al/Portfile
From b22163701f966cac3fadf306e21aa5ff4caf88c6 Mon Sep 17 00:00:00 2001 From: "ed.maros" <ed.maros@ligo.org> Date: Tue, 1 Nov 2016 16:37:42 -0700 Subject: [PATCH] Updated for version 2.5.5 --- science/ldas-tools-al/Portfile | 100 ++++++++++++++++++++++++----------------- 1 file changed, 59 insertions(+), 41 deletions(-) diff --git a/science/ldas-tools-al/Portfile b/science/ldas-tools-al/Portfile index ac4cacd..1c024f8 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 2 2 3 3 PortSystem 1.0 4 4 PortGroup compiler_blacklist_versions 1.0 5 5 6 6 name ldas-tools-al 7 version 2.5. 07 version 2.5.5 8 8 categories science 9 9 platforms darwin 10 10 maintainers ligo.org:ed.maros 11 11 12 description Suite of LDAS tools12 description LDAS Tools Abstraction library 13 13 long_description ${description} 14 14 15 15 homepage https://wiki.ligo.org/DASWG/LDASTools 16 16 master_sites http://software.ligo.org/lscsoft/source/ 17 17 18 checksums rmd160 65d06067bf42270eadc5704bc1e1985cef89b9db\19 sha256 97c907802ad2f3766be817720de93aafdec9ea5386e0ff6550659e435e5c0d7318 checksums rmd160 fc50f9c7911463fabd79f55e59fbcc8519bd45b1 \ 19 sha256 5583e511bd680a43023b1d9a1c05d3e0c11ac70624032e8c918bdb47dd7a4b8e 20 20 21 depends_lib port: openssl \21 depends_lib port:lib/libssl.dylib:openssl \ 22 22 port:zlib \ 23 23 port:bzip2 \ 24 24 port:flex 25 25 26 configure.args --disable-silent-rules \ 26 27 configure.args PYTHON=false \ 28 --disable-warnings-as-errors \ 29 --disable-silent-rules \ 27 30 --with-optimization=high \ 28 31 --disable-tcl \ 29 32 --disable-python \ … … configure.args --disable-silent-rules \ 31 34 --without-dot \ 32 35 --disable-latex 33 36 34 if {${os.major} < 13} { 37 #------------------------------------------------------------------------ 38 39 if {${configure.cxx_stdlib} eq "libstdc++" } { 35 40 configure.args-append --disable-cxx11 36 41 } 37 42 … … pre-activate { 51 56 } 52 57 } 53 58 54 #variant docs description {build documentation} {55 # configure.args-delete --disable-latex \56 # --disable-dot \57 # --disable-ldas-documentation \58 # configure.args-append --docdir=${prefix}/share/doc/ldas-tools59 #}60 61 59 #------------------------------------------------------------------------ 62 # Python variants63 60 #------------------------------------------------------------------------ 64 set pythons_suffixes {27 34}65 66 set pythons_ports {}67 foreach s ${pythons_suffixes} {68 lappend pythons_ports python${s}69 }70 71 foreach s ${pythons_suffixes} {72 set p python${s}73 set v [string index ${s} 0].[string index ${s} 1]74 set i [lsearch -exact ${pythons_ports} ${p}]75 set c [lreplace ${pythons_ports} ${i} ${i}]76 set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}77 eval [subst {78 variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {79 80 depends_build-append port:swig-python81 depends_lib-append port:${p} port:py${s}-numpy82 configure.args-strsed s/--disable-python/--enable-python/83 destroot.args-append pythondir="${d}" pyexecdir="${d}"84 85 }86 }]87 }88 61 89 62 livecheck.type regex 90 63 livecheck.url ${master_sites} 91 livecheck.regex {ldas-tools-(\d+(?:\.\d+)*).tar.gz} 64 livecheck.regex {ldas-tools-al-(\d+(?:\.\d+)*).tar.gz} 65 66 #======================================================================== 67 # Create subports for each supported Python version 68 #======================================================================== 69 foreach v {27} { 70 set python.version ${v} 71 set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end] 72 set python.bin ${prefix}/bin/python${python.branch} 73 set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} 74 set python.site_packages "${python.prefix}/lib/python${python.branch}/site-packages" 75 set python.pkgname LDAStools 76 77 subport py${v}-${name} { 78 categories-prepend python 79 description Python ${python.version} bindings for ${description} 80 long_description ${long_description} This package provides Python \ 81 ${python.version} bindings, modules, and scripts. 82 83 depends_build-append port:swig-python 84 depends_lib-append port:${name} 85 depends_lib-append port:python${python.version} 86 87 configure.python ${python.bin} 88 configure.args-replace PYTHON=false PYTHON=${python.prefix}/bin/python${python.version} 89 configure.args-replace --disable-python --enable-python 90 configure.args-append SWIG_CPPFLAGS="-I${python.prefix}/include" 91 92 destroot.args-append pythondir="${python.site_packages}" \ 93 pyexecdir="${python.site_packages}" \ 94 pkgpythondir="${python.site_packages}/${python.pkgname}" \ 95 pkgpyexecdir="${python.site_packages}/${python.pkgname}" 96 97 build.dir ${worksrcpath}/python 98 99 post-destroot { 100 if {${subport} eq "py27-${name}"} { 101 foreach script [glob -tails -nocomplain -directory ${destroot}${python.prefix}/bin *] { 102 file link -symbolic ${destroot}${prefix}/bin/${script} ../Library/Frameworks/Python.framework/Versions/${python.version}/bin/${script} 103 } 104 } 105 } 106 107 livecheck.type none 108 } 109 }