You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/avogadro/avogadro-1.1.0.ebuild

65 lines
1.4 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/avogadro/avogadro-1.1.0.ebuild,v 1.3 2013/03/02 23:17:15 hwoarang Exp $
EAPI=5
PYTHON_DEPEND="python? 2:2.5"
inherit cmake-utils eutils python
DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
HOMEPAGE="http://avogadro.openmolecules.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="+glsl python sse2 test"
RDEPEND="
>=sci-chemistry/openbabel-2.3.0
>=dev-qt/qtgui-4.5.3:4
>=dev-qt/qtopengl-4.5.3:4
x11-libs/gl2ps
glsl? ( >=media-libs/glew-1.5.0 )
python? (
>=dev-libs/boost-1.35.0-r5[python]
dev-python/numpy
dev-python/sip
)"
DEPEND="${RDEPEND}
dev-cpp/eigen:2
dev-util/cmake"
# https://sourceforge.net/p/avogadro/bugs/653/
RESTRICT="test"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
epatch "${FILESDIR}"/${P}-textrel.patch
}
src_configure() {
local mycmakeargs=(
"-DENABLE_THREADGL=OFF"
"-DENABLE_RPATH=OFF"
"-DENABLE_UPDATE_CHECKER=OFF"
"-DQT_MKSPECS_DIR=${EPREFIX}/usr/share/qt4/mkspecs"
"-DQT_MKSPECS_RELATIVE=share/qt4/mkspecs"
$(cmake-utils_use_enable glsl)
$(cmake-utils_use_enable test TESTS)
$(cmake-utils_use_with sse2 SSE2)
$(cmake-utils_use_enable python)
)
cmake-utils_src_configure
}
src_test() {
cmake-utils_src_test
}