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

EAPI=7

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"

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() {
	default
	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}
}