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

EAPI=5

inherit flag-o-matic toolchain-funcs

MY_PN="${PN%-db}"

DESCRIPTION="System for chemical shifts based protein structure prediction using ROSETTA"
HOMEPAGE="https://spin.niddk.nih.gov/bax/software/CSROSETTA/"
SRC_URI="
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/PDBH.tar.Z -> ${P}-PDBH.tar.Z
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/hybrid/PDBH.hyb.tar.gz ->  ${P}-PDBH.hyb.tar.gz
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/CS.tar.Z -> ${P}-CS.tar.Z
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/hybrid/CS.hyb.tar.gz -> ${P}-CS.hyb.tar.gz
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/ANGLESS.tar.Z -> ${P}-ANGLESS.tar.Z
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/hybrid/ANGLESS.hyb.tar.gz -> ${P}-ANGLESS.hyb.tar.gz
	https://spin.niddk.nih.gov/bax/software/CSROSETTA/hybrid/vall.dat.apr24.gz -> ${P}-vall.dat.apr24.gz"

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

RESTRICT="binchecks mirror strip"

S="${WORKDIR}"

src_unpack() {
	local i
	unpack ${P}-{PDBH,CS,ANGLESS}.hyb.tar.gz

	for i in *; do
		mv -v ${i}{,.hyb} || die
	done

	unpack ${P}-vall.dat.apr24.gz
	mv ${P}-vall.dat.apr24 vall.dat.apr24 || die

	unpack ${P}-{PDBH,CS,ANGLESS}.tar.Z
}

src_prepare() {
	cat >> "${T}"/39${PN} <<- EOF
	CS_DIR="${EPREFIX}/opt/${MY_PN}/CS"
	CSHYB_DIR="${EPREFIX}/opt/${MY_PN}/CS"
	PDBH_DIR="${EPREFIX}/opt/${MY_PN}/PDBH"
	PDBHYB_DIR="${EPREFIX}/opt/${MY_PN}/PDBH"
	PDBH_TAB="${EPREFIX}/opt/${MY_PN}/PDBH/resolution.tab"
	ANGLESS_DIR="${EPREFIX}/opt/${MY_PN}/ANGLESS"
	ANGLESSHYB_DIR="${EPREFIX}/opt/${MY_PN}/ANGLESS"
	EOF
}

src_install() {
	insinto /opt/${MY_PN}/
	doins -r *
	doenvd "${T}"/39${PN}
}