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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Mar 1 18:22:09 2009 UTC (10 years, 7 months ago) by cryos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump, new version fixes bug 259643. Pruned old versions.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/avogadro/avogadro-0.8.0.ebuild,v 1.3 2008/08/12 00:26:00 yngwin Exp $
4
5 EAPI=1
6 RESTRICT="mirror"
7
8 inherit toolchain-funcs multilib
9
10 DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
11 HOMEPAGE="http://avogadro.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="python"
18
19 DEPEND=">=dev-util/cmake-2.4.8
20 >=dev-cpp/eigen-1.0.5
21 ${RDEPEND}"
22 RDEPEND="|| ( ( x11-libs/qt-gui:4 x11-libs/qt-opengl:4 ) =x11-libs/qt-4.3* )
23 >=sci-chemistry/openbabel-2.2.0_beta5
24 python? ( >=dev-lang/python-2.5 >=dev-libs/boost-1.34 )"
25
26 src_compile() {
27 if use python; then
28 USEPYTHON="TRUE"
29 else
30 USEPYTHON="FALSE"
31 fi
32 cmake -DCMAKE_INSTALL_PREFIX=/usr \
33 -DLIBRARY_OUTPUT_PATH=PROJECT_BINARY_DIR/$(get_libdir) \
34 -DCMAKE_BUILD_TYPE=Release \
35 -DENABLE_PYTHON=${USEPYTHON} \
36 -DLIB_INSTALL_DIR=$(get_libdir) \
37 -DCMAKE_C_COMPILER=$(type -p $(tc-getCC)) \
38 -DCMAKE_CXX_COMPILER=$(type -p $(tc-getCXX)) || die "cmake failed"
39 emake || die "emake failed"
40 }
41
42 src_install() {
43 make DESTDIR="${D}" install || die "make install failed"
44 }

  ViewVC Help
Powered by ViewVC 1.1.20