diff options
Diffstat (limited to 'sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild')
-rw-r--r-- | sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild b/sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild new file mode 100644 index 000000000000..d68a539ddce7 --- /dev/null +++ b/sci-libs/avogadrolibs/avogadrolibs-0.7.2-r1.ebuild @@ -0,0 +1,51 @@ +# 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 +} |