blob: 18724643fd536a78d5fc5241df0d9c51d216a919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/visual-3.2.1.ebuild,v 1.1 2005/06/01 02:04:13 tercel Exp $
inherit distutils
DESCRIPTION="An easy to use Real-time 3D graphics library for Python."
SRC_URI="http://www.vpython.org/download/${PN}-${PV}.tar.bz2"
HOMEPAGE="http://www.vpython.org/"
IUSE="doc examples numeric numarray"
SLOT="0"
KEYWORDS="~x86"
LICENSE="visual"
DEPEND=">=dev-lang/python-2.3
virtual/opengl
=x11-libs/gtk+-1.2*
>=x11-libs/gtkglarea-1.2
dev-util/pkgconfig
>=dev-libs/boost-1.31
numeric? ( dev-python/numeric )
numarray? ( >=dev-python/numarray-1.0 )
!numeric? ( !numarray? (dev-python/numeric) )"
RESTRICT="nomirror"
src_compile() {
echo
if useq numeric; then
einfo "Building with Numeric support"
elif useq numarray; then
einfo "Building with Numarray support"
else
einfo "Support for Numeric or Numarray was not specified."
einfo "Building with Numeric support"
fi
echo
econf \
--with-html-dir=/usr/share/doc/${PF}/html \
--with-example-dir=/usr/share/doc/${PF}/examples \
$(use_enable doc docs ) \
$(use_enable examples ) \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
python_version
mv ${D}/usr/lib/python${PYVER}/site-packages/cvisualmodule* \
${D}/usr/lib/python${PYVER}/site-packages/visual
#the vpython script does not work, and is unnecessary
rm ${D}/usr/bin/vpython
}
|