diff options
author | Jesus Rivero <neurogeek@gentoo.org> | 2008-08-09 17:31:46 +0000 |
---|---|---|
committer | Jesus Rivero <neurogeek@gentoo.org> | 2008-08-09 17:31:46 +0000 |
commit | b3dae4c02dbcd639cc78175ffa995f6b6bc16999 (patch) | |
tree | 8624745690bce7ec8740f41a5f0a472f3c6f676e /dev-python | |
parent | alpha/ia64/sparc stable wrt #234191 (diff) | |
download | gentoo-2-b3dae4c02dbcd639cc78175ffa995f6b6bc16999.tar.gz gentoo-2-b3dae4c02dbcd639cc78175ffa995f6b6bc16999.tar.bz2 gentoo-2-b3dae4c02dbcd639cc78175ffa995f6b6bc16999.zip |
Rev bump. Fixes bugs #176431, #143237, #222205 and #172634
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/visual/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/visual/files/visual-3.2.9-import_bug143237.patch | 31 | ||||
-rw-r--r-- | dev-python/visual/visual-3.2.9-r1.ebuild | 76 |
3 files changed, 114 insertions, 1 deletions
diff --git a/dev-python/visual/ChangeLog b/dev-python/visual/ChangeLog index e87dd416df91..3c69379b061b 100644 --- a/dev-python/visual/ChangeLog +++ b/dev-python/visual/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/visual # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.22 2008/08/06 18:29:53 neurogeek Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.23 2008/08/09 17:31:45 neurogeek Exp $ + +*visual-3.2.9-r1 (09 Aug 2008) + + 09 Aug 2008; Jesus Rivero <neurogeek@gentoo.org> + +files/visual-3.2.9-import_bug143237.patch, +visual-3.2.9-r1.ebuild: + Rev bump. Fixes bugs #176431, #143237, #222205 and #172634 06 Aug 2008; Jesus Rivero <neurogeek@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/dev-python/visual/files/visual-3.2.9-import_bug143237.patch b/dev-python/visual/files/visual-3.2.9-import_bug143237.patch new file mode 100644 index 000000000000..ecb42ce1749a --- /dev/null +++ b/dev-python/visual/files/visual-3.2.9-import_bug143237.patch @@ -0,0 +1,31 @@ +--- site-packages/visual/__init__.py 2008-06-30 22:39:08.000000000 -0430 ++++ site-packages/visual/__init__.py 2008-06-30 22:39:53.000000000 -0430 +@@ -13,6 +13,14 @@ + + # Don't try this at home! + import array_backend ++ ++#Import visual modules ++import crayola ++color = crayola ++from visual.primitives import arrow, cylinder, cone, sphere, box, ring, label ++from visual.primitives import frame, curve, pyramid, ellipsoid, convex, faces, helix ++from visual.ui import display ++ + # The following is intended to be equivalent to: + # >>> from array_backend.backend[0] import * + vars = __import__(array_backend.backend[0], globals(), locals(), []) +@@ -21,13 +29,8 @@ + locals()[i] = j + + # import all of the public modules into the global namespace +-import crayola +-color = crayola + import cvisual + from cvisual import vector, mag, mag2, norm, cross, rotate, comp, proj, diff_angle, rate +-from visual.primitives import arrow, cylinder, cone, sphere, box, ring, label +-from visual.primitives import frame, curve, pyramid, ellipsoid, convex, faces, helix +-from visual.ui import display + from cvisual import vector_array, scalar_array + + def __waitclose(): diff --git a/dev-python/visual/visual-3.2.9-r1.ebuild b/dev-python/visual/visual-3.2.9-r1.ebuild new file mode 100644 index 000000000000..ff9f7db991fd --- /dev/null +++ b/dev-python/visual/visual-3.2.9-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/visual-3.2.9-r1.ebuild,v 1.1 2008/08/09 17:31:45 neurogeek Exp $ + +inherit distutils + +DESCRIPTION="An easy to use Real-time 3D graphics library for Python." +SRC_URI="http://www.vpython.org/download/${P}.tar.bz2" +HOMEPAGE="http://www.vpython.org/" + +IUSE="doc examples numeric numarray" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +LICENSE="visual" + +RDEPEND="virtual/python + virtual/opengl + =x11-libs/gtk+-1.2* + =x11-libs/gtkglarea-1.2* + >=dev-libs/boost-1.31 + numeric? ( dev-python/numeric ) + numarray? ( >=dev-python/numarray-1.0 ) + !numeric? ( !numarray? ( dev-python/numeric ) )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}"/site-packages + epatch "${FILESDIR}/${P}"-import_bug143237.patch +} + +src_compile() { + local myconf="--without-numarray --without-numeric" + + echo + if useq numeric; then + elog "Building with Numeric support" + myconf=${myconf/--without-numeric} + fi + if useq numarray; then + elog "Building with Numarray support" + myconf=${myconf/--without-numarray} + fi + if ! useq numeric && ! useq numarray; then + elog "Support for Numeric or Numarray was not specified." + elog "Building with Numeric support" + myconf=${myconf/--without-numeric} + 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 ) \ + ${myconf} \ + || die "configure failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + python_version + + insinto $(python_get_sitedir) + doins -r "${WORKDIR}/${P}"/site-packages/* + + #the vpython script does not work, and is unnecessary. + #Also nuke directories that are empty so we don't have + #empty directories hanging around. + rm -rf "${D}"/usr/bin/ + +} |