[59127] trunk/dports/devel/ice-python26/Portfile

blair at macports.org blair at macports.org
Fri Oct 9 20:12:36 PDT 2009


Revision: 59127
          http://trac.macports.org/changeset/59127
Author:   blair at macports.org
Date:     2009-10-09 20:12:32 -0700 (Fri, 09 Oct 2009)
Log Message:
-----------
Move the Ice Python 2.6 bindings into the
${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
so they can be found.

Modified Paths:
--------------
    trunk/dports/devel/ice-python26/Portfile

Modified: trunk/dports/devel/ice-python26/Portfile
===================================================================
--- trunk/dports/devel/ice-python26/Portfile	2009-10-10 03:03:14 UTC (rev 59126)
+++ trunk/dports/devel/ice-python26/Portfile	2009-10-10 03:12:32 UTC (rev 59127)
@@ -4,6 +4,7 @@
 
 name		ice-python26
 version		3.3.1
+revision	1
 categories	devel python
 maintainers	blair
 description	Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
@@ -87,22 +88,26 @@
 	set sharedir ${destroot}${prefix}/share
 	set docdir ${sharedir}/doc/${name}
 
+	set python_root ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6
+	set python26_dir ${python_root}/lib/python2.6
+	set site_packages_dir ${python26_dir}/site-packages
+
 	delete ${destroot}${prefix}/slice
 
 	xinstall -m 755 -d ${docdir}
 
-	file mkdir ${destroot}${prefix}/lib/python2.6
-	file rename ${destroot}${prefix}/python ${destroot}${prefix}/lib/python2.6/site-packages
+	file mkdir ${python26_dir}
+	file rename ${destroot}${prefix}/python ${site_packages_dir}
 
 	set cmd "${prefix}/bin/python2.6 \
 		${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py \
-		${destroot}${prefix}/lib/python2.6/site-packages"
+		${site_packages_dir}"
 	ui_debug ${cmd}
 	system ${cmd}
 
 	set cmd "${prefix}/bin/python2.6 -O \
 		${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py \
-		${destroot}${prefix}/lib/python2.6/site-packages"
+		${site_packages_dir}"
 	ui_debug ${cmd}
 	system ${cmd}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091009/38a12dfa/attachment-0001.html>


More information about the macports-changes mailing list