blob: d98ef8d5bd44e6abf3c862ed96543517d2c2807a (
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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit cmake-utils
MY_PN=avogadroapp
MY_P=${MY_PN}-${PV}
DESCRIPTION="Advanced molecule editor and visualizer 2"
HOMEPAGE="http://www.openchemistry.org/"
SRC_URI="mirror://sourceforge/project/avogadro/avogadro2/${PV}/${MY_P}.tar.gz"
SLOT="0"
LICENSE="BSD GPL-2+"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc rpc test vtk"
RDEPEND="
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtopengl:5
dev-qt/qtwidgets:5
~sci-libs/avogadrolibs-${PV}[qt5,opengl]
sci-libs/hdf5
rpc? ( sci-chemistry/molequeue )
"
DEPEND="${DEPEND}
>=dev-cpp/eigen-3.2.0-r1
test? ( dev-qt/qttest:5 )"
RESTRICT=test
S="${WORKDIR}"/${MY_P}
PATCHES=(
"${FILESDIR}"/${P}-desktop.patch
"${FILESDIR}"/${P}-vtk.patch
)
src_prepare() {
sed '/COPYING/d' -i CMakeLists.txt || die
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_build doc DOCUMENTATION)
$(cmake-utils_use rpc Avogadro_ENABLE_RPC)
$(cmake-utils_use_enable test TESTING)
$(cmake-utils_use_use vtk)
)
cmake-utils_src_configure
}
|