[61028] trunk/dports/science

jmr at macports.org jmr at macports.org
Sun Nov 29 23:42:12 PST 2009


Revision: 61028
          http://trac.macports.org/changeset/61028
Author:   jmr at macports.org
Date:     2009-11-29 23:42:11 -0800 (Sun, 29 Nov 2009)
Log Message:
-----------
New port: relax (#22230)

Added Paths:
-----------
    trunk/dports/science/relax/
    trunk/dports/science/relax/Portfile
    trunk/dports/science/relax/files/
    trunk/dports/science/relax/files/relax.patch
    trunk/dports/science/relax/files/sample.patch

Added: trunk/dports/science/relax/Portfile
===================================================================
--- trunk/dports/science/relax/Portfile	                        (rev 0)
+++ trunk/dports/science/relax/Portfile	2009-11-30 07:42:11 UTC (rev 61028)
@@ -0,0 +1,43 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+PortGroup           python26 1.0
+
+name                relax
+version             1.3.4
+categories          science python
+maintainers         bromo.med.uc.edu:howarth
+description         Protein dynamics by NMR relax. data analysis
+long_description    The program relax is designed for the study of the \
+                    dynamics of proteins or other macromolecules though the \
+                    analysis of NMR relaxation data.
+homepage            http://www.nmr-relax.com/
+platforms           darwin
+master_sites        http://download.gna.org/relax/
+distfiles           ${name}-${version}.src.tar.bz2
+dist_subdir         ${name}
+checksums           md5     421d92a998bfd359678d689e2f65fc62 \
+                    sha1    fb5a7b1533b10d358c141cfbf0a267deb502affb \
+                    rmd160  2ba248402c3e0e0efaf00ac61696965ff316a0d0
+use_bzip2           yes
+depends_lib         port:scons port:py26-minfx port:py26-scientific
+patchfiles          relax.patch sample.patch
+post-patch {
+    reinplace  "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/scons/install.py \
+                                             ${worksrcpath}/sconstruct
+    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scons/install.py \
+                                        ${worksrcpath}/sconstruct \
+                                        ${worksrcpath}/relax
+}
+build.cmd           ${prefix}/bin/scons
+build.target
+destroot.cmd        ${build.cmd}
+destroot.destdir    DESTDIR=${destroot}
+post-destroot {
+    reinplace  "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/relax/sconstruct
+    ln -sf ${prefix}/lib/relax/relax ${destroot}${prefix}/bin/relax
+    file delete -force ${destroot}${prefix}/lib/relax/version.pyc
+    eval file delete -force [glob -directory ${destroot}${prefix}/lib/relax/scons/ *.pyc]
+    system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax"
+}


Property changes on: trunk/dports/science/relax/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/relax/files/relax.patch
===================================================================
--- trunk/dports/science/relax/files/relax.patch	                        (rev 0)
+++ trunk/dports/science/relax/files/relax.patch	2009-11-30 07:42:11 UTC (rev 61028)
@@ -0,0 +1,60 @@
+--- relax.orig	2007-02-19 00:36:06.000000000 -0500
++++ relax	2008-08-11 02:13:30.000000000 -0400
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#!@PREFIX@/bin/python2.6
+ 
+ ###############################################################################
+ #                                                                             #
+--- scons/install.py.orig	2008-08-10 15:31:01.000000000 -0400
++++ scons/install.py	2008-08-10 16:01:22.000000000 -0400
+@@ -112,8 +112,8 @@
+     ###############
+ 
+     # Run relax to create the *.pyc files.
+-    print "\nRunning relax to create the byte-compiled *.pyc files."
+-    system(env['SYMLINK'] + " --test")
++    # print "\nRunning relax to create the byte-compiled *.pyc files."
++    # system(env['SYMLINK'] + " --test")
+ 
+     # Final print out.
+     print "\n\n\n"
+--- sconstruct.orig	2007-02-19 00:36:06.000000000 -0500
++++ sconstruct	2008-08-11 02:02:56.000000000 -0400
+@@ -94,7 +94,7 @@
+     SYS = SYSTEM
+ 
+     # Mac OS X installation path.
+-    INSTALL_PATH = sys.prefix + sep + 'local'
++    INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib'
+ 
+ 
+ # All other operating systems.
+@@ -111,16 +111,15 @@
+ ###############
+ 
+ # Relax installation directory.
+-RELAX_PATH = INSTALL_PATH + sep + 'relax'
++RELAX_PATH = INSTALL_PATH + sep + 'relax'
+ 
+ # Installation path for binaries.
+-BIN_PATH = INSTALL_PATH + sep + 'bin'
++BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin'
+ 
+ # Symbolic link installation path.
+ SYMLINK = BIN_PATH + sep + 'relax'
+ 
+ 
+-
+ # The distribution files.
+ #########################
+ 
+@@ -486,7 +485,7 @@
+ 
+         # Catch Mac OS X and send the correct command line options to the linker (these may become redundant as SCons improves).
+         if env['PLATFORM'] == 'darwin':
+-            env.Append(LINKFLAGS = ['-bundle', '-bundle_loader', sys.prefix + path.sep + 'bin' + path.sep + 'python', '-dynamic'])
++            env.Append(LINKFLAGS = ['-bundle', '-bundle_loader', sys.prefix + path.sep + 'bin' + path.sep + 'python2.6', '-dynamic', '-undefined', 'dynamic_lookup'])
+             env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
+             env['SHLIBSUFFIX'] = '.so'
+ 

Added: trunk/dports/science/relax/files/sample.patch
===================================================================
--- trunk/dports/science/relax/files/sample.patch	                        (rev 0)
+++ trunk/dports/science/relax/files/sample.patch	2009-11-30 07:42:11 UTC (rev 61028)
@@ -0,0 +1,29 @@
+--- sample_scripts/relax_curve_diff.py.org	2009-10-30 21:42:35.000000000 -0400
++++ sample_scripts/relax_curve_diff.py	2009-10-30 21:43:11.000000000 -0400
+@@ -62,7 +62,7 @@
+     cdp = pipes.get_pipe()
+ 
+     # Loop over the spins.
+-    for spin in spin_loop()
++    for spin in spin_loop():
+         # Skip deselected spins.
+         if not spin.select:
+             continue
+@@ -106,7 +106,7 @@
+     ###################################
+ 
+     # Loop over the spins.
+-    for spin in spin_loop()
++    for spin in spin_loop():
+         # Skip deselected spins.
+         if not spin.select:
+             continue
+@@ -132,7 +132,7 @@
+     ####################################
+ 
+     # Loop over the spins.
+-    for spin in spin_loop()
++    for spin in spin_loop():
+         # Skip deselected spins.
+         if not spin.select:
+             continue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091129/b1da860b/attachment-0001.html>


More information about the macports-changes mailing list