aboutsummaryrefslogtreecommitdiff
blob: a8b2328552a9aaf1c89a220931bd82aaf152cbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit python-single-r1

MY_P="${PN}${PV}"

DESCRIPTION="Program for processing of non-uniformly sampled (NUS) multidimensional NMR spectra"
HOMEPAGE="http://www.nmr.gu.se/~mdd/"
SRC_URI="http://pc8.nmr.gu.se/~mdd/Downloads/${MY_P}.tgz"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="mddnmr"
IUSE=""

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
	${PYTHON_DEPS}
	app-shells/tcsh
	sci-chemistry/nmrpipe"
DEPEND=""

RESTRICT="mirror"

S="${WORKDIR}"/${PN}

QA_PREBUILT="opt/${PN}/.*"

src_install() {
	exeinto /opt/${PN}/com
	doexe com/*

	exeinto /opt/${PN}/bin
	if use amd64; then
		doexe binXeonE5mkl/*
	elif use x86; then
		doexe binUbuntu32Static/*
	fi

	insinto /opt/${PN}/
	doins -r GUI

	cat >> "${T}"/qMDD <<- EOF
	#!${EPREFIX}/bin/csh

	setenv LD_LIBRARY_PATH $(grep LDPATH "${EPREFIX}"/etc/env.d/35intelsdp | sed 's:LDAPATH=::g')"
	setenv MDD_NMR "${EPREFIX}/opt/${PN}"
	setenv MDD_NMRbin "${EPREFIX}/opt/${PN}/bin/"
	set path=( . "\$MDD_NMRbin"  "\${MDD_NMR}/com" \$path )

	csh "${EPREFIX}/opt/${PN}/GUI/qMDD"
	EOF

	dobin "${T}"/qMDD

	dodoc *pdf

	python_optimize "${ED}"
}