summaryrefslogtreecommitdiff
blob: bbeb3111901fd0a8aacd5756f7ed6cd7830f2d58 (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 autotools

DESCRIPTION="A library and API for manipulating large SNP datasets"
HOMEPAGE="http://www.birc.au.dk/~mailund/SNPFile/"
SRC_URI="http://www.birc.au.dk/~mailund/SNPFile/download/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
IUSE="static-libs"
KEYWORDS="~amd64 ~x86"

RDEPEND="dev-libs/boost:="
DEPEND="
	${RDEPEND}
	>=sys-devel/autoconf-archive-2016.09.16"

PATCHES=(
	"${FILESDIR}"/${P}-gcc44.patch
	"${FILESDIR}"/${P}-gentoo.diff
	"${FILESDIR}"/${P}-gold.patch
	"${FILESDIR}"/${P}-ax-boost.patch
)

src_prepare() {
	default
	mv configure.{in,ac} || die
	rm m4/ax_boost.m4 || die
	eautoreconf
}

src_configure() {
	econf $(use_enable static-libs static)
}

src_install() {
	default

	if ! use static-libs; then
		find "${D}" -name '*.la' -delete || die
	fi
}