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$ |
---|
3 | PortSystem 1.0 |
---|
4 | name relax |
---|
5 | version 1.3.4 |
---|
6 | categories science |
---|
7 | maintainers bromo.med.uc.edu:howarth |
---|
8 | description relax |
---|
9 | long_description Protein dynamics by NMR relax. data analysis |
---|
10 | homepage http://www.nmr-relax.com/ |
---|
11 | platforms darwin |
---|
12 | master_sites http://download.gna.org/relax/ |
---|
13 | distfiles ${name}-${version}.src.tar.bz2 |
---|
14 | checksums md5 421d92a998bfd359678d689e2f65fc62 \ |
---|
15 | sha1 fb5a7b1533b10d358c141cfbf0a267deb502affb \ |
---|
16 | rmd160 2ba248402c3e0e0efaf00ac61696965ff316a0d0 |
---|
17 | use_bzip2 yes |
---|
18 | use_parallel_build no |
---|
19 | use_configure no |
---|
20 | PortGroup python26 1.0 |
---|
21 | depends_lib port:scons port:py26-minfx port:py26-scientific |
---|
22 | patchfiles relax.patch sample.patch |
---|
23 | post-patch { |
---|
24 | reinplace "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/scons/install.py \ |
---|
25 | ${worksrcpath}/sconstruct |
---|
26 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scons/install.py \ |
---|
27 | ${worksrcpath}/sconstruct |
---|
28 | } |
---|
29 | build { |
---|
30 | system "cd ${worksrcpath} && ${python.bin} ${prefix}/bin/scons" |
---|
31 | } |
---|
32 | destroot { |
---|
33 | system "cd ${worksrcpath}; ${python.bin} ${prefix}/bin/scons install" |
---|
34 | reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/relax/sconstruct |
---|
35 | ln -sf ${prefix}/lib/relax/relax ${destroot}${prefix}/bin/relax |
---|
36 | file delete -force ${destroot}${prefix}/lib/relax/version.pyc |
---|
37 | system "rm -f ${destroot}${prefix}/lib/relax/scons/*.pyc" |
---|
38 | } |
---|
39 | post-destroot { |
---|
40 | system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax" |
---|
41 | } |
---|