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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jun 29 07:35:49 2015 UTC (4 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Drop ppc64 due to revdep breakage

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)

1 # Copyright 1999-2015 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-r2.ebuild,v 1.3 2015/04/08 18:22:13 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit cmake-utils eutils python-single-r1
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 ~arm ~ppc ~x86"
18 IUSE="+glsl python cpu_flags_x86_sse2"
19
20 RDEPEND="
21 >=sci-chemistry/openbabel-2.2.3
22 >=dev-qt/qtgui-4.5.3:4
23 >=dev-qt/qtopengl-4.5.3:4
24 x11-libs/gl2ps
25 glsl? ( >=media-libs/glew-1.5.0 )
26 python? (
27 >=dev-libs/boost-1.35.0-r5[${PYTHON_USEDEP}]
28 dev-python/numpy[${PYTHON_USEDEP}]
29 dev-python/sip[${PYTHON_USEDEP}]
30 )"
31 DEPEND="${RDEPEND}
32 dev-cpp/eigen:2"
33
34 PATCHES=(
35 "${FILESDIR}"/1.0.1-gl2ps.patch
36 )
37
38 pkg_setup() {
39 use python && python-single-r1_pkg_setup
40 }
41
42 src_configure() {
43 local mycmakeargs=(
44 -DENABLE_THREADGL=OFF
45 -DENABLE_RPATH=OFF
46 -DENABLE_UPDATE_CHECKER=OFF
47 -DQT_MKSPECS_DIR="${EPREFIX}/usr/share/qt4/mkspecs"
48 -DQT_MKSPECS_RELATIVE=share/qt4/mkspecs
49 $(cmake-utils_use_enable glsl)
50 $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
51 $(cmake-utils_use_enable python)
52 )
53
54 cmake-utils_src_configure
55 }

  ViewVC Help
Powered by ViewVC 1.1.20