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

EAPI=7

DESCRIPTION="Predict effect of aminoacid substitution on human protein function"
HOMEPAGE="http://genetics.bwh.harvard.edu/pph2/dokuwiki/start"
SRC_URI="
	http://genetics.bwh.harvard.edu/pph2/dokuwiki/_media/polyphen-${PV}r405d.tar.gz
	http://mafft.cbrc.jp/alignment/software/mafft-7.221-without-extensions-src.tgz
	http://prdownloads.sourceforge.net/weka/weka-3-6-12.zip
"

LICENSE="polyphen" # for non-commercial use only
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-perl/CGI
	sci-biology/ncbi-blast+
"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"

# 3.7GB
# ftp://genetics.bwh.harvard.edu/pph2/bundled/polyphen-2.2.2-databases-2011_12.tar.bz2

# 2.4GB
# ftp://genetics.bwh.harvard.edu/pph2/bundled/polyphen-2.2.2-alignments-mlc-2011_12.tar.bz2

# 895MB
# ftp://genetics.bwh.harvard.edu/pph2/bundled/polyphen-2.2.2-alignments-multiz-2009_10.tar.bz2

src_unpack() {
	unpack "polyphen-${PV}r405d.tar.gz"
	cp "${DISTDIR}/mafft-7.221-without-extensions-src.tgz" "${S}/src" || die
	cp "${DISTDIR}/weka-3-6-12.zip" "${S}/src" || die
}

src_configure() {
	# non-standard configure script
	./configure
}

src_compile() {
	pushd src
	emake -j1
	popd
}

src_install() {
	pushd src
	default
	popd
	einstalldocs
}