You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.5 KiB
69 lines
1.5 KiB
7 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 months ago
|
EAPI=8
|
||
4 years ago
|
|
||
7 months ago
|
inherit cmake flag-o-matic
|
||
4 years ago
|
|
||
|
DESCRIPTION="Near-optimal RNA-Seq quantification"
|
||
|
HOMEPAGE="http://pachterlab.github.io/kallisto/"
|
||
|
|
||
|
if [[ ${PV} == *9999 ]]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/pachterlab/kallisto.git"
|
||
|
else
|
||
|
SRC_URI="https://github.com/pachterlab/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
fi
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
IUSE="hdf5 test"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
RDEPEND="
|
||
|
sci-libs/htslib:=
|
||
|
sys-libs/zlib:=
|
||
|
hdf5? ( sci-libs/hdf5:= )"
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
test? (
|
||
7 months ago
|
>=dev-cpp/catch-3:0
|
||
4 years ago
|
sci-libs/hdf5
|
||
|
)"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-cmake.patch
|
||
|
"${FILESDIR}"/${P}-htslib.patch
|
||
|
"${FILESDIR}"/${P}-catch2.patch
|
||
|
"${FILESDIR}"/${P}-gcc11.patch
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
cmake_src_prepare
|
||
|
# bundled catch2
|
||
|
rm -r ext || die
|
||
|
# bundled htslib structs
|
||
|
rm src/kseq.h || die
|
||
|
|
||
|
# the test suite is cheesy and relies on a
|
||
|
# specific builddir nesting structure.
|
||
|
sed -e "s|../test/input/short_reads.fastq|$(readlink -f unit_tests/input/short_reads.fastq)|g" \
|
||
|
-i unit_tests/test_kmerhashtable.cpp || die
|
||
7 months ago
|
|
||
|
# This randomly hardcodes a particular std, which unfortunately is too old for catch2.
|
||
|
sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt || die
|
||
|
append-cxxflags -std=c++14
|
||
4 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DUSE_HDF5=$(usex hdf5)
|
||
|
-DBUILD_TESTING=$(usex test)
|
||
|
# convenience library only
|
||
|
-DBUILD_SHARED_LIBS=OFF
|
||
|
)
|
||
|
cmake_src_configure
|
||
|
}
|