source: trunk/dports/science/relax/Portfile

Last change on this file was 148896, checked in by khindenburg@…, 2 years 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
RevLine 
[61028]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 khindenburg@macports.org $
3
4PortSystem          1.0
[110728]5PortGroup           python 1.0
[110279]6PortGroup           wxWidgets 1.0
[61028]7
8name                relax
[148896]9version             4.0.2
[109590]10categories          science python chemistry
[110728]11license             GPL-3
[127717]12maintainers         gmail.com:howarth.at.macports
[61028]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}
[148896]22
23checksums           rmd160  ed1d39aa4ac642aae873792b2ae9067cb20ebbb2 \
24                    sha256  7c12582ffb021ce728c5c4927c7dbb386bdb7121634eb30f687e5524e4bc4919
25
[61028]26use_bzip2           yes
[110728]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
[74961]36patchfiles          relax.patch
[61028]37post-patch {
[101566]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
[74961]40    reinplace  "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/sconstruct
[110728]41    reinplace  "s|@PYTHON_BIN@|${python.bin}|g" ${worksrcpath}/relax
[101566]42    reinplace  "s|@PYTHON_INCL@|${python.include}|g" ${worksrcpath}/sconstruct
[110728]43    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/sconstruct
[61028]44}
45build.cmd           ${prefix}/bin/scons
46build.target
[92413]47test.run            yes
[148896]48test.cmd            ./relax
[92413]49test.target         --test-suite
[61028]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
[148896]56    file delete -force {*}[glob -directory ${destroot}${prefix}/lib/relax/scons/ *.pyc]
[61028]57    system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax"
58}
[74961]59
60universal_variant   no
Note: See TracBrowser for help on using the repository browser.