Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/graphics
In directory vz-cvs-3.sog:/tmp/cvs-serv19482

Modified Files:
        pil-systempython.info 
Log Message:
Setting PYTHONPATH less intrusively; still validator-uncompliant

Index: pil-systempython.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/graphics/pil-systempython.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pil-systempython.info       18 Oct 2011 21:22:46 -0000      1.1
+++ pil-systempython.info       10 Feb 2012 10:29:49 -0000      1.2
@@ -3,7 +3,7 @@
 Type: python (2.5 2.6 2.7)
 Distribution: (%type_pkg[python] = 25) 10.5, (%type_pkg[python] = 26) 10.6, 
(%type_pkg[python] = 27) 10.7
 Version: 1.1.7
-Revision: 2
+Revision: 3
 Description: Python Imaging Library 
 DescDetail: <<
 The Python Imaging Library (PIL) adds image processing capabilities to
@@ -34,6 +34,23 @@
  cp -R Scripts %i/share/doc/%n
  mkdir -p 
%i/Library/Python/%type_raw[python]/include/python%type_raw[python]/PIL
  cp -f libImaging/ImPlatform.h libImaging/Imaging.h 
%i/Library/Python/%type_raw[python]/include/python%type_raw[python]/PIL
+ /usr/bin/install -d %i/etc/profile.d
+ cat >%i/etc/profile.d/%n.sh <<-"EOF"   
+   if [ -z "$PYTHONPATH" ]; then
+     PYTHONPATH="%p/Library/Python/%type_raw[python]/site-packages"
+   else
+     prepend_path PYTHONPATH 
"%p/Library/Python/%type_raw[python]/site-packages"
+   fi
+   export PYTHONPATH
+EOF
+ cat >%i/etc/profile.d/%n.csh <<-"EOF"
+   if ( $?PYTHONPATH ) then
+     prepend_path PYTHONPATH 
"%p/Library/Python/%type_raw[python]/site-packages"
+   else
+     setenv PYTHONPATH "%p/Library/Python/%type_raw[python]/site-packages"
+   endif
+EOF
+ chmod 755 %i/etc/profile.d/%n.*
 <<
 InfoTest: <<
         TestScript: <<
@@ -43,9 +60,6 @@
                 /usr/bin/python selftest.py || exit 2
         <<
 <<
-RuntimeVars: <<
- PYTHONPATH: %p/Library/Python/%type_raw[python]/site-packages
-<<
 DocFiles: CHANGES BUILDME CONTENTS README
 DescUsage: <<
  The package sets the runtime environment variable PYTHONPATH to


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to