blob: ad4894dd14a3c91c7e1334fee30f56e6fd0f137d (
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
58
59
60
61
|
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit cmake-utils
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}"
PATCHES=(
"${FILESDIR}"/${PN}-1.5.3-openmp_in_pc.patch
)
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-utils_src_prepare
}
src_configure() {
local mycmakeargs=(-DBUILD_SHARED_LIBS=ON)
use qt5 || mycmakeargs+=(-DIGNORE_QT=TRUE)
cmake-utils_src_configure
}
src_test(){
#The testsuite is not designed to run in parallel
local myctestargs=(
-j1
)
cmake-utils_src_test
}
|