summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-11-15 15:01:15 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-11-15 15:01:15 +0000
commit3fca5f5a6f1d2bdc10825cf2b568ae364e211ee8 (patch)
tree216aab77107861594b92a19fca9af91797e5ad1e /sci-chemistry/nmrview
parentStable on sparc (diff)
downloadhistorical-3fca5f5a6f1d2bdc10825cf2b568ae364e211ee8.tar.gz
historical-3fca5f5a6f1d2bdc10825cf2b568ae364e211ee8.tar.bz2
historical-3fca5f5a6f1d2bdc10825cf2b568ae364e211ee8.zip
Improved wrapper script
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'sci-chemistry/nmrview')
-rw-r--r--sci-chemistry/nmrview/ChangeLog9
-rw-r--r--sci-chemistry/nmrview/Manifest6
-rw-r--r--sci-chemistry/nmrview/files/README.Gentoo17
-rw-r--r--sci-chemistry/nmrview/files/digest-nmrview-5.2.2-r32
-rw-r--r--sci-chemistry/nmrview/files/nmrview.sh-r16
-rw-r--r--sci-chemistry/nmrview/nmrview-5.2.2-r3.ebuild58
6 files changed, 96 insertions, 2 deletions
diff --git a/sci-chemistry/nmrview/ChangeLog b/sci-chemistry/nmrview/ChangeLog
index 545afec18f11..0c5684f662fd 100644
--- a/sci-chemistry/nmrview/ChangeLog
+++ b/sci-chemistry/nmrview/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-chemistry/nmrview
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/nmrview/ChangeLog,v 1.5 2005/05/12 19:10:41 ribosome Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/nmrview/ChangeLog,v 1.6 2005/11/15 15:01:15 ribosome Exp $
+
+*nmrview-5.2.2-r3 (15 Nov 2005)
+
+ 15 Nov 2005; Olivier Fisette <ribosome@gentoo.org> +files/README.Gentoo,
+ +files/nmrview.sh-r1, +nmrview-5.2.2-r3.ebuild:
+ Improved wrapper script to accept startup files and other parameters on the
+ command line.
12 May 2005; Olivier Fisette <ribosome@gentoo.org>
nmrview-5.2.2-r2.ebuild:
diff --git a/sci-chemistry/nmrview/Manifest b/sci-chemistry/nmrview/Manifest
index 320d3c33f025..25593d1641fd 100644
--- a/sci-chemistry/nmrview/Manifest
+++ b/sci-chemistry/nmrview/Manifest
@@ -1,5 +1,9 @@
+MD5 dbae7b8257b8c5ed96262991e9ee1bbc nmrview-5.2.2-r3.ebuild 1549
MD5 ec1b9d684a50eea2f4646292ab84eb68 nmrview-5.2.2-r2.ebuild 1274
-MD5 f4378f31b593c6d8e1fbc1d17f40ac3c ChangeLog 1246
+MD5 3c18a8e3185892f32ea61585369b0648 ChangeLog 1499
MD5 f189a3c4ff5ae55bcee4f8ed0ace5d20 metadata.xml 254
+MD5 40bc20922cec05c4cb2053e1338143a5 files/nmrview.sh-r1 166
+MD5 4713ba54fdc5e14dffbc85a4e0297bac files/README.Gentoo 874
MD5 0a1d063e6babcba9dcbc82db6188e76c files/nmrview.sh 163
MD5 a8857c8e06c514a0e16ec3d10999ca52 files/digest-nmrview-5.2.2-r2 138
+MD5 a8857c8e06c514a0e16ec3d10999ca52 files/digest-nmrview-5.2.2-r3 138
diff --git a/sci-chemistry/nmrview/files/README.Gentoo b/sci-chemistry/nmrview/files/README.Gentoo
new file mode 100644
index 000000000000..fbb0fdf2f536
--- /dev/null
+++ b/sci-chemistry/nmrview/files/README.Gentoo
@@ -0,0 +1,17 @@
+Using NMRView on Gentoo
+
+NMRView may be launched via the "nmrview "wrapper script installed in
+"/usr/bin". The script will pass on all positional parameters to the NMRView
+binary, so you may specify a start up script or a database to open on the
+command line.
+
+If you want a convenient way to set up multiple configurations, you can use
+shell aliases to redefine the "nmrview" command or to add new commands starting
+nmrview with different startup scripts, databases, etc. The following example
+alias declarations (for bash) could be put in "~/.bashrc" to redefine the
+"nmrview" command to launch NMRView with a default startup file, and to add a
+new command to launch the program with an alternative startup file and
+application name.
+
+alias nmrview="nmrview -- -s ${HOME}/.nmrview/startup"
+alias nmrview-dyn="nmrview -name nmrview-dyn -- -s ${HOME}/.nmrview/startup-dyn"
diff --git a/sci-chemistry/nmrview/files/digest-nmrview-5.2.2-r3 b/sci-chemistry/nmrview/files/digest-nmrview-5.2.2-r3
new file mode 100644
index 000000000000..efba3c928648
--- /dev/null
+++ b/sci-chemistry/nmrview/files/digest-nmrview-5.2.2-r3
@@ -0,0 +1,2 @@
+MD5 61a5fd1362a5e40d21b37eab149f9f57 nmrview5.2.2.lib.tar.gz 4097039
+MD5 ee743221d1bbf306ce5fd90b8dcd7526 nmrview5_2_2_01_linux.gz 963243
diff --git a/sci-chemistry/nmrview/files/nmrview.sh-r1 b/sci-chemistry/nmrview/files/nmrview.sh-r1
new file mode 100644
index 000000000000..9e122d0c59d8
--- /dev/null
+++ b/sci-chemistry/nmrview/files/nmrview.sh-r1
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+export NMRVIEW5HOME="/opt/nmrview"
+export TK_LIBRARY="/opt/nmrview/tk8.4"
+export TCL_LIBRARY="/opt/nmrview/tcl8.4"
+/opt/nmrview/nmrview5_2_2_01_linux $@
diff --git a/sci-chemistry/nmrview/nmrview-5.2.2-r3.ebuild b/sci-chemistry/nmrview/nmrview-5.2.2-r3.ebuild
new file mode 100644
index 000000000000..2f095d43e626
--- /dev/null
+++ b/sci-chemistry/nmrview/nmrview-5.2.2-r3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/nmrview/nmrview-5.2.2-r3.ebuild,v 1.1 2005/11/15 15:01:15 ribosome Exp $
+
+DESCRIPTION="Visualisation and analysis of processed NMR data"
+LICENSE="as-is"
+HOMEPAGE="http://www.onemoonscientific.com/nmrview/"
+SRC_URI="${PN}${PV}.lib.tar.gz
+ ${PN}${PV//./_}_01_linux.gz"
+RESTRICT="fetch"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="-* ~x86"
+
+RDEPEND="virtual/x11"
+
+S="${WORKDIR}"
+
+INSTDIR="/opt/nmrview"
+
+pkg_nofetch() {
+ einfo "Please visit:"
+ einfo "\t${HOMEPAGE}"
+ einfo
+ einfo "Complete the registration process, then download the following files:"
+ einfo "\t${A}"
+ einfo
+ einfo "Place the downloaded files in your distfiles directory:"
+ einfo "\t${DISTDIR}"
+ echo
+}
+
+src_compile() {
+ echo
+ einfo "Nothing to compile."
+ echo
+}
+
+src_install() {
+ insinto ${INSTDIR}
+
+ exeinto /usr/bin
+ newexe "${FILESDIR}"/${PN}.sh-r1 ${PN} || \
+ die "Failed to install wrapper script"
+ exeinto ${INSTDIR}
+ doexe ${PN}${PV//./_}_01_linux || die "Failed to install binary."
+
+ DIRS="help html images nvtcl nvtclC nvtclExt reslib star tcl8.4 tk8.4 tools"
+ doins -r ${DIRS} || die "Failed to install shared files."
+
+ dodoc "${FILESDIR}"/README.Gentoo || die "Failed to install Gentoo README."
+ doins README || die "Failed to install README."
+ dosym ${INSTDIR}/html /usr/share/doc/${PF}/html || die \
+ "Failed to link HTML documentation."
+ dosym ${INSTDIR}/README /usr/share/doc/${PF}/README || die \
+ "Failed to link README."
+}