From eb424cd934db1f92a5c546e89a1b4fdaf8a6a0d1 Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Fri, 22 Feb 2019 10:12:05 +0100 Subject: [PATCH] small changes backported from macports Portfile --- macports/PortfilePython.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/macports/PortfilePython.in b/macports/PortfilePython.in index 7260ee3ef..e4a5aad8a 100644 --- a/macports/PortfilePython.in +++ b/macports/PortfilePython.in @@ -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 } -- GitLab