public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/nmrpipe/, sci-chemistry/nmrpipe/files/
Date: Thu, 26 Nov 2015 11:57:32 +0000 (UTC)	[thread overview]
Message-ID: <1448539042.4c364af359ca5494e932dd10c0ee694df64ee049.jlec@gentoo> (raw)

commit:     4c364af359ca5494e932dd10c0ee694df64ee049
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 11:57:22 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Nov 26 11:57:22 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=4c364af3

sci-chemistry/nmrpipe: Version Bump and cleanup

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 .../nmrpipe/files/{env-nmrpipe-new => env-nmrpipe} |  8 ++-
 ....patch => nmrpipe-8.7.2015.320.15.26-lib.patch} |  0
 ...r1.ebuild => nmrpipe-8.7.2015.320.15.26.ebuild} | 74 +++++++++-------------
 3 files changed, 36 insertions(+), 46 deletions(-)

diff --git a/sci-chemistry/nmrpipe/files/env-nmrpipe-new b/sci-chemistry/nmrpipe/files/env-nmrpipe
similarity index 81%
rename from sci-chemistry/nmrpipe/files/env-nmrpipe-new
rename to sci-chemistry/nmrpipe/files/env-nmrpipe
index 87697f7..e155adc 100644
--- a/sci-chemistry/nmrpipe/files/env-nmrpipe-new
+++ b/sci-chemistry/nmrpipe/files/env-nmrpipe
@@ -1,8 +1,8 @@
 # Platform
 NMRCHECK="ALL"
 
-BINTYPE="linux9"
-NMRBINTYPE="linux9"
+BINTYPE="@BINTYPE@"
+NMRBINTYPE="@BINTYPE@"
 PATH="/opt/nmrpipe/com:/opt/nmrpipe/bin:/opt/nmrpipe/dynamo/tcl:/opt/nmrpipe/talosplus/com:/opt/nmrpipe/dynamo/com"
 
 # NMRPipe
@@ -40,3 +40,7 @@ PDBH_TAB="/opt/nmrpipe/pdb/resolution.tab"
 TCLPATH="/opt/nmrpipe/com"
 
 PROMEGA_DIR="/opt/nmrpipe/promega"
+
+NMR_PLUGIN_FN="/opt/nmrpipe/smile/NMR_PLUGIN_FN"
+NMR_PLUGIN_EXE="/opt/nmrpipe/smile/NMR_PLUGIN_EXE"
+NMR_PLUGIN_INFO="/opt/nmrpipe/smile/NMR_PLUGIN_INFO"

diff --git a/sci-chemistry/nmrpipe/files/nmrpipe-8.6.2015.271.07.19-lib.patch b/sci-chemistry/nmrpipe/files/nmrpipe-8.7.2015.320.15.26-lib.patch
similarity index 100%
rename from sci-chemistry/nmrpipe/files/nmrpipe-8.6.2015.271.07.19-lib.patch
rename to sci-chemistry/nmrpipe/files/nmrpipe-8.7.2015.320.15.26-lib.patch

diff --git a/sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild b/sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
similarity index 74%
rename from sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild
rename to sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
index 725c01d..2e80308 100644
--- a/sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild
+++ b/sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
@@ -20,6 +20,7 @@ SRC_URI="
 	http://spin.niddk.nih.gov/NMRPipe/install/download/install.com -> install-${PV}.com
 	http://spin.niddk.nih.gov/NMRPipe/install/download/binval.com -> binval-${PV}.com
 	http://spin.niddk.nih.gov/NMRPipe/install/download/NMRPipeX.tZ -> NMRPipeX-${PV}.tZ
+	http://spin.niddk.nih.gov/NMRPipe/install/download/plugin.smile.tZ -> plugin.smile-${PV}.tZ
 	http://spin.niddk.nih.gov/NMRPipe/install/download/talos.tZ -> talos-${PV}.tZ
 	http://spin.niddk.nih.gov/NMRPipe/install/download/dyn.tZ -> dyn-${PV}.tZ
 	"
@@ -33,7 +34,6 @@ LICENSE="nmrpipe"
 KEYWORDS=""
 IUSE=""
 
-#RESTRICT="fetch strip"
 RESTRICT="strip"
 
 DEPEND="app-shells/tcsh"
