# -*- 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 PortSystem 1.0 PortGroup python 1.0 PortGroup github 1.0 github.setup gpilab core-nodes 2.0.2 v name py-gpilab-core revision 0 python.versions 35 36 37 python.default_version 37 platforms darwin license {BSD LGPL-3+} maintainers {eborisch @eborisch} \ openmaintainer description Core GPI nodes. long_description The core nodes are a collection of basic data \ manipulation and visualization algorithms. homepage http://gpilab.com checksums \ rmd160 b59e428fdcc5a2cd4fa29928249524d97d25aec7 \ sha256 681da0b41123c85e3e09b0e705b44d85e42cda6e66ad03c914cf10a20b35fa97 \ size 180557 if {${name} ne ${subport} } { depends_lib-append port:py${python.version}-gpilab-framework \ port:py${python.version}-qtpy \ port:py${python.version}-h5py \ port:py${python.version}-matplotlib patchfiles math_fft_PyMOD_cpp.patch \ Matplotlib_GPI.py.patch use_configure no build { set MODS [glob ${worksrcpath}/*/*_PyMOD.cpp] foreach mod ${MODS} { set D [file dirname ${mod}] set M [string range [file tail ${mod}] 0 end-10] ln -s ${worksrcpath} ${D}/gpi_core system -W ${D} "${prefix}/bin/gpi_make-${python.version} ${M}" delete ${D}/gpi_core } system -W ${worksrcpath} \ "${prefix}/bin/python${python.branch} -O -m compileall ." } destroot { xinstall -d ${destroot}${prefix}/share/${subport}/ set PP ${destroot}${python.pkgd} xinstall -d ${PP} # Normalize hack required due to symlink generation in github portgroup file copy [file dirname [file normalize ${worksrcpath}/_]] ${PP}/gpi_core system -W ${PP}/gpi_core \ "mv {AUT,LIC,COP,READ}* ${destroot}${prefix}/share/${subport}" delete ${PP}/gpi_core/.gitattributes \ ${PP}/gpi_core/.gitignore fs-traverse pth ${PP}/gpi_core { if {[file isfile ${pth}]} { if {[string match *build/temp* ${pth}] || [string match *.c ${pth}] || [string match *.cpp ${pth}]} { delete ${pth} } } } } livecheck.type none }