commit: 778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> AuthorDate: Thu Mar 31 23:10:46 2016 +0000 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> CommitDate: Thu Mar 31 23:10:46 2016 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=778b9cad
sci-biology/bamtools: version bump; still suffers gentoo bug #550144 Package-Manager: portage-2.2.28 sci-biology/bamtools/bamtools-2.4.0.ebuild | 31 ++++++++++++++++++++++ .../bamtools/files/bamtools-2.4.0-unbundle.patch | 23 ++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/sci-biology/bamtools/bamtools-2.4.0.ebuild b/sci-biology/bamtools/bamtools-2.4.0.ebuild new file mode 100644 index 0000000..b2d7d62 --- /dev/null +++ b/sci-biology/bamtools/bamtools-2.4.0.ebuild @@ -0,0 +1,31 @@ +# 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 +} diff --git a/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch new file mode 100644 index 0000000..c07c59d --- /dev/null +++ b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch @@ -0,0 +1,23 @@ +--- bamtools-2.3.0/src/api/CMakeLists.txt.ori 2013-08-27 18:00:43.000000000 +0200 ++++ bamtools-2.3.0/src/api/CMakeLists.txt 2013-08-27 18:00:47.000000000 +0200 +@@ -54,8 +54,8 @@ + target_link_libraries( BamTools-static ${APILibs} ) + + # set library install destinations +-install( TARGETS BamTools LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin") +-install( TARGETS BamTools-static ARCHIVE DESTINATION "lib/bamtools") ++install( TARGETS BamTools LIBRARY DESTINATION "lib${LIB_SUFFIX}" RUNTIME DESTINATION "bin") ++install( TARGETS BamTools-static ARCHIVE DESTINATION "lib${LIB_SUFFIX}") + + # export API headers + include(../ExportHeader.cmake) +--- bamtools-2.3.0/src/CMakeLists.txt.ori 2013-08-27 18:03:10.000000000 +0200 ++++ bamtools-2.3.0/src/CMakeLists.txt 2013-08-27 18:03:23.000000000 +0200 +@@ -6,7 +6,6 @@ + # ========================== + + add_subdirectory( api ) +-add_subdirectory( third_party ) + add_subdirectory( toolkit ) + add_subdirectory( utils ) +
