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

EAPI=7

DIST_AUTHOR=LDS
DIST_VERSION=1.43
inherit perl-module toolchain-funcs multilib

DESCRIPTION="Read SAM/BAM database files"

SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	>=sci-biology/bioperl-1.6.9
	sci-biology/samtools:0.1-legacy=
"
DEPEND="
	dev-perl/Module-Build
	sci-biology/samtools:0.1-legacy=
"
BDEPEND="${RDEPEND}
	virtual/perl-ExtUtils-CBuilder
	>=dev-perl/Module-Build-0.420.0
"

PATCHES=(
	"${FILESDIR}"/${PN}-1.430.0-legacy-r1.patch
)

src_configure() {
	tc-export CC
	unset LD
	if [[ -n "${CCLD}" ]]; then
		export LD="${CCLD}"
	fi
	SAM_LIB="${EPREFIX}/usr/$(get_libdir)/libbam-0.1-legacy.so" \
		SAM_INCLUDE="${EPREFIX}/usr/include/bam-0.1-legacy" \
		perl-module_src_configure
}
src_compile() {
	./Build --config optimize="${CFLAGS}" build || die
}