# -*- 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
github.setup gpilab core-nodes 1.0.6 v
python.default_version 37
maintainers {eborisch @eborisch} \
description Core GPI nodes.
long_description The core nodes are a collection of basic data \
manipulation and visualization algorithms.
homepage http://gpilab.com
rmd160 840f103578a72ee37aabd3d7b1c95046d1ee56b8 \
sha256 6c7491cd5e6529eec7ea50ca0b927cfb6b6b62ccb1d1ea5e677ceda0391ec868 \
if {${name} ne ${subport} } {
depends_lib-append port:py${python.version}-gpilab-framework \
port:py${python.version}-h5py \
port:py${python.version}-matplotlib
patchfiles math_fft_PyMOD_cpp.patch
set MODS [glob ${worksrcpath}/*/*_PyMOD.cpp]
set D [file dirname ${mod}]
set M [string range [file tail ${mod}] 0 end-10]
ln -s ${worksrcpath} ${D}/core
system -W ${D} "${prefix}/bin/gpi_make-${python.version} ${M}"
system -W ${worksrcpath} \
"${prefix}/bin/python${python.branch} -O -m compileall ."
xinstall -d ${destroot}${prefix}/share/${subport}/
set PP ${destroot}${python.pkgd}/gpi/node-libs
# Normalize hack required due to symlink generation in github portgroup
file copy [file dirname [file normalize ${worksrcpath}/_]] ${PP}/core
"mv {AUT,LIC,COP,READ}* ${destroot}${prefix}/share/${subport}"
delete ${PP}/core/.gitattributes \