@@ -53,76 +53,61 @@ RDEPEND="${DEPEND}
 	!prefix? ( >=x11-libs/libX11-1.6.2[abi_x86_32(-)] )
 	prefix? ( dev-util/patchelf )"
 
-S="${WORKDIR}"
+S="${WORKDIR}/NMR"
 
 NMRBASE="/opt/${PN}"
 ENMRBASE="${EPREFIX}/${NMRBASE}"
 
-QA_PREBUILT="
-	opt/.*
-	"
-
-pkg_nofetch() {
-	einfo "Please visit:"
-	einfo "\t${HOMEPAGE}"
-	einfo
-	einfo "Contact the author, 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}"
-}
+QA_PREBUILT="opt/.*"
 
 src_unpack() {
 	# The installation script will unpack the package. We just provide symlinks
 	# to the archive files, ...
-	for i in NMRPipeX-${PV}.tZ talos-${PV}.tZ dyn-${PV}.tZ; do
+	for i in NMRPipeX-${PV}.tZ plugin.smile-${PV}.tZ talos-${PV}.tZ dyn-${PV}.tZ; do
 		ln -sf "${DISTDIR}"/${i} ${i/-${PV}/} || die
 	done
+	mkdir "${S}" && cd "${S}" || die
 	# ... copy the installation scripts ...
 	cp -L "${DISTDIR}"/install-${PV}.com install.com || die
 	cp -L "${DISTDIR}"/binval-${PV}.com binval.com || die
 	# ... and make the installation scripts executable.
 	chmod +x *.com || die
-	# Unset DISPLAY to avoid the interactive graphical test.
-	# This just unpacks the stuff
-#	env DISPLAY="" csh ./install.com +type linux9 +dest "${S}"/NMR || die
-	VIRTUALX_COMMAND="csh ./install.com +type linux9 +dest ${S}/NMR +nopost" virtualmake
+	VIRTUALX_COMMAND="csh"
+	virtualmake \
+		./install.com \
+		+type $(usex x86 linux9 linux212_64) \
+		+src "${WORKDIR}" \
+		+dest "${S}" \
+		+nopost +nocshrc
 }
 
 src_prepare() {
-	local bin
+	local bin i
 	epatch "${FILESDIR}"/${P}-lib.patch
 
-	mv nmrbin.linux9/nmr{W,w}ish || die
+	mv nmrbin.$(usex x86 linux9 linux212_64)/nmr{W,w}ish || die
 
 	ebegin "Cleaning installation"
-	for i in ${A} ; do
-		rm -f ${i/-${PV}/} || die "Failed to remove archive symlinks."
-	done
 
 	# Remove some of the bundled applications and libraries; they are provided by Gentoo instead.
-#	rm -r nmrbin.linux9/{lib/{libBLT24.so,libolgx.so*,libxview.so*,*.timestamp},*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
-	rm -rf nmrbin.linux9/{lib/*.timestamp,*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
-		nmrbin.{linux,mac,sgi6x,sol,winxp} nmruser format \
+	rm -rf nmrbin.linux*/{lib/*.timestamp,*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
+		nmrbin.{linux,mac} nmruser format \
+		$(usex x86 nmrbin.linux212_64 nmrbin.linux9) \
 		|| die "Failed to remove unnecessary libraries."
 	# As long as xview is not fixed for amd64 we do this
-	rm nmrbin.linux9/lib/{libxview.so*,libolgx.so*} || die
+	rm nmrbin.linux*/lib/{libxview.so*,libolgx.so*} || die
 	# Remove the initialisation script generated during the installation.
 	# It contains incorrect hardcoded paths; only the "nmrInit.com" script
 	# should be used.
-	rm -f com/nmrInit.linux9.com || die "Failed to remove broken init script."
+	rm -f com/nmrInit.linux*.com || die "Failed to remove broken init script."
 	# Remove installation log files.
-	rm -f README_NMRPIPE_USERS *.log || die "Failed to remove installation log."
+	rm -f README_NMRPIPE_USERS *.log install.com binval.com || die "Failed to remove installation log."
 	# Remove unused binaries
 	rm -f {talos*,spartaplus,promega}/bin/*{linux,mac,sgi6x,winxp} pdb/misc/addSeg || die
 
 	# Some scripts are on the wrong place
 	cp -f nmrtxt/*.com com/
-	rm -f {acme,com}/{nmrproc,fid}.com || die
-
+	rm -f {acme,com}/{nmrproc,fid,install}.com || die
 	eend
 
 	ebegin "Fixing paths in scripts"
@@ -143,7 +128,7 @@ src_prepare() {
 		-e "s: /usr/local/bin: ${EPREFIX}/usr/bin:g" \
 		-i $(find "${S}" \( -name "*.tcl" -o -name "*.com" -o -name "*.ksh" \)) \
 			{com/,nmrtxt/*.com,nmrtxt/nt/*.com,dynamo/tcl/,talos*/com/,dynamo/tcl/}* \
-			nmrbin.linux9/{nmrDraw,xNotify} || die
+			nmrbin.linux*/{nmrDraw,xNotify} || die
 	eend
 
 	if use prefix; then
@@ -155,7 +140,7 @@ src_prepare() {
 			-i com/* || die
 
 		ebegin "Setting RPATH in binaries"
-		for bin in $(find nmrbin.linux9/ -type f -maxdepth 1); do
+		for bin in $(find nmrbin.linux*/ -type f -maxdepth 1); do
 			patchelf --set-rpath "${EPREFIX}/usr/lib/" ${bin}
 		done
 		eend $?
@@ -187,20 +172,21 @@ src_install() {
 
 	sed \
 		-e "s:/opt/nmrpipe:${EPREFIX}/opt/nmrpipe:g" \
-		"${FILESDIR}"/env-${PN}-new \
-		> env-${PN}-new || die
-	newenvd env-${PN}-new 40${PN}
+		-e "s:@BINTYPE@:$(usex x86 linux9 linux212_64):g" \
+		"${FILESDIR}"/env-${PN} \
+		> "${T}"/env-${PN} || die
+	newenvd "${T}"/env-${PN} 40${PN}
 
 	insinto ${NMRBASE}
 	doins -r *
 
-	dosym nmrbin.linux9 ${NMRBASE}/bin
+	dosym nmrbin.linux* ${NMRBASE}/bin
 
 	ebegin "Fixing permissions"
-	chmod 775 "${ED}"/${NMRBASE}/{talos*/bin/,sparta*/bin/,nmrbin.linux9/,com/,dynamo/tcl/,nmrtxt/*.com,talos*/com/,promega/bin/}* || die
+	chmod 775 "${ED}"/${NMRBASE}/{talos*/bin/,sparta*/bin/,nmrbin.linux*/,com/,dynamo/tcl/,nmrtxt/*.com,talos*/com/,promega/bin/}* || die
 	eend
 
-	exeinto ${NMRBASE}/nmrbin.linux9
+	exeinto ${NMRBASE}/nmrbin.$(usex x86 linux9 linux212_64)
 	doexe "${T}"/nmrWish
 
 	insinto ${NMRBASE}/nmrtxt


             reply	other threads:[~2015-11-26 11:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26 11:57 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-05 20:20 [gentoo-commits] proj/sci:master commit in: sci-chemistry/nmrpipe/, sci-chemistry/nmrpipe/files/ Andrew Ammerlaan
2013-10-28  9:01 Justin Lecher
2013-08-12 21:27 Sebastien Fabbro
2013-01-23  9:13 Justin Lecher
2012-10-28 21:54 Justin Lecher
2012-07-31 10:11 Justin Lecher
2012-05-02 19:22 Justin Lecher
2012-05-02  6:52 Justin Lecher
2012-03-22 21:57 Justin Lecher
2012-01-10  9:30 Justin Lecher
2011-12-06 16:35 Justin Lecher
2011-11-11 11:26 Justin Lecher
2011-08-31 10:05 Justin Lecher
2011-07-06 13:35 Justin Lecher
2011-06-20  5:20 Justin Lecher
2011-05-28  7:49 Justin Lecher
2011-04-29 10:05 Justin Lecher
2011-04-28  7:50 Justin Lecher
2011-04-04 11:18 Justin Lecher
2011-03-11 17:44 Justin Lecher
2011-02-26 12:53 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1448539042.4c364af359ca5494e932dd10c0ee694df64ee049.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox