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.
80 lines
1.6 KiB
80 lines
1.6 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
4 years ago
|
inherit cmake multibuild toolchain-funcs
|
||
7 years ago
|
|
||
|
DESCRIPTION="C++ Sequence Analysis Library"
|
||
4 years ago
|
HOMEPAGE="https://www.seqan.de/"
|
||
7 years ago
|
|
||
|
if [[ ${PV} == *9999 ]]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/seqan/seqan.git"
|
||
|
EGIT_BRANCH="develop"
|
||
|
else
|
||
|
SRC_URI="https://github.com/seqan/seqan/archive/seqan-v${PV}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
4 years ago
|
S="${WORKDIR}"/seqan-seqan-v${PV}
|
||
7 years ago
|
fi
|
||
|
|
||
|
LICENSE="BSD GPL-3"
|
||
|
SLOT="0"
|
||
4 years ago
|
IUSE="cpu_flags_x86_sse4_1 tools"
|
||
7 years ago
|
REQUIRED_USE="cpu_flags_x86_sse4_1"
|
||
|
|
||
|
RDEPEND="
|
||
|
app-arch/bzip2:=
|
||
4 years ago
|
sys-libs/zlib
|
||
7 years ago
|
!!sci-biology/seqan:2.0
|
||
|
!!sci-biology/seqan:2.1
|
||
|
!!sci-biology/seqan:2.2"
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-fix-pthread.patch
|
||
|
"${FILESDIR}"/${P}-installpaths.patch
|
||
|
"${FILESDIR}"/${P}-cmake-add_library-static.patch
|
||
|
)
|
||
7 years ago
|
|
||
|
pkg_setup() {
|
||
|
if [[ ${MERGE_TYPE} != binary ]]; then
|
||
|
use tools && tc-check-openmp
|
||
|
|
||
4 years ago
|
MULTIBUILD_VARIANTS=( $(usev tools) library )
|
||
7 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
my_configure() {
|
||
4 years ago
|
local mycmakeargs=(
|
||
|
-DSEQAN_NO_DOX=ON
|
||
|
)
|
||
7 years ago
|
case "${MULTIBUILD_ID}" in
|
||
|
tools)
|
||
|
mycmakeargs+=(
|
||
|
-DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_APPS
|
||
|
)
|
||
|
;;
|
||
|
library)
|
||
|
mycmakeargs+=(
|
||
|
-DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_LIBRARY
|
||
|
)
|
||
|
;;
|
||
|
*)
|
||
|
die "${MULTIBUILD_ID} is not recognized"
|
||
|
;;
|
||
|
esac
|
||
4 years ago
|
cmake_src_configure
|
||
7 years ago
|
}
|
||
|
multibuild_foreach_variant my_configure
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
4 years ago
|
multibuild_foreach_variant cmake_src_compile
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
multibuild_foreach_variant cmake_src_install
|
||
7 years ago
|
}
|