aboutsummaryrefslogtreecommitdiff
blob: fd247282106e4b3eef9863780a8e5b7216f1710f (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
51
52
53
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/exonerate/exonerate-2.2.0-r1.ebuild,v 1.5 2013/01/25 16:24:50 jlec Exp $

EAPI=4

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils toolchain-funcs git-r3

DESCRIPTION="exonerate-2.2.0 with patches to add GFF3 formatted output"
HOMEPAGE="https://github.com/hotdogee/exonerate-gff3"
EGIT_REPO_URI="https://github.com/hotdogee/exonerate-gff3.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="utils test threads"

REQUIRED_USE="test? ( utils )"

# block with sci-biology/exonerate , maybe the best would be to change SRC_URI in sci-biology/exonerate
DEPEND="
	!sci-biology/exonerate
	dev-libs/glib:2"
RDEPEND="${DEPEND}"

AUTOTOOLS_IN_SOURCE_BUILD=1

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

src_prepare() {
	tc-export CC
	sed \
		-e 's: -O3 -finline-functions::g' \
		-i configure.in || die
	autotools-utils_src_prepare
}

src_configure() {
	local myeconfargs=(
		$(use_enable utils utilities)
		$(use_enable threads pthreads)
		--enable-largefile
		--enable-glib2
	)
	autotools-utils_src_configure
}

src_install() {
	autotools-utils_src_install
	doman doc/man/man1/*.1
}