source: trunk/dports/science/relax/Portfile @ 92413

Last change on this file since 92413 was 92413, checked in by ryandesign@…, 5 years ago

relax: update to 1.3.15; use python27 instead of python26; enable tests; see #34238

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 92413 2012-04-28 04:32:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python27 1.0
6
7name                relax
8version             1.3.15
9categories          science python
10maintainers         bromo.med.uc.edu:howarth
11description         Protein dynamics by NMR relax. data analysis
12long_description    The program relax is designed for the study of the \
13                    dynamics of proteins or other macromolecules though the \
14                    analysis of NMR relaxation data.
15homepage            http://www.nmr-relax.com/
16platforms           darwin
17master_sites        http://download.gna.org/relax/
18distfiles           ${name}-${version}.src.tar.bz2
19dist_subdir         ${name}
20checksums           md5     74790cfd285c2437046e98d9241671cd \
21                    sha1    6dcfc8911675e5a87ff326085f31530383b7a2f0 \
22                    rmd160  51dd3dba2b841a06e180654cf77f4b1954e8d1a6
23use_bzip2           yes
24depends_lib-append  port:scons port:py27-scipy port:py27-numpy \
25                    port:py27-wxpython-devel port:pymol
26patchfiles          relax.patch
27post-patch {
28    reinplace  "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/sconstruct
29    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/sconstruct \
30                                        ${worksrcpath}/relax
31}
32build.cmd           ${prefix}/bin/scons
33build.target
34test.run            yes
35test.cmd            relax
36test.target         --test-suite
37destroot.cmd        ${build.cmd}
38destroot.destdir    DESTDIR=${destroot}
39post-destroot {
40    reinplace  "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/relax/sconstruct
41    ln -sf ${prefix}/lib/relax/relax ${destroot}${prefix}/bin/relax
42    file delete -force ${destroot}${prefix}/lib/relax/version.pyc
43    eval file delete -force [glob -directory ${destroot}${prefix}/lib/relax/scons/ *.pyc]
44    system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax"
45}
46
47universal_variant   no
Note: See TracBrowser for help on using the repository browser.