Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (39 sloc) 1.99 KB
# -*- 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 plumed plumed2 2.5.1 v
name py-plumed
categories python
platforms darwin
categories-append science
license LGPL-3
maintainers {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer
description Python wrappers for plumed.
long_description ${description} They allow the plumed library to be directly used from python.
homepage http://www.plumed.org
checksums rmd160 403aed6e2bfb1d90c97246642f98d1b67e7a31d9 \
sha256 a9d96faab8163d0c876786feebb134befa03a65a5fbf1c7da3aa0332f53f7377 \
size 69102770
python.versions 27 36 37
# python setup is located in python subdir of plumed repository
worksrcdir ${distname}/python
if {${name} ne ${subport}} {
# setup the wrappers so that by default they load MacPorts plumed library
build.env-append plumed_default_kernel=${prefix}/lib/libplumedKernel.dylib \
plumed_macports=yes
depends_build-append port:py${python.version}-cython \
port:py${python.version}-setuptools
depends_lib-append path:${prefix}/lib/libplumedKernel.dylib:plumed
depends_test-append port:py${python.version}-nose
test.cmd nosetests-${python.branch}
# needed since the module is placed in something like ${worksrcpath}/build/lib.macosx-10.11-x86_64-3.7
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
test.target
test.run yes
}
notes "
PLUMED is linked with runtime binding. By setting the environment variable PLUMED_KERNEL\
to the path of libplumedKernel.dylib you can replace your own PLUMED library at runtime.\
By default, ${prefix}/lib/libplumedKernel.dylib is linked.
"
You can’t perform that action at this time.