avogadro-1.0.3-r2.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit cmake-utils eutils python-single-r1
  6. DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL"
  7. HOMEPAGE="http://avogadro.openmolecules.net/"
  8. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~arm ~ppc ~x86"
  12. IUSE="+glsl python cpu_flags_x86_sse2"
  13. RDEPEND="
  14. >=sci-chemistry/openbabel-2.2.3
  15. >=dev-qt/qtgui-4.5.3:4
  16. >=dev-qt/qtopengl-4.5.3:4
  17. x11-libs/gl2ps
  18. glsl? ( >=media-libs/glew-1.5.0 )
  19. python? (
  20. >=dev-libs/boost-1.35.0-r5[${PYTHON_USEDEP}]
  21. dev-python/numpy[${PYTHON_USEDEP}]
  22. dev-python/sip[${PYTHON_USEDEP}]
  23. )"
  24. DEPEND="${RDEPEND}
  25. dev-cpp/eigen:2"
  26. PATCHES=(
  27. "${FILESDIR}"/1.0.1-gl2ps.patch
  28. )
  29. pkg_setup() {
  30. use python && python-single-r1_pkg_setup
  31. }
  32. src_configure() {
  33. local mycmakeargs=(
  34. -DENABLE_THREADGL=OFF
  35. -DENABLE_RPATH=OFF
  36. -DENABLE_UPDATE_CHECKER=OFF
  37. -DQT_MKSPECS_DIR="${EPREFIX}/usr/share/qt4/mkspecs"
  38. -DQT_MKSPECS_RELATIVE=share/qt4/mkspecs
  39. $(cmake-utils_use_enable glsl)
  40. $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
  41. $(cmake-utils_use_enable python)
  42. )
  43. cmake-utils_src_configure
  44. }