[60821] trunk/dports/science

jmr at macports.org jmr at macports.org
Tue Nov 24 23:34:09 PST 2009


Revision: 60821
          http://trac.macports.org/changeset/60821
Author:   jmr at macports.org
Date:     2009-11-24 23:34:08 -0800 (Tue, 24 Nov 2009)
Log Message:
-----------
New port: ccpnmr (#22151)

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

Added: trunk/dports/science/ccpnmr/Portfile
===================================================================
--- trunk/dports/science/ccpnmr/Portfile	                        (rev 0)
+++ trunk/dports/science/ccpnmr/Portfile	2009-11-25 07:34:08 UTC (rev 60821)
@@ -0,0 +1,76 @@
+# -*- 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
+
+name                ccpnmr
+version             2.1.2_1
+set branch          [join [lrange [split $version .] 0 1] .]
+categories          science python
+maintainers         bromo.med.uc.edu:howarth
+description         CCPNMR
+long_description    The CcpNmr software suite is a series of programs \
+                    for macromolecular NMR spectroscopy integrated with \
+                    the CCP data model. The CCP Data Model for macro- \
+                    molecular NMR is intended to cover all data needed \
+                    for macromolecular NMR spectroscopy from the initial \
+                    experimental data to the final validation.
+platforms           darwin
+homepage            http://www.ccpn.ac.uk/ccpn/software/ccpnmr-suite
+master_sites        http://www.bio.cam.ac.uk/ccpn/download/ccpnmr/
+distname            analysis${version}
+checksums           md5     a07435141127bf0311e2c792492c1c99 \
+                    sha1    f711a424da22c84295610483a6cc481d2d2161e9 \
+                    rmd160  f633a8338e3fbb9d8ad77c9482d63191419b0885
+worksrcdir          ${name}
+depends_lib         port:py26-scipy port:mesa port:tk
+patchfiles          ccpnmr.patch
+use_configure       no
+
+set python.branch	2.6
+set python.prefix	${frameworks_dir}/Python.framework/Versions/${python.branch}
+set python.bin	${python.prefix}/bin/python${python.branch}
+set python.pkgd	${python.prefix}/lib/python${python.branch}/site-packages
+set python.libdir ${python.prefix}/lib/python${python.branch}
+set python.include	${python.prefix}/include/python${python.branch}
+
+post-patch {
+    reinplace  "s|@PYTHON_BIN@|${python.bin}|g"   ${worksrcpath}/bin/analysis \
+                                                  ${worksrcpath}/bin/formatConverter \
+                                                  ${worksrcpath}/bin/pipe2azara \
+                                                  ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt \
+                                                  ${worksrcpath}/bin/dataShifter \
+                                                  ${worksrcpath}/bin/updateAll \
+                                                  ${worksrcpath}/bin/updateCheck
+    reinplace  "s|@PYTHON_PKGD@|${python.pkgd}|g" ${worksrcpath}/bin/analysis \
+                                                  ${worksrcpath}/bin/formatConverter \
+                                                  ${worksrcpath}/bin/pipe2azara \
+                                                  ${worksrcpath}/bin/dataShifter \
+                                                  ${worksrcpath}/bin/updateAll \
+                                                  ${worksrcpath}/bin/updateCheck
+    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt
+    reinplace  "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt
+    reinplace  "s|@PYTHON_INCL@|${python.include}|g" ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt
+    reinplace  "s|@PYTHON_LIB@|${python.libdir}|g" ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt
+    reinplace  "s|malloc.h|sys/malloc.h|g" ${worksrcpath}/ccpnmr${branch}/c/memops/global/macros.h
+}
+pre-build {
+    copy ${worksrcpath}/ccpnmr${branch}/c/environment-opengl.txt ${worksrcpath}/ccpnmr${branch}/c/environment.txt
+}
+build.args      CC=${configure.cc} ARCHFLAGS="${configure.cc_archflags}"
+build.dir       ${worksrcpath}/ccpnmr${branch}/c
+build.target    all links
+destroot {
+    foreach f {analysis dataShifter formatConverter pipe2azara updateAll updateCheck} {
+        xinstall -m 755 ${worksrcpath}/bin/${f} ${destroot}${prefix}/bin
+    }
+    file mkdir ${destroot}${python.pkgd}/${name}/${name}${branch}/
+    foreach d {c python data model doc} {
+        copy ${worksrcpath}/ccpnmr${branch}/${d} ${destroot}${python.pkgd}/${name}/${name}${branch}
+    }
+    system "echo '${name}/${name}${branch}/python' > ${destroot}${python.pkgd}/${name}.pth"
+    copy ${worksrcpath}/doc ${destroot}${python.pkgd}/${name}
+}
+post-destroot {
+    system "${python.bin} -O ${python.libdir}/compileall.py -d ${python.pkgd}/${name}/${name}${branch} ${destroot}${python.pkgd}/${name}/${name}${branch}"
+}


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

Added: trunk/dports/science/ccpnmr/files/ccpnmr.patch
===================================================================
--- trunk/dports/science/ccpnmr/files/ccpnmr.patch	                        (rev 0)
+++ trunk/dports/science/ccpnmr/files/ccpnmr.patch	2009-11-25 07:34:08 UTC (rev 60821)
@@ -0,0 +1,181 @@
+--- bin/analysis.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/analysis	2005-12-23 20:42:39.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -i -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisGui.py $1 $2 $3 $4 $5
+--- bin/formatConverter.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/formatConverter	2005-12-23 20:44:06.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/format/gui/FormatConverter.py $1 $2
+--- bin/pipe2azara.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/pipe2azara	2005-12-23 20:44:06.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/NmrPipeData.py $1 $2 $3
+--- ccpnmr2.1/c/environment-opengl.txt.orig	1970-01-01 01:00:00.000000000 +0100
++++ ccpnmr2.1/c/environment-opengl.txt	2005-12-23 21:37:59.000000000 +0000
+@@ -0,0 +1,56 @@
++#Environment file for use with fink to build ccpnmr suite - environment.txt
++
++CC = gcc
++LINK = $(CC)
++MAKE = make
++CO_NAME = -c $<
++OUT_NAME = -o $@
++OBJ_SUFFIX = o
++DYLIB_SUFFIX = so
++RM = rm -f
++WIN_FLAG =
++
++MALLOC_FLAG = 
++FPIC_FLAG = -fPIC
++CFLAGS = -O3 $(MALLOC_FLAG) $(FPIC_FLAG) -fno-common -ffast-math
++CC_FLAGS = $(CFLAGS) $(ARCHFLAGS)
++
++LINK_LIBRARIES = sh linkSharedObjs
++COPY_LIBRARIES = sh copySharedObjs
++
++GL_FLAG = -DUSE_GL_TRUE
++#GL_FLAG = -DUSE_GL_FALSE
++
++#GLUT_NEED_INIT =
++GLUT_NEED_INIT = -DNEED_GLUT_INIT
++#GLUT_NOT_IN_GL = -DGLUT_IN_OWN_DIR
++GLUT_FLAG = $(GLUT_NEED_INIT) $(GLUT_NOT_IN_GL)
++
++SHARED_FLAGS = -L at PREFIX@/lib -bundle -bundle_loader @PYTHON_BIN@ "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
++
++MATH_LIB = -lm
++
++X11_DIR = /usr/X11R6
++X11_LIB = -lX11 -lXext
++X11_INCLUDE_FLAGS = -I$(X11_DIR)/include
++X11_LIB_FLAGS = -L$(X11_DIR)/lib
++
++TCL_DIR = @PREFIX@
++TCL_LIB = -ltcl
++TCL_INCLUDE_FLAGS = -I$(TCL_DIR)/include
++TCL_LIB_FLAGS = -L$(TCL_DIR)/lib
++
++TK_DIR = @PREFIX@
++TK_LIB = -ltk
++TK_INCLUDE_FLAGS = -I$(TK_DIR)/include
++TK_LIB_FLAGS = -L$(TK_DIR)/lib
++
++PYTHON_DIR = @PREFIX@
++PYTHON_LIB = 
++PYTHON_INCLUDE_FLAGS = -I at PYTHON_INCL@
++PYTHON_LIB_FLAGS = -L at PREFIX@ -lpython2.6
++
++GL_DIR = /usr/X11R6
++GL_LIB = -lglut -lGLU -lGL
++GL_INCLUDE_FLAGS = -I$(GL_DIR)/include -I at PREFIX@/include
++GL_LIB_FLAGS = -L$(GL_DIR)/lib -L at PREFIX@/lib
+--- ccpnmr2.1/c/ccp/structure/Makefile.orig	2006-01-13 21:52:17.000000000 +0000
++++ ccpnmr2.1/c/ccp/structure/Makefile	2006-01-13 21:56:46.000000000 +0000
+@@ -35,11 +35,11 @@
+ 	$(GLOBAL_DIR)/py_ps_handler.o \
+ 	$(GLOBAL_DIR)/py_tk_handler.o
+ 
+-ALL_INCLUDE_FLAGS = $(GLOBAL_INCLUDE_FLAGS) $(PYTHON_INCLUDE_FLAGS) \
++ALL_INCLUDE_FLAGS = $(GL_INCLUDE_FLAGS) $(GLOBAL_INCLUDE_FLAGS) $(PYTHON_INCLUDE_FLAGS) \
+ 	$(X11_INCLUDE_FLAGS) \
+-	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS) $(GL_INCLUDE_FLAGS)
++	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS)
+ 
+-ALL_LIB_FLAGS = $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS) $(GL_LIB_FLAGS)
++ALL_LIB_FLAGS = $(GL_LIB_FLAGS) $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS)
+ 
+ ALL_LIB = $(GL_LIB) $(TK_LIB) $(TCL_LIB) $(X11_LIB) $(MATH_LIB)
+ 
+--- ccpnmr2.1/c/ccpnmr/analysis/Makefile.orig	2006-01-13 21:52:45.000000000 +0000
++++ ccpnmr2.1/c/ccpnmr/analysis/Makefile	2006-01-13 21:57:29.000000000 +0000
+@@ -40,11 +40,11 @@
+ 	$(GLOBAL_DIR)/py_ps_handler.o \
+ 	$(GLOBAL_DIR)/py_tk_handler.o
+ 
+-ALL_INCLUDE_FLAGS = $(GLOBAL_INCLUDE_FLAGS) $(PYTHON_INCLUDE_FLAGS) \
++ALL_INCLUDE_FLAGS = $(GL_INCLUDE_FLAGS) $(GLOBAL_INCLUDE_FLAGS) $(PYTHON_INCLUDE_FLAGS) \
+ 	$(X11_INCLUDE_FLAGS) \
+-	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS) $(GL_INCLUDE_FLAGS)
++	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS)
+ 
+-ALL_LIB_FLAGS = $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS) $(GL_LIB_FLAGS)
++ALL_LIB_FLAGS = $(GL_LIB_FLAGS) $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS)
+ 
+ ALL_LIB = $(GL_LIB) $(TK_LIB) $(TCL_LIB) $(X11_LIB) $(MATH_LIB)
+ 
+--- ccpnmr2.1/c/memops/global/Makefile.orig	2006-01-13 20:57:07.000000000 +0000
++++ ccpnmr2.1/c/memops/global/Makefile	2006-01-13 20:59:57.000000000 +0000
+@@ -99,10 +99,10 @@
+ 
+ TCLTK_LIB = $(TK_LIB) $(TCL_LIB) $(X11_LIB) $(MATH_LIB)
+ 
+-ALL_INCLUDE_FLAGS = $(PYTHON_INCLUDE_FLAGS) $(X11_INCLUDE_FLAGS) \
+-	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS) $(GL_INCLUDE_FLAGS)
++ALL_INCLUDE_FLAGS = $(GL_INCLUDE_FLAGS) $(PYTHON_INCLUDE_FLAGS) $(X11_INCLUDE_FLAGS) \
++	$(TCL_INCLUDE_FLAGS) $(TK_INCLUDE_FLAGS)
+ 
+-ALL_LIB_FLAGS = $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS) $(GL_LIB_FLAGS)
++ALL_LIB_FLAGS = $(GL_LIB_FLAGS) $(X11_LIB_FLAGS) $(TCL_LIB_FLAGS) $(TK_LIB_FLAGS)
+ 
+ ALL_LIB = $(GL_LIB) $(TK_LIB) $(TCL_LIB) $(X11_LIB) $(MATH_LIB)
+ 
+--- bin/dataShifter.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/dataShifter	2008-03-24 19:03:07.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/format/gui/DataShifter.py
+--- bin/updateAll.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/updateAll	2008-03-24 19:04:31.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -i -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/update/UpdateAuto.py
+--- bin/updateCheck.orig	1970-01-01 01:00:00.000000000 +0100
++++ bin/updateCheck	2008-03-24 19:06:16.000000000 +0000
+@@ -0,0 +1,9 @@
++#!/bin/sh
++
++export MallocLogFile=/dev/null
++
++if [ ${SSH_TTY} ]; then
++    export LIBGL_ALWAYS_INDIRECT=1
++fi
++
++ at PYTHON_BIN@ -i -O @PYTHON_PKGD@/ccpnmr/ccpnmr2.1/python/ccpnmr/update/UpdatePopup.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091124/e41e34f0/attachment-0001.html>


More information about the macports-changes mailing list