You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild

52 lines
1.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils
DESCRIPTION="Advanced molecule editor and visualizer 2 - libraries"
HOMEPAGE="http://www.openchemistry.org/"
SRC_URI="mirror://sourceforge/project/avogadro/avogadro2/${PV}/${P}.tar.gz"
SLOT="0"
LICENSE="BSD GPL-2+"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc opengl qt4 static-plugins test vtk"
REQUIRED_USE="qt4? ( opengl )"
RDEPEND="
>=sci-chemistry/molequeue-0.7
sci-libs/chemkit
sci-libs/hdf5:=
opengl? (
dev-qt/qtopengl:4
media-libs/glew
)
qt4? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)
vtk? ( sci-libs/vtk )
"
DEPEND="${DEPEND}
test? ( dev-cpp/gtest )"
PATCHES=( "${FILESDIR}"/${P}-6464.patch )
src_configure() {
local mycmakeargs=(
-DUSE_PROTOCALL=OFF
-DBUILD_GPL_PLUGINS=ON
$(cmake-utils_use_build doc DOCUMENTATION)
$(cmake-utils_use_use opengl OPENGL)
$(cmake-utils_use_use qt4 QT)
$(cmake-utils_use_build static-plugins STATIC_PLUGINS)
$(cmake-utils_use_enable test TESTING)
$(cmake-utils_use_use vtk VTK)
)
cmake-utils_src_configure
}