aboutsummaryrefslogtreecommitdiff
blob: 1fbcea875d24b1a967b68a4a5dcb60d023c8bdf7 (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
67
68
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit java-pkg-opt-2

DESCRIPTION="Prediction of Protein bb and sc Torsion Angles from NMR Chemical Shifts"
HOMEPAGE="https://spin.niddk.nih.gov/bax/software/TALOS-N/"
SRC_URI="https://spin.niddk.nih.gov/bax/software/TALOS-N/talosn.tZ -> ${P}.tgz"

SLOT="0"
LICENSE="all-rights-reserved"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples"

DEPEND=">=virtual/jre-1.5:*"
RDEPEND="${DEPEND}
	app-shells/tcsh
	sci-biology/ncbi-tools"

S="${WORKDIR}"

QA_PREBUILT="/opt/.*"

src_prepare() {
	default
	local s64
	use amd64 || s64="_x64"
	rm -f bin/TALOSN.{linux,mac,static.*,winxp,linux9${s64}} || die

	sed \
		-e '/setenv TALOSN_DIR/d' \
		-e "/set BLAST/s:=.*:= \"${EPREFIX}/usr/bin/blastpgp\":g" \
		-e '/set NR_DBNAME/s:=.*:= ${BLASTDB}:g' \
		-i talosn_ss || die
}

src_install() {
	local TALOSN="/opt/${PN}"
	exeinto ${TALOSN}/bin
	doexe bin/*

	exeinto ${TALOSN}/com
	doexe com/*

	exeinto /opt/bin
	doexe talosn{,_ss}

	insinto ${TALOSN}
	doins -r tab

	java-pkg_jarinto ${TALOSN}
	java-pkg_dojar rama.jar

	java-pkg_dolauncher jrama --jar rama.jar -into /opt/

	if use examples; then
		insinto /usr/share/${PN}
		doins -r demo
	fi

	cat >> "${T}"/40talosn <<- EOF
	TALOSN_DIR="${EPREFIX}/${TALOSN}"
	#BLASTDB=
	EOF
	doenvd "${T}"/40talosn
}