Ticket #40341: relax-3.0.0.diff
File relax-3.0.0.diff, 4.2 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup python 271.05 PortGroup python 1.0 6 6 PortGroup wxWidgets 1.0 7 7 8 8 name relax 9 version 2.2.49 version 3.0.0 10 10 categories science python chemistry 11 license GPL-3 11 12 maintainers bromo.med.uc.edu:howarth 12 13 description Protein dynamics by NMR relax. data analysis 13 14 long_description The program relax is designed for the study of the \ … … 18 19 master_sites http://download.gna.org/relax/ 19 20 distfiles ${name}-${version}.src.tar.bz2 20 21 dist_subdir ${name} 21 checksums md5 0b8c7b357f7ca662506ee339dd41cbd7\22 sha1 e0c3548566ae8b44ed9f761600568180a5de2224\23 rmd160 815834bc2f6b63a4f2fa0f68839de2516669427422 checksums md5 eb89c6879545973de95d58797f584301 \ 23 sha1 f0cc6716d44bcbf4b8fd6b73d6d5847e738700fc \ 24 rmd160 7124ecee5c35eb8935c966759b6707a26fce7fe1 24 25 use_bzip2 yes 25 depends_lib-append port:scons port:py27-scipy port:py27-numpy \ 26 port:py27-wxpython-3.0 port:pymol 26 27 python.default_version 27 28 29 depends_build-append \ 30 port:scons 31 depends_lib-append port:pymol \ 32 port:py${python.version}-scipy \ 33 port:py${python.version}-numpy \ 34 port:py${python.version}-wxpython-3.0 27 35 patchfiles relax.patch 28 36 post-patch { 29 37 reinplace "s|'i386', 'ppc', 'x86_64'|'${build_arch}'|g" ${worksrcpath}/sconstruct 30 38 reinplace "s|cflags = '-I'|cflags = '-O3 -ffast-math -funroll-loops -I'|g" ${worksrcpath}/sconstruct 31 39 reinplace "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/sconstruct 40 reinplace "s|@PYTHON_BIN@|${python.bin}|g" ${worksrcpath}/relax 32 41 reinplace "s|@PYTHON_INCL@|${python.include}|g" ${worksrcpath}/sconstruct 33 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/sconstruct \ 34 ${worksrcpath}/relax 42 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/sconstruct 35 43 } 36 44 build.cmd ${prefix}/bin/scons 37 45 build.target -
files/relax.patch
1 1 --- sconstruct.orig 2012-10-17 10:28:31.000000000 -0400 2 2 +++ sconstruct 2013-01-13 17:36:49.000000000 -0500 3 @@ - 100,7 +100,7 @@3 @@ -99,7 +99,7 @@ 4 4 SYS = SYSTEM 5 5 6 6 # Mac OS X installation path. … … 9 9 10 10 11 11 # All other operating systems. 12 @@ -1 20,13 +120,12 @@12 @@ -119,13 +119,12 @@ 13 13 RELAX_PATH = INSTALL_PATH + sep + 'relax' 14 14 15 15 # Installation path for binaries. … … 24 24 # The distribution files. 25 25 ######################### 26 26 27 @@ -53 3,11 +532,11 @@27 @@ -532,11 +531,11 @@ 28 28 'relax_fit.c'] 29 29 30 30 # Construct the python include path (for Python.h). … … 37 37 + py_bin_minpath = '@PREFIX@'+ path.sep + 'bin' 38 38 py_bin_fullpath = py_bin_minpath + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]` 39 39 40 # Get the numpy include path (for numpy/arrayobject.h).40 # Relaxation curve fitting build environment. 41 41 --- relax.orig 2012-06-11 05:51:33.000000000 -0400 42 42 +++ relax 2012-06-16 17:03:52.000000000 -0400 43 43 @@ -1,4 +1,4 @@ 44 44 -#! /usr/bin/env python 45 +#!@P REFIX@/bin/python2.745 +#!@PYTHON_BIN@ 46 46 47 47 # Import the relax module. 48 48 import relax … … 65 65 66 66 # Final printout. 67 67 print("\n\n\n") 68 ======================== 69 fixed upstream in r20596 70 ======================== 71 --- test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_pseudo_ellipse.py.orig 72 +++ test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_pseudo_ellipse.py 73 @@ -151,7 +151,7 @@ class Analysis: 74 75 # PyMOL. 76 pymol.view() 77 - pymol.command('show spheres'_pseudo_ellipse) 78 + pymol.command('show spheres') 79 pymol.cone_pdb('cone_pseudo_ellipse.pdb') 80 81