source: trunk/dports/science/relax/Portfile

Last change on this file was 148896, checked in by khindenburg@…, 16 months ago

relax: update to 4.0.2 maintainer #51461

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 148896 2016-05-22 14:58:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           wxWidgets 1.0
7
8name                relax
9version             4.0.2
10categories          science python chemistry
11license             GPL-3
12maintainers         gmail.com:howarth.at.macports
13description         Protein dynamics by NMR relax. data analysis
14long_description    The program relax is designed for the study of the \
15                    dynamics of proteins or other macromolecules though the \
16                    analysis of NMR relaxation data.
17homepage            http://www.nmr-relax.com/
18platforms           darwin
19master_sites        http://download.gna.org/relax/
20distfiles           ${name}-${version}.src.tar.bz2
21dist_subdir         ${name}
22
23checksums           rmd160  ed1d39aa4ac642aae873792b2ae9067cb20ebbb2 \
24                    sha256  7c12582ffb021ce728c5c4927c7dbb386bdb7121634eb30f687e5524e4bc4919
25
26use_bzip2           yes
27
28python.default_version 27
29
30depends_build-append \
31                    port:scons
32depends_lib-append  port:pymol \
33                    port:py${python.version}-scipy \
34                    port:py${python.version}-numpy \
35                    port:py${python.version}-wxpython-3.0
36patchfiles          relax.patch
37post-patch {
38    reinplace  "s|'i386', 'ppc', 'x86_64'|'${build_arch}'|g" ${worksrcpath}/sconstruct
39    reinplace  "s|cflags = '-I'|cflags = '-O3 -ffast-math -funroll-loops -I'|g" ${worksrcpath}/sconstruct
40    reinplace  "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/sconstruct
41    reinplace  "s|@PYTHON_BIN@|${python.bin}|g" ${worksrcpath}/relax
42    reinplace  "s|@PYTHON_INCL@|${python.include}|g" ${worksrcpath}/sconstruct
43    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/sconstruct
44}
45build.cmd           ${prefix}/bin/scons
46build.target
47test.run            yes
48test.cmd            ./relax
49test.target         --test-suite
50destroot.cmd        ${build.cmd}
51destroot.destdir    DESTDIR=${destroot}
52post-destroot {
53    reinplace  "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/relax/sconstruct
54    ln -sf ${prefix}/lib/relax/relax ${destroot}${prefix}/bin/relax
55    file delete -force ${destroot}${prefix}/lib/relax/version.pyc
56    file delete -force {*}[glob -directory ${destroot}${prefix}/lib/relax/scons/ *.pyc]
57    system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax"
58}
59
60universal_variant   no
Note: See TracBrowser for help on using the repository browser.