blob: 9d7ff9a1f6c8f209ec0c17518603596ce16d569f (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
S="${WORKDIR}"
LICENSE="phrap"
SLOT="0"
KEYWORDS="~amd64 ~x86"
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 into your DISTDIR directory."
}
src_compile() {
emake CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin phred daev
insinto /usr/share/phred
doins phredpar.dat
newenvd - 99phred <<- EOF
PHRED_PARAMETER_FILE="${EPREFIX}/usr/share/phred/phredpar.dat"
EOF
newdoc DAEV.DOC DAEV.DOC.txt
newdoc PHRED.DOC PHRED.DOC.txt
}
|