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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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.3.ebuild,v 1.3 2011/04/28 14:22:35 scarabeus Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="python? 2:2.5"
8
9 inherit base cmake-utils eutils python
10
11 DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
12 HOMEPAGE="http://avogadro.openmolecules.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.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"
34
35 PATCHES=(
36 "${FILESDIR}"/1.0.1-gl2ps.patch
37 )
38
39 pkg_setup() {
40 python_set_active_version 2
41 }
42
43 src_configure() {
44 local mycmakeargs=(
45 "-DENABLE_THREADGL=FALSE"
46 "-DENABLE_RPATH=OFF"
47 "-DENABLE_UPDATE_CHECKER=OFF"
48 $(cmake-utils_use_enable glsl)
49 $(cmake-utils_use_with sse2 SSE2)
50 $(cmake-utils_use_enable python)
51 )
52
53 cmake-utils_src_configure
54 }

  ViewVC Help
Powered by ViewVC 1.1.20