blob: 39e4ab229a635ecf8bf11961943c54cc57dc78b0 (
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
|
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Image-processing software for cryo-electron microscopy"
HOMEPAGE="https://www3.mrc-lmb.cam.ac.uk/relion/index.php/Main_Page"
SRC_URI="https://github.com/3dem/relion/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+gui"
DEPEND="
gui? ( x11-libs/fltk )
dev-cpp/tbb
sci-libs/fftw:3.0
media-libs/tiff
virtual/mpi
"
RDEPEND="
${DEPEND}
sci-chemistry/ctffind
"
BDEPEND="${DEPEND}"
src_configure() {
CMAKE_BUILD_TYPE=Release
mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DALTCPU=$(usex !cuda)
-DFORCE_OWN_FFTW=OFF
-DFORCE_OWN_FLTK=OFF
-DFORCE_OWN_TBB=OFF
-DCUDA=OFF
-DGUI=$(usex gui)
)
cmake_src_configure
}
|