aboutsummaryrefslogtreecommitdiff
blob: a6bdff287cd532f8e3951e83820bb122fee69863 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit cmake-utils versionator

MY_PN="${PN/-/}"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Advanced molecule editor and visualizer 2"
HOMEPAGE="http://www.openchemistry.org/"
SRC_URI="http://openchemistry.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"

SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc opengl qt4 test vtk"

RDEPEND="
	sci-chemistry/molequeue
	sci-libs/chemkit
	"
DEPEND="${RDEPEND}
"

S="${WORKDIR}"/${MY_P}

src_configure() {
	local mycmakeargs=(
		-DBUILD_STATIC_PLUGINS=OFF
		-DUSE_PROTOCALL=OFF
		$(cmake-utils_use_build doc DOCUMENTATION)
		$(cmake-utils_use_use opengl OPENGL)
		$(cmake-utils_use_enable test TESTING)
		$(cmake-utils_use_use qt4 QT)
		$(cmake-utils_use_use vtk VTK)
		)
	cmake-utils_src_configure
}