summaryrefslogtreecommitdiff
blob: 65c12a9820e497fbbe01c476798ce1c68151c7f6 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/phred/phred-071220.ebuild,v 1.2 2009/07/07 22:53:19 flameeyes Exp $

DESCRIPTION="A base caller for Sanger DNA sequencing"
HOMEPAGE="http://phrap.org/phredphrapconsed.html"
SRC_URI="phred-dist-071220.b-acd.tar.gz"

LICENSE="phrap"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}"

RESTRICT="fetch"

pkg_nofetch() {
	elog "Please visit ${HOMEPAGE} and obtain the file"
	elog "${SRC_URI}, then place it in ${DISTDIR}"
}

src_compile() {
	sed -i -e 's/CFLAGS=/CFLAGS += /' Makefile
	emake daev || die
	emake || die
}

src_install() {
	dobin phred daev || die
	insinto /usr/share/${PN}
	doins phredpar.dat || die
	echo "PHRED_PARAMETER_FILE=/usr/share/${PN}/phredpar.dat" > 99phred
	doenvd 99phred || die
	newdoc DAEV.DOC DAEV.DOC.txt
	newdoc PHRED.DOC PHRED.DOC.txt
}