Skip to content
Snippets Groups Projects
Commit eb424cd9 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

small changes backported from macports Portfile

parent 99585b87
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ PortGroup python 1.0
version @_VERSION_@
revision @_REVISION_@
name py-plumed
categories science
categories python
platforms darwin
categories-append science
......@@ -16,11 +16,14 @@ 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
@_FETCH_@
python.versions 27 36 37
# when building from a git repository, we cannot set worksrcdir otherwise
# the whole repo is cloned at that position. We thus explicitly set worksrcdir
# at specific stages:
pre-configure {
worksrcdir ${distname}/python
}
......@@ -29,8 +32,12 @@ pre-test {
worksrcdir ${distname}/python
}
# 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
......@@ -40,6 +47,8 @@ if {${name} ne ${subport}} {
path:${prefix}/lib/libplumedKernel.dylib:plumed
depends_test-append port:py${python.version}-nose
test.cmd nosetests-${python.branch}
test.target
test.run yes
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment