| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-biology/psipred/psipred-3.2.1.ebuild,v 1.3 2012/07/11 02:33:24 mr_bones_ Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit eutils prefix toolchain-funcs versionator |
| 8 |
|
| 9 |
MY_P="${PN}$(delete_all_version_separators)" |
| 10 |
|
| 11 |
DESCRIPTION="Protein Secondary Structure Prediction" |
| 12 |
HOMEPAGE="http://bioinf.cs.ucl.ac.uk/psipred/" |
| 13 |
SRC_URI="http://bioinf.cs.ucl.ac.uk/downloads/${PN}/${MY_P}.tar.gz" |
| 14 |
|
| 15 |
LICENSE="psipred" |
| 16 |
SLOT="0" |
| 17 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
| 18 |
IUSE="test" |
| 19 |
|
| 20 |
RDEPEND=" |
| 21 |
sci-biology/ncbi-tools |
| 22 |
sci-biology/ncbi-tools++" |
| 23 |
DEPEND="" |
| 24 |
|
| 25 |
S="${WORKDIR}" |
| 26 |
|
| 27 |
src_prepare() { |
| 28 |
rm -f bin/* |
| 29 |
epatch \ |
| 30 |
"${FILESDIR}"/3.1-Makefile.patch \ |
| 31 |
"${FILESDIR}"/3.1-path.patch \ |
| 32 |
"${FILESDIR}"/3.2-fgets.patch |
| 33 |
eprefixify runpsipred* |
| 34 |
} |
| 35 |
|
| 36 |
src_compile() { |
| 37 |
emake -C src CC=$(tc-getCC) |
| 38 |
} |
| 39 |
|
| 40 |
src_install() { |
| 41 |
emake -C src DESTDIR="${D}" install |
| 42 |
dobin runpsipred* bin/* BLAST+/runpsipred* |
| 43 |
insinto /usr/share/${PN} |
| 44 |
doins -r data |
| 45 |
dodoc README |
| 46 |
newdoc BLAST+/README README-blast |
| 47 |
} |
| 48 |
|
| 49 |
pkg_postinst() { |
| 50 |
elog "Please use the update_blastdb.pl in order to" |
| 51 |
elog "maintain your own local blastdb" |
| 52 |
} |