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

Contents of /sci-chemistry/avogadro/avogadro-1.0.2_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Apr 26 16:26:52 2011 UTC (8 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version Bump, cleaned old

(Portage version: 2.2.0_alpha30/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.2_rc1.ebuild,v 1.1 2011/03/26 17:09:52 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"
19
20 RDEPEND="
21 >=sci-chemistry/openbabel-2.2.3
22 >=x11-libs/qt-gui-4.5.3:4
23 >=x11-libs/qt-opengl-4.5.3:4
24 x11-libs/gl2ps
25 glsl? ( >=media-libs/glew-1.5.0 )
26 python? (
27 >=dev-libs/boost-1.35
28 >=dev-libs/boost-1.35.0-r5[python]
29 dev-python/numpy
30 dev-python/sip
31 )"
32 DEPEND="${RDEPEND}
33 >=dev-cpp/eigen-2.0.9
34 >=dev-util/cmake-2.6.2"
35
36 pkg_setup() {
37 python_set_active_version 2
38 }
39
40 src_prepare() {
41 epatch \
42 "${FILESDIR}"/1.0.1-gl2ps.patch
43 }
44
45 src_configure() {
46 local mycmakeargs
47 mycmakeargs="${mycmakeargs}
48 -DENABLE_THREADGL=FALSE
49 -DENABLE_RPATH=OFF
50 -DENABLE_UPDATE_CHECKER=OFF
51 $(cmake-utils_use_enable glsl GLSL)
52 $(cmake-utils_use_enable python PYTHON)"
53
54 cmake-utils_src_configure
55 }

  ViewVC Help
Powered by ViewVC 1.1.20