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

EAPI=6

inherit autotools toolchain-funcs

DESCRIPTION="Generic tool for pairwise sequence comparison"
HOMEPAGE="https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate"
SRC_URI="http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos"
IUSE="test threads utils"
REQUIRED_USE="test? ( utils )"

DEPEND="dev-libs/glib:2"
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}"/${P}-asneeded.patch )

src_prepare() {
	default
	sed \
		-e 's: -O3 -finline-functions::g' \
		-i configure.in || die
	mv configure.{in,ac} || die

	eautoreconf
}

src_configure() {
	tc-export CC

	econf \
		--enable-glib2 \
		--enable-largefile \
		$(use_enable utils utilities) \
		$(use_enable threads pthreads)
}

src_install() {
	default

	doman doc/man/man1/*.1
}