commit: 069e8bde558ff12f4986bfe5230c366773ecfa84 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Thu Mar 20 07:41:14 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Apr 24 19:11:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069e8bde
sci-biology/bamtools: update EAPI 7 -> 8, fix build with CMake 4 Closes: https://bugs.gentoo.org/951630 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Part-of: https://github.com/gentoo/gentoo/pull/41189 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-biology/bamtools/bamtools-2.5.2-r1.ebuild | 35 ++++++++++++++++++++++ .../bamtools/files/bamtools-2.5.2-cmake.patch | 26 ++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/sci-biology/bamtools/bamtools-2.5.2-r1.ebuild b/sci-biology/bamtools/bamtools-2.5.2-r1.ebuild new file mode 100644 index 000000000000..d1d591465a0b --- /dev/null +++ b/sci-biology/bamtools/bamtools-2.5.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files" +HOMEPAGE="https://github.com/pezmaster31/bamtools" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pezmaster31/bamtools.git" +else + SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0/${PV}" # no stable ABI yet + +RDEPEND=" + >=dev-libs/jsoncpp-1.8.0:= + sys-libs/zlib:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/"${P}-cmake.patch" ) + +src_prepare() { + # delete bundled libs, just to be safe + rm -rf src/third_party/{gtest-1.6.0,jsoncpp} || die + + cmake_src_prepare +} diff --git a/sci-biology/bamtools/files/bamtools-2.5.2-cmake.patch b/sci-biology/bamtools/files/bamtools-2.5.2-cmake.patch new file mode 100644 index 000000000000..d67efeeb4f7b --- /dev/null +++ b/sci-biology/bamtools/files/bamtools-2.5.2-cmake.patch @@ -0,0 +1,26 @@ +Fix for CMake 4 +https://bugs.gentoo.org/951630 +https://github.com/pezmaster31/bamtools/commit/a610d2c0150d4b821aa4096e57eb77e4b0c14aa7 +From a610d2c0150d4b821aa4096e57eb77e4b0c14aa7 Mon Sep 17 00:00:00 2001 +From: David Seifert <[email protected]> +Date: Sat, 31 Jul 2021 15:46:18 +0200 +Subject: [PATCH] CMakeLists.txt: CMake >= 3.11 + +* `INCLUDE_GUARD_NAME` in `GENERATE_EXPORT_HEADER()` was added in 3.11 + +Fixes: #216 +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fc3a80c..2382802 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,5 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.11) ++# need 3.11 for INCLUDE_GUARD_NAME in GENERATE_EXPORT_HEADER + + project( + BamTools
