blob: e09c456b27d92fe410b6c6e7c0ffa477adec1479 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
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"
PATCHES=(
"${FILESDIR}/${PN}-071220-fix-build-system.patch"
"${FILESDIR}/${PN}-071220-fix-qa.patch"
)
pkg_nofetch() {
einfo "Please visit ${HOMEPAGE} and obtain the file"
einfo "${SRC_URI}, then place it in ${DISTDIR}"
}
src_compile() {
emake CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin phred daev
insinto /usr/share/${PN}
doins phredpar.dat
echo "PHRED_PARAMETER_FILE=${EPREFIX}/usr/share/${PN}/phredpar.dat" > 99phred || die
doenvd 99phred
newdoc DAEV.DOC DAEV.DOC.txt
newdoc PHRED.DOC PHRED.DOC.txt
}
|