/[gentoo-x86]/dev-python/visual/visual-5.13.ebuild
Gentoo

Diff of /dev-python/visual/visual-5.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/Attic/visual-5.13.ebuild,v 1.1 2009/10/20 16:13:47 grozin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/Attic/visual-5.13.ebuild,v 1.2 2009/12/09 15:50:38 grozin Exp $
4 4
5EAPI=2 5EAPI=2
6inherit eutils python 6inherit eutils python flag-o-matic versionator
7 7
8MY_P="${P}_release" 8MY_P="${P}_release"
9S="${WORKDIR}/${MY_P}" 9S="${WORKDIR}/${MY_P}"
10 10
11DESCRIPTION="Real-time 3D graphics library for Python" 11DESCRIPTION="Real-time 3D graphics library for Python"
15IUSE="doc examples" 15IUSE="doc examples"
16SLOT="0" 16SLOT="0"
17KEYWORDS="~amd64 ~ppc ~x86" 17KEYWORDS="~amd64 ~ppc ~x86"
18LICENSE="visual" 18LICENSE="visual"
19 19
20RDEPEND="=dev-libs/boost-1.35* 20RDEPEND=">=dev-libs/boost-1.41.0[python]
21 dev-cpp/libglademm 21 dev-cpp/libglademm
22 >=dev-cpp/gtkglextmm-1.2 22 >=dev-cpp/gtkglextmm-1.2
23 dev-python/numpy" 23 dev-python/numpy"
24 24
25DEPEND="${RDEPEND} 25DEPEND="${RDEPEND}
26 dev-util/pkgconfig" 26 dev-util/pkgconfig"
27 27
28src_configure() { 28src_configure() {
29 BOOST_PKG="$(best_version ">=dev-libs/boost-1.41.0")"
30 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
31 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
32 BOOST_INC="/usr/include/boost-${BOOST_VER}"
33 BOOST_LIB="/usr/$(get_libdir)/boost-${BOOST_VER}"
34
35 #We have to use a hack here because the build system doesn't provide a way to specify
36 #the include and lib directory for boost
37 append-cxxflags -I${BOOST_INC}
38 append-ldflags -L${BOOST_LIB}
39
29 econf \ 40 econf \
30 --with-html-dir=/usr/share/doc/${PF}/html \ 41 --with-html-dir=/usr/share/doc/${PF}/html \
31 --with-example-dir=/usr/share/doc/${PF}/examples \ 42 --with-example-dir=/usr/share/doc/${PF}/examples \
32 $(use_enable doc docs) \ 43 $(use_enable doc docs) \
33 $(use_enable examples) 44 $(use_enable examples)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20