blob: 05d51a22db6e156427376dd16154557efa62637b (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/avogadro/avogadro-0.6.1.ebuild,v 1.2 2008/08/12 00:26:00 yngwin Exp $
EAPI=1
RESTRICT="mirror"
inherit toolchain-funcs multilib
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=""
DEPEND=">=dev-util/cmake-2.4.6
>=dev-cpp/eigen-1.0.5
${RDEPEND}"
RDEPEND="|| ( ( x11-libs/qt-gui:4 x11-libs/qt-opengl:4 ) =x11-libs/qt-4.3* )
>=sci-chemistry/openbabel-2.2.0_beta4"
src_compile() {
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLIBRARY_OUTPUT_PATH=PROJECT_BINARY_DIR/$(get_libdir) \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=$(get_libdir) \
-DCMAKE_C_COMPILER=$(type -p $(tc-getCC)) \
-DCMAKE_CXX_COMPILER=$(type -p $(tc-getCXX)) || die "cmake failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
}
|