blob: d932bf6815c67baf587fb0bb40175a393e9e4f6f (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/rosetta-fragments/rosetta-fragments-3.1.ebuild,v 1.4 2010/12/16 14:57:24 jlec Exp $
EAPI="2"
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Fragment library for rosetta"
HOMEPAGE="http://www.rosettacommons.org"
SRC_URI="rosetta3.1_fragments.tgz"
LICENSE="rosetta"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="
sci-biology/ncbi-tools
sci-biology/ncbi-tools++
sci-biology/psipred"
RESTRICT="fetch"
S="${WORKDIR}"/${PN/-/_}
pkg_nofetch() {
einfo "Go to ${HOMEPAGE} and get ${PN}.tgz and rename it to ${A}"
einfo "which must be placed in ${DISTDIR}"
}
src_prepare() {
epatch \
"${FILESDIR}"/${PV}-nnmake.patch \
"${FILESDIR}"/${PV}-chemshift.patch
}
src_compile() {
append-fflags -ffixed-line-length-132
cd "${S}"/nnmake && \
emake || die
cd "${S}"/chemshift && \
emake || die
}
src_install() {
find . -type d -name ".svn" -exec rm -rf '{}' \; 2> /dev/null
newbin nnmake/pNNMAKE.gnu pNNMAKE && \
newbin chemshift/pCHEMSHIFT.gnu pCHEMSHIFT || \
die "failed to install the bins"
dobin nnmake/*.pl || die "no additional perl scripts"
insinto /usr/share/${PN}
doins -r *_database || die
dodoc fragments.README nnmake/{nnmake.README,vall/*.pl} chemshift/chemshift.README || die "no docs"
}
|