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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon May 11 15:13:50 2015 UTC (4 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -1 lines
Add patch to fix underlinking, thanks Tom Daff preparing the patch, bug #547400

(Portage version: 2.2.18/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.1.0.ebuild,v 1.6 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 ~x86"
18 IUSE="+glsl python cpu_flags_x86_sse2 test"
19
20 RDEPEND="
21 >=sci-chemistry/openbabel-2.3.0
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 # https://sourceforge.net/p/avogadro/bugs/653/
35 RESTRICT="test"
36
37 PATCHES=(
38 "${FILESDIR}"/${P}-textrel.patch
39 "${FILESDIR}"/${P}-xlibs.patch
40 )
41
42 pkg_setup() {
43 use python && python-single-r1_pkg_setup
44 }
45
46 src_configure() {
47 local mycmakeargs=(
48 -DENABLE_THREADGL=OFF
49 -DENABLE_RPATH=OFF
50 -DENABLE_UPDATE_CHECKER=OFF
51 -DQT_MKSPECS_DIR="${EPREFIX}/usr/share/qt4/mkspecs"
52 -DQT_MKSPECS_RELATIVE=share/qt4/mkspecs
53 $(cmake-utils_use_enable glsl)
54 $(cmake-utils_use_enable test TESTS)
55 $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
56 $(cmake-utils_use_enable python)
57 )
58
59 cmake-utils_src_configure
60 }

  ViewVC Help
Powered by ViewVC 1.1.20