summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-05-24 20:59:55 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-05-24 20:59:55 +0000
commite9faa98dad49265f254f09f6cc8091d727354b4a (patch)
treea9530c36dfd5a27dfde9c84b4f8cc58afd10388d /sci-chemistry
parentuse $ROOT in gamesenv (diff)
downloadgentoo-2-e9faa98dad49265f254f09f6cc8091d727354b4a.tar.gz
gentoo-2-e9faa98dad49265f254f09f6cc8091d727354b4a.tar.bz2
gentoo-2-e9faa98dad49265f254f09f6cc8091d727354b4a.zip
Initial import
(Portage version: 2.0.51.19)
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/nmrpipe/ChangeLog10
-rw-r--r--sci-chemistry/nmrpipe/Manifest4
-rw-r--r--sci-chemistry/nmrpipe/files/digest-nmrpipe-2005041510
-rw-r--r--sci-chemistry/nmrpipe/files/nmrpipe-20050415-env22
-rw-r--r--sci-chemistry/nmrpipe/metadata.xml9
-rw-r--r--sci-chemistry/nmrpipe/nmrpipe-20050415.ebuild121
6 files changed, 176 insertions, 0 deletions
diff --git a/sci-chemistry/nmrpipe/ChangeLog b/sci-chemistry/nmrpipe/ChangeLog
new file mode 100644
index 000000000000..4fd4ffc9de90
--- /dev/null
+++ b/sci-chemistry/nmrpipe/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/nmrpipe
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/nmrpipe/ChangeLog,v 1.1 2005/05/24 20:59:55 ribosome Exp $
+
+*nmrpipe-20050415 (24 May 2005)
+
+ 24 May 2005; Olivier Fisette <ribosome@gentoo.org>
+ +files/nmrpipe-20050415-env, +metadata.xml, +nmrpipe-20050415.ebuild:
+ Initial import.
+
diff --git a/sci-chemistry/nmrpipe/Manifest b/sci-chemistry/nmrpipe/Manifest
new file mode 100644
index 000000000000..42eb1552db5a
--- /dev/null
+++ b/sci-chemistry/nmrpipe/Manifest
@@ -0,0 +1,4 @@
+MD5 19a9ddc2b52d3e37388ea138e88f93a1 nmrpipe-20050415.ebuild 3784
+MD5 f189a3c4ff5ae55bcee4f8ed0ace5d20 metadata.xml 254
+MD5 a0cf759ccc9f784668a46fea06921a91 files/digest-nmrpipe-20050415 583
+MD5 e7236bf3258e1cb32a99df7d3887b7d6 files/nmrpipe-20050415-env 466
diff --git a/sci-chemistry/nmrpipe/files/digest-nmrpipe-20050415 b/sci-chemistry/nmrpipe/files/digest-nmrpipe-20050415
new file mode 100644
index 000000000000..49d98abac037
--- /dev/null
+++ b/sci-chemistry/nmrpipe/files/digest-nmrpipe-20050415
@@ -0,0 +1,10 @@
+MD5 694225aef24266d5bbeff27b900b248c nmrpipe.linux9.tar.Z 21927231
+MD5 bd7b0dfd903eab1df014bb9d7356612b xview_fonts.tar.Z 2183991
+MD5 06d27f018d0abd3e2e35fcd923423af3 xview.linux9.tar.Z 4047400
+MD5 45e4773ed5f7e7cc721453d8f5a68934 dyn.tar.Z 37517562
+MD5 f5d0f86f3a8c224943969830e435e6f0 mfr.tar.Z 823825
+MD5 b33e195e36e9c35a970632dc9670d312 pdbH.tar.Z 75004655
+MD5 02123d6fe1f1ef79b59ef8ffa662f338 valpha.tar 35779984
+MD5 f8df76a619d702153a19b23f1678aca6 acme.tar.Z 11681951
+MD5 c4c1ef656285419fc4f19a5ae19204f7 binval.com 3125
+MD5 8d52d41c11c497778ce277999452e635 install.com 20316
diff --git a/sci-chemistry/nmrpipe/files/nmrpipe-20050415-env b/sci-chemistry/nmrpipe/files/nmrpipe-20050415-env
new file mode 100644
index 000000000000..29239a092cfd
--- /dev/null
+++ b/sci-chemistry/nmrpipe/files/nmrpipe-20050415-env
@@ -0,0 +1,22 @@
+# Platform
+BINTYPE="linux9"
+
+# NMRPipe
+NMRBASE="/opt/nmrpipe"
+MANPATH="${NMRBASE}/man"
+PATH="${NMRBASE}/nmrbin.linux9"
+# Auxiliary NMRPipe scripts
+# PATH="${NMRBASE}/com"
+
+# Dynamo
+DYNAMO_DIR="${NMRBASE}/dynamo"
+DYNAMO_PARAMS="${DYNAMO_DIR}/params"
+SURF_DIR="${DYNAMO_DIR}/surface"
+PATH="${DYNAMO_DIR}/tcl"
+DYNAMO_KEY="2002084"
+
+# PDBH
+PDBH_BASE="${NMRBASE}/pdb"
+PDBH_DIR="${PDBH_BASE}/pdbH"
+PDBH_LIST="${PDBH_BASE}/pdbH.list"
+PDBH_TAB="${PDBH_BASE}/resolution.tab"
diff --git a/sci-chemistry/nmrpipe/metadata.xml b/sci-chemistry/nmrpipe/metadata.xml
new file mode 100644
index 000000000000..e9391a41a838
--- /dev/null
+++ b/sci-chemistry/nmrpipe/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ribosome@gentoo.org</email>
+ <name>Olivier Fisette</name>
+ </maintainer>
+ <herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-chemistry/nmrpipe/nmrpipe-20050415.ebuild b/sci-chemistry/nmrpipe/nmrpipe-20050415.ebuild
new file mode 100644
index 000000000000..41d49c5626b6
--- /dev/null
+++ b/sci-chemistry/nmrpipe/nmrpipe-20050415.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/nmrpipe/nmrpipe-20050415.ebuild,v 1.1 2005/05/24 20:59:55 ribosome Exp $
+
+DESCRIPTION="Spectral visualisation, analysis and Fourier processing"
+# The specific terms of this license are printed automatically on startup
+# by some NMRPipe applications. The user also has to accept them before
+# downloading the package.
+LICENSE="as-is"
+HOMEPAGE="http://spin.niddk.nih.gov/bax/software/NMRPipe/"
+# The NMRPipe installation script which we are not allowed to modify
+# requires all the following to be present for a complete installation.
+# Many of the bundled applications and libraries are afterwards deleted
+# (by this ebuild). The Gentoo provided applications and libraries are
+# used instead. The notable exception is the Tcl/Tk libraries; NMRPipe
+# requires a modified version of these. Unfortunately, this requires to
+# redefine the location of the libraries, which is done by sourcing an
+# initialisation script. NMRPipe users are used to this, and this ebuild
+# also prints a notice to this effect.
+SRC_URI="${PN}.linux9.tar.Z
+ xview_fonts.tar.Z
+ xview.linux9.tar.Z
+ dyn.tar.Z
+ mfr.tar.Z
+ pdbH.tar.Z
+ valpha.tar
+ acme.tar.Z
+ binval.com
+ install.com"
+# The maintainer absolutely wants to control redistribution.
+RESTRICT="fetch"
+
+SLOT="0"
+IUSE=""
+# Right now, precompiled executables are only available for Linux on the
+# x86 architecture. The maintainer chose to keep the sources closed, but
+# says he will gladly provide precompiled executables for other platforms
+# if there are such requests.
+KEYWORDS="-* ~x86"
+
+RDEPEND="virtual/x11
+ dev-lang/f2c
+ dev-lang/tcl
+ dev-lang/tk
+ dev-tcltk/blt
+ media-gfx/gnuplot
+ app-shells/tcsh
+ sys-libs/libtermcap-compat
+ x11-libs/xview
+ sci-chemistry/rasmol"
+
+S="${WORKDIR}"
+NMRBASE="/opt/${PN}"
+
+pkg_nofetch() {
+ einfo "Please visit:"
+ einfo "\t${HOMEPAGE}"
+ einfo
+ einfo "Contact the package maintainer, then download the following files:"
+ for i in ${A}; do
+ einfo "\t${i}"
+ done
+ einfo
+ einfo "Place the downloaded files in your distfiles directory:"
+ einfo "\t${DISTDIR}"
+ echo
+}
+
+src_unpack() {
+ # The installation script will unpack the package. We just provide symlinks
+ # to the archive files (and installation scripts).
+ for i in ${A}; do
+ ln -s "${DISTDIR}/${i}" "${i}"
+ done
+ # Make the installation scripts executable.
+ chmod +x "binval.com" "install.com"
+}
+
+src_compile() {
+ # Unset DISPLAY to avoid the interactive graphical test.
+ DISPLAY="" ./install.com "${S}" || die
+ for i in ${A}; do
+ rm "${i}"
+ done
+ # Remove some of the bundled applications and libraries; they are
+ # provided by Gentoo instead.
+ rm -r "xview" "XView" nmrbin.linux9/{0.0,lib,*timestamp,xv,gnuplot*,rasmol*}
+ # Remove the initialisation script generated during the installation.
+ # It contains incorrect hardcoded paths; only the "nmrInit.com" script
+ # should be used.
+ rm "com/nmrInit.linux9.com"
+ # Make the precompiled Linux binaries executable.
+ chmod +x nmrbin.linux9/*
+ # Set the correct path to NMRPipe in the auxiliary scripts.
+ cd "${S}/com"
+ for i in *; do
+ sed -e "s%/u/delaglio%${NMRBASE}%" -i "${i}" || die
+ done
+}
+
+src_install() {
+ newenvd "${FILESDIR}/${P}-env" "40${PN}"
+ insinto "/opt/${PN}"
+ insopts "-m0755"
+ doins -r *
+}
+
+pkg_postinst() {
+ echo
+ ewarn "Before using NMRPipe applications, users must source the following"
+ ewarn "csh script, which will set the necessary environment variables:"
+ ewarn "\t/opt/${PN}/com/nmrInit.com"
+ ewarn
+ ewarn "Be aware that this script redefines the locations of the Tcl"
+ ewarn "libraries. This could break other non-NMRPipe Tcl applications"
+ ewarn "run in the same session."
+ ewarn
+ ewarn "Using Dynamo does not require running an additional initialisation"
+ ewarn "script. The necessary environment variables should already be set."
+ echo
+}