blob: 062fa44ef1e7cd114e0de9349565a5543932e9fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="C++ Library for reading and writing CIFTI-2 and CIFTI-1 files"
HOMEPAGE="https://github.com/Washington-University/CiftiLib"
SRC_URI="https://github.com/Washington-University/CiftiLib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt5"
DEPEND="
dev-libs/boost
qt5? ( dev-qt/qtcore:5 )
!qt5? ( dev-cpp/libxmlpp:2.6 )
sys-libs/zlib
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/CiftiLib-${PV}"
#TODO: Enable doc building and installation
src_prepare(){
# Make sure that CiftiLib headers and code can
# coexist with nifti_io headers.
# This takes care of the guard in the nifti1.h header
# found in both code base.
sed \
-e "s:NIFTI_:CIFTI_NIFTI__:g" \
-i `grep -rl NIFTI_ *`
sed \
-e "s:DT_:CIFTI_DT_:g" \
-i `grep -rl DT_ *`
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(-DBUILD_SHARED_LIBS=ON)
use qt5 || mycmakeargs+=(-DIGNORE_QT=TRUE)
cmake_src_configure
}
src_test(){
#The testsuite is not designed to run in parallel
local myctestargs=(
-j1
)
cmake_src_test
}
|