/[gentoo-x86]/sci-chemistry/avogadro/avogadro-1.0.0.ebuild
Gentoo

Contents of /sci-chemistry/avogadro/avogadro-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 14 17:18:19 2011 UTC (8 years, 2 months ago) by alexxy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
[sci-chemistry/avogadro] Drop old versions and make it respect qt_mkspec

(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/avogadro/avogadro-1.0.0.ebuild,v 1.4 2011/04/27 07:26:04 jlec Exp $
4
5 EAPI=2
6
7 PYTHON_DEPEND="python? 2:2.5"
8
9 inherit cmake-utils eutils python
10
11 DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
12 HOMEPAGE="http://avogadro.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="+glsl python sse2"
19
20 RDEPEND="
21 >=sci-chemistry/openbabel-2.2.2
22 >=x11-libs/qt-gui-4.5.2:4
23 >=x11-libs/qt-opengl-4.5.2:4
24 glsl? ( >=media-libs/glew-1.5.0 )
25 python? (
26 >=dev-libs/boost-1.35
27 >=dev-libs/boost-1.35.0-r5[python]
28 dev-python/numpy
29 dev-python/sip
30 )"
31 DEPEND="${RDEPEND}
32 dev-cpp/eigen:2
33 >=dev-util/cmake-2.6.2"
34
35 pkg_setup() {
36 python_set_active_version 2
37 }
38
39 src_prepare() {
40 epatch "${FILESDIR}/${P}-sip-4.10.patch"
41 }
42
43 src_configure() {
44 local mycmakeargs
45 mycmakeargs="${mycmakeargs}
46 -DENABLE_THREADGL=FALSE
47 -DENABLE_RPATH=OFF
48 -DENABLE_UPDATE_CHECKER=OFF
49 $(cmake-utils_use_enable glsl GLSL)
50 $(cmake-utils_use_with sse2 SSE2)
51 $(cmake-utils_use_enable python PYTHON)"
52
53 cmake-utils_src_configure
54 }

  ViewVC Help
Powered by ViewVC 1.1.20