summaryrefslogtreecommitdiff
blob: 4839053f4191911c7bcaa9f18e3424dadba4f8cf (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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit flag-o-matic toolchain-funcs

DESCRIPTION="A rapid whole genome aligner"
HOMEPAGE="http://mummer.sourceforge.net/"
SRC_URI="mirror://sourceforge/mummer/MUMmer${PV}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

DEPEND=""
RDEPEND="
	app-shells/tcsh
	dev-lang/perl"

S=${WORKDIR}/MUMmer${PV}

PATCHES=(
	"${FILESDIR}"/${PN}-3.23-fix-build-system.patch
	"${FILESDIR}"/${PN}-3.23-fix-c++-qa.patch
	"${FILESDIR}"/${PN}-3.23-fix-shebangs.patch
)

src_configure() {
	use amd64 && append-cppflags -DSIXTYFOURBITS
	tc-export AR CC CXX
}

src_install() {
	dobin src/kurtz/mm3src/mummer
	dobin src/tigr/{combineMUMs,delta-filter,gaps,mgaps,postnuc,postpro,prenuc,prepro,repeat-match,show-aligns,show-coords,show-tiling,show-snps,show-diff}
	dobin scripts/{exact-tandems,mapview,mummerplot,dnadiff,nucmer,promer,run-mummer1,run-mummer3,nucmer2xfig}
	newbin src/tigr/annotate mummer-annotate

	insinto /usr/share/${PN}/lib
	doins scripts/Foundation.pm

	einstalldocs
	use doc && dodoc -r docs/.
}