blob: 2d90c2ba3f518e89d3d37b477a6df1dbb9201825 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/avogadro/avogadro-0.9.5.ebuild,v 1.1 2009/06/02 18:16:33 cryos Exp $
EAPI=2
inherit cmake-utils
DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
HOMEPAGE="http://avogadro.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+glsl python"
# boost deps look like that because -r5 and later have a python useflag we need
RDEPEND=">=sci-chemistry/openbabel-2.2.1
>=x11-libs/qt-gui-4.4.0:4
>=x11-libs/qt-opengl-4.4.0:4
glsl? ( >=media-libs/glew-1.5.0 )
python? (
>=dev-lang/python-2.5
>=dev-libs/boost-1.35
|| ( >=dev-libs/boost-1.35.0-r5[python] <dev-libs/boost-1.35.0-r5 )
dev-python/numpy
dev-python/sip
)"
DEPEND="${RDEPEND}
dev-cpp/eigen:2
>=dev-util/cmake-2.6.2"
src_configure() {
local mycmakeargs
mycmakeargs="${mycmakeargs}
-DENABLE_THREADGL=FALSE
-DENABLE_RPATH=OFF
-DENABLE_UPDATE_CHECKER=OFF
$(cmake-utils_use_enable glsl GLSL)
$(cmake-utils_use_enable python PYTHON)"
cmake-utils_src_configure
}
|