aboutsummaryrefslogtreecommitdiff
blob: 34f157b23f6631fb07ad3e66eeb33dafd2b713eb (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit toolchain-funcs

MY_PN="${PN%-bin}"
MY_P="${MY_PN}_v${PV}"

DESCRIPTION="SSAHA2: Sequence Search and Alignment by Hashing Algorithm"
HOMEPAGE="http://www.sanger.ac.uk/resources/software/ssaha2"
SRC_URI="
	x86? ( ftp://ftp.sanger.ac.uk/pub4/resources/software/${MY_PN}/${MY_P}_i686.tgz )
	amd64? ( ftp://ftp.sanger.ac.uk/pub4/resources/software/${MY_PN}/${MY_P}_x86_64.tgz )
	ftp://ftp.sanger.ac.uk/pub4/resources/software/ssaha2/samflag.c
	ftp://ftp.sanger.ac.uk/pub4/resources/software/ssaha2/ssaha2-manual.pdf"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

QA_PREBUILT="/opt/.*"

pkg_setup() {
	use x86 && export S="${WORKDIR}"/${MY_P}_i686
	use amd64 && export S="${WORKDIR}"/${MY_P}_x86_64
}
src_compile() {
	$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o samflag "${DISTDIR}"/samflag.c || die "Failed to compile samflags"
}

src_install() {
	dobin samflag
	exeinto /opt/bin
	doexe ssaha2 ssaha2Build ssahaSNP
	dodoc README "${DISTDIR}"/ssaha2-manual.pdf
}