summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-07-19 16:05:51 +0000
committerJustin Lecher <jlec@gentoo.org>2012-07-19 16:05:51 +0000
commitcd616255eb5296fcc923e3f302248835c7cd3ee9 (patch)
treed7bac8d41a6f195a9c5f9c191b4b3977817dfa49 /sci-chemistry
parentVersion bump (diff)
downloadgentoo-2-cd616255eb5296fcc923e3f302248835c7cd3ee9.tar.gz
gentoo-2-cd616255eb5296fcc923e3f302248835c7cd3ee9.tar.bz2
gentoo-2-cd616255eb5296fcc923e3f302248835c7cd3ee9.zip
sci-chemistry/relax: New addition
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/relax/ChangeLog10
-rw-r--r--sci-chemistry/relax/Manifest5
-rw-r--r--sci-chemistry/relax/files/relax-2.1.0-gentoo.patch27
-rw-r--r--sci-chemistry/relax/metadata.xml30
-rw-r--r--sci-chemistry/relax/relax-2.1.0.ebuild59
5 files changed, 131 insertions, 0 deletions
diff --git a/sci-chemistry/relax/ChangeLog b/sci-chemistry/relax/ChangeLog
new file mode 100644
index 000000000000..557f781a3ed9
--- /dev/null
+++ b/sci-chemistry/relax/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/relax
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/ChangeLog,v 1.1 2012/07/19 16:05:51 jlec Exp $
+
+*relax-2.1.0 (19 Jul 2012)
+
+ 19 Jul 2012; Justin Lecher <jlec@gentoo.org> +relax-2.1.0.ebuild,
+ +files/relax-2.1.0-gentoo.patch, +metadata.xml:
+ New addition
+
diff --git a/sci-chemistry/relax/Manifest b/sci-chemistry/relax/Manifest
new file mode 100644
index 000000000000..3a31b590b3d1
--- /dev/null
+++ b/sci-chemistry/relax/Manifest
@@ -0,0 +1,5 @@
+AUX relax-2.1.0-gentoo.patch 910 SHA256 2e85e979fa61e950def08e5a71e0d61662d5d8755a50fa6f4210000760778dbe SHA512 45c537b69b84e67fbadfcc30ae51f8f2d86d897c6187a1008b974899e8464cc638ad21b7e43eb2395887a962dcd6a751e24e4d46fec3639413a90de7fbfb98e6 WHIRLPOOL fd3ffa8d5926586b2d8ff56e3e3e20cf816987a23358e823c39ed4217d53fbea43185c5bcc1abb9bbcb0703e84f1243cbca5db7cb26d432755b488950db72171
+DIST relax-2.1.0.src.tar.bz2 22054720 SHA256 e7908dbf774e1eb866f45fc222d14935624ce9fe4453da979d1b6cb7e1204dd4 SHA512 e42fb050097de6c79751477e1b9e8ff76f8d495fae446380785d8bf8a0e384df4837b283d95c6988e9e5a2aec9af54369a53cc5584d233c58448882f07235dd0 WHIRLPOOL 51b62e2515780248345c14e1fd11511e8dba1832c69178dca1afb0784b2d411ddb21d3f305e04216ef8e041ea1ce560a40135617f91a5bb5e94d19c76ec0cab6
+EBUILD relax-2.1.0.ebuild 1046 SHA256 9d903734da7a613784ea31cc6ded38fc3beddc806cec690b9fc40c28d46fcc76 SHA512 280e32fe7918606d1fd10ce8c67223d98751a19fd40a762c8ada6b2626208d45f50c2ec563bf976cfcb8c77ea13a838b752f7eaffda0d0c65b346d108d57b6c6 WHIRLPOOL 208d967b881fe67426e38aa1c0c521a2ecac81d588c4f00794c834faf116eb44193caf37a1d4e238693d957469678c02854aa37793216e576e4ce376c8bdbba2
+MISC ChangeLog 282 SHA256 5869c7c00f32849551d1fd91fa6bf2ca5286284d715aca6815037e568de2b648 SHA512 ed9d455abd36a258771666842c9140772c672ed1e77f24e70fe94491dbe51ae6aff2ad04d16d4ba20db852e62c20fb8a5e87a43ef1ca022b606f540a3385a986 WHIRLPOOL 68507017f913e150020fc6f6fecdd8d7a926609bf13e332f6f24727a7afd2308efd11f8af67d61434b6da3a231239e4c57d50d059e052abd2770fd9f44b97c6a
+MISC metadata.xml 1309 SHA256 a4efc57396e2e72aefa0b878bcc594ddf36c0836dd541d1368e8a5343a25de29 SHA512 c60a2123c136915a51d383ac99b384c5eab87af3e42d93f433ab1906d71f1b9d37009e85bf6e9c58fb24d98026592cf4c3a6dfc34b1e433e139921e8adfd2d75 WHIRLPOOL 009442176479969658126d69976a2f4198f877d0f44045dbc16a65d9f8315f7f20f8938f22eed570f679cd14aba62c569a2b50b1b879619b2ad2ae7612816811
diff --git a/sci-chemistry/relax/files/relax-2.1.0-gentoo.patch b/sci-chemistry/relax/files/relax-2.1.0-gentoo.patch
new file mode 100644
index 000000000000..3edbfb287a1b
--- /dev/null
+++ b/sci-chemistry/relax/files/relax-2.1.0-gentoo.patch
@@ -0,0 +1,27 @@
+ sconstruct | 6 +++++-
+ 1 files changed, 5 insertions(+), 1 deletions(-)
+
+diff --git a/sconstruct b/sconstruct
+index c0fab95..c9d5e2c 100644
+--- a/sconstruct
++++ b/sconstruct
+@@ -26,7 +26,7 @@
+
+ # Import statements.
+ from numpy import get_include
+-from os import getcwd, path, remove, sep, walk
++from os import getcwd, path, remove, sep, walk, environ
+ import platform
+ from re import search
+ from shutil import rmtree
+@@ -586,6 +586,10 @@ class Main:
+ for file in files:
+ nodes.append(env.SharedObject(dir + path.sep + file, CCFLAGS=cflags))
+
++ env.Append(LINKFLAGS = environ['LDFLAGS'])
++ env.Append(CFLAGS = environ['CFLAGS'])
++ env.Replace(CC = environ['CC'])
++
+ # Build the relaxation curve fitting module.
+ self.relax_fit_object = env.SharedLibrary(target=dir + path.sep + 'relax_fit', source=nodes, SHLIBPREFIX=prefix, SHLIBSUFFIX=suffix)
+
diff --git a/sci-chemistry/relax/metadata.xml b/sci-chemistry/relax/metadata.xml
new file mode 100644
index 000000000000..b1c325bde991
--- /dev/null
+++ b/sci-chemistry/relax/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-chemistry</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+The program relax is a software package designed for the study of molecular
+dynamics through the analysis of experimental NMR data. Organic molecules,
+proteins, RNA, DNA, sugars, and other biomolecules are all supported. It
+was originally written for the model-free analysis of protein dynamics,
+though its scope has been significantly expanded.
+
+relax is a community driven project created by NMR spectroscopists for
+NMR spectroscopists. It supports a diverse range of analyses:
+
+Model-free analysis - the Lipari and Szabo model-free analysis of NMR
+ relaxation data.
+R1 and R2 - the exponential curve fitting for the calculation of the
+ Rx NMR relaxation rates.
+NOE - the calculation of the steady-state NOE NMR relaxation data.
+Consistency testing of multiple field NMR relaxation data.
+RSDM - Reduced Spectral Density Mapping.
+Frame order and N-state model - study of domain motions via the N-state
+ model and frame order dynamics theories using anisotropic
+ NMR parameters such as RDCs and PCSs.
+Stereochemistry investigations.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-chemistry/relax/relax-2.1.0.ebuild b/sci-chemistry/relax/relax-2.1.0.ebuild
new file mode 100644
index 000000000000..6d8f10a6e160
--- /dev/null
+++ b/sci-chemistry/relax/relax-2.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/relax-2.1.0.ebuild,v 1.1 2012/07/19 16:05:51 jlec Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+
+WX_GTK_VER="2.8"
+
+inherit eutils python scons-utils toolchain-funcs wxwidgets
+
+DESCRIPTION="Molecular dynamics by NMR data analysis"
+HOMEPAGE="http://www.nmr-relax.com/"
+SRC_URI="http://download.gna.org/relax/${P}.src.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ dev-python/numpy
+ sci-libs/bmrblib
+ sci-libs/minfx
+ sci-libs/scipy
+ x11-libs/wxGTK:2.8[X]"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ wxwidgets_pkg_setup
+ python_pkg_setup
+ python_set_active_version 2
+}
+
+src_prepare() {
+ rm -rf minfx bmrblib
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ tc-export CC
+}
+
+src_compile() {
+ escons
+}
+
+src_test() {
+ $(PYTHON) ./${PN}.py -s || die
+ $(PYTHON) ./${PN}.py -x || die
+}
+
+src_install() {
+ dodoc README
+ rm ${PN} README || doe
+
+ insinto $(python_get_sitedir)/${PN}
+ doins -r *
+
+ make_wrapper ${PN} "$(PYTHON) $(python_get_sitedir)/${PN}/${PN}.py $@"
+}