visual-py stable port information

Info2: <<
Package: visual-py%type_pkg[python]
Version: 3.2.9
Revision: 1004
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.3 2.4 2.5)
Source: mirror:sourceforge:visualpython/visual-%v.tar.bz2
Source-MD5: 58e46ecb628a4fdbb5c58540b6cbede1
SourceDirectory: visual-%v
License: BSD
GCC: 4.0
Depends: x11-shlibs, gtk+-shlibs, python%type_pkg[python], numeric-py%type_pkg[python], numarray-py%type_pkg[python], boost1.34.python%type_pkg[python]-shlibs (>= 1.34.1-1004)
BuildDepends: glib, x11-dev, pkgconfig, gtk+, gtkglarea, libgettext3-dev, boost1.34.python%type_pkg[python] (>= 1.34.1-1004), fink (>= 0.24.12)
PatchFile: %{ni}.patch
PatchFile-MD5: 99ffc72f955893b103dece7e5e6162ed
PatchScript: sed -e 's|@N@|%n|g;s|@XY@|%type_raw[python]|g' %{PatchFile} | patch -p1
SetCPPFLAGS: -Wno-long-double
SetLDFLAGS: -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
CompileScript: <<
#!/bin/sh -ex
export PYTHON=%p/bin/python%type_raw[python]
export CXXFLAGS="-O2 -finline-functions"
export CFLAGS='-O3'
./configure --prefix=%p --disable-dependency-tracking
make
<<
InstallScript: <<
#!/bin/sh -ex
mkdir -p %i/bin
make install DESTDIR=%d
mv %i/bin/vpython %i/bin/vpython%type_raw[python]
mkdir -p %i/share/doc/%n
mv %i/lib/python%type_raw[python]/site-packages/visual/docs/* %i/share/doc/%n
rmdir %i/lib/python%type_raw[python]/site-packages/visual/docs
cat > %i/share/doc/%n/config-main.cfg < # Copy this file to your ~/.idlerc directory if it is not yet there
[HelpFiles]
1 = Visual;%p/share/doc/%n/index.html

[EditorWindow]
font-size = 12
EOF
<<
Description: VPython - 3D Programming for Ordinary Mortals
DescDetail: <<
VPython uses Python with the IDLE interactive development environment
It includes "Visual", a Python module that offers real-time 3D output,
and is easily usable by novice programmers
It also uses "Numeric", a Python module for fast processing of arrays
<<
DescUsage: <<
Start X11 first, then run the "vpython%type_raw[python]" command.
<<
Maintainer: Martin Costabel
Homepage: http://vpython.org/index.html
<<

visual-py stable port .patch

--- visual-3.2.1/include/vector.h~ 2005-02-08 04:32:28.000000000 +0100
+++ visual-3.2.1/include/vector.h 2005-07-14 17:28:09.000000000 +0200
@@ -348,6 +348,7 @@
class shared_vector : public vector
{
private:
+ bool dummy___;
typedef Cache::write_lock write_lock;
mutex* owner; //< The owner of this mutex must be a Cache
// object. Since return_internal_reference<>() binds the lifetime of this
--- visual-3.2.1/bin/vpython.in~ 2005-02-25 21:39:38.000000000 +0100
+++ visual-3.2.1/bin/vpython.in 2005-07-14 18:24:19.000000000 +0200
@@ -1,8 +1,14 @@
#! /bin/sh
# Variables determined by configure.
PYTHON=@PYTHON@
+
+prefix=@prefix@
+[ -d ~/.idlerc ] || mkdir ~/.idlerc
+[ -r ~/.idlerc/config-main.cfg ] || cp @prefix@/share/doc/@N@/config-main.cfg ~/.idlerc/
+export BROWSER=${BROWSER:-open}
+
visualexampledir=@visualexampledir@
-IDLE=idle
+IDLE=@prefix@/bin/idle@XY@
PYTHONPATH=@PYTHONPATH@
export PYTHONPATH

--- visual-3.2.9/src/Makefile.in~ 2006-02-14 03:20:22.000000000 +0100
+++ visual-3.2.9/src/Makefile.in 2006-07-21 23:50:35.000000000 +0200
@@ -195,7 +195,7 @@
INSTALL_RULE = $(GENERIC_INSTALLRULE)
else
# These options are common to both Linux and OSX.
- CVISUAL_LIBS += $(GTK_LIBS) $(GTKGL_LIBS) $(GTHREAD_LIBS) -lboost_python
+ CVISUAL_LIBS += $(GTK_LIBS) $(GTKGL_LIBS) $(GTHREAD_LIBS) @prefix@/lib/libboost_python.a
CVISUAL_CPPFLAGS += $(GTK_CFLAGS) $(GTKGL_CFLAGS) $(GTHREAD_CFLAGS)
CVISUAL_CXXFLAGS += -fpic -DPIC

visual-py _unstable_ port .patch