blob: b2d7d623f900aa3036c47c4ce8cb2274ebe1129e [file] [log] [blame]
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils
DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files"
HOMEPAGE="https://github.com/pezmaster31/bamtools"
SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
DEPEND="
>=dev-libs/jsoncpp-0.5.0-r1
<dev-libs/jsoncpp-1
sys-libs/zlib"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
src_install() {
cmake-utils_src_install
if ! use static-libs; then
rm "${ED}"/usr/$(get_libdir)/*.a || die
fi
}