[96774] trunk/dports/python
blair at macports.org
blair at macports.org
Sat Aug 18 22:37:29 PDT 2012
Revision: 96774
https://trac.macports.org/changeset/96774
Author: blair at macports.org
Date: 2012-08-18 22:37:25 -0700 (Sat, 18 Aug 2012)
Log Message:
-----------
py-zeroc-ice: new unified port based off ice-python27.
I named this zeroc-ice to match Debian/Ubuntu package naming since
'ice' is a pretty common name.
I am not supporting 2.4 since the Python Ice bindings require a
framework build and Python 2.4 is not a framework build on all Mac OS
X versions.
I am not supporting 2.5 right now since python-1.0.tcl and
python25-1.0.tcl treat Python 2.5 like 2.4, in that all the
${python.*} use a non-framework paths, and the port breaks.
To override python-1.0's settings, build.cmd and destroot.cmd were set
back to the original, default value and destroot.destdir was cleared.
Modified Paths:
--------------
trunk/dports/python/py-zeroc-ice/Portfile
Added Paths:
-----------
trunk/dports/python/py-zeroc-ice/
Property changes on: trunk/dports/python/py-zeroc-ice
___________________________________________________________________
Added: svn:mergeinfo
+ /branches/mld-qt-481/dports/devel/ice-python27:92720,92813,92891,92963,93522,93556,93699,93743,93771-93773,93806,93817-93818,93856
Modified: trunk/dports/python/py-zeroc-ice/Portfile
===================================================================
--- trunk/dports/devel/ice-python27/Portfile 2012-08-19 04:29:00 UTC (rev 96773)
+++ trunk/dports/python/py-zeroc-ice/Portfile 2012-08-19 05:37:25 UTC (rev 96774)
@@ -1,12 +1,12 @@
# $Id$
PortSystem 1.0
+PortGroup python 1.0
-name ice-python27
+name py-zeroc-ice
version 3.4.2
-revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
-categories devel python
+categories-append devel
maintainers blair
license GPL-2
description Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
@@ -40,84 +40,86 @@
patchfiles patch-py.config.Make.rules.Darwin.diff
platforms darwin
-depends_lib port:python27 \
- port:ice-cpp
+python.versions 26 27
-build.dir ${worksrcpath}/py
+if {$subport != $name} {
+ depends_lib-append port:ice-cpp
-post-patch {
- reinplace "s/-O2/-g -O2/" ${build.dir}/config/Make.rules.Darwin
+ build.dir ${worksrcpath}/py
- # Prevent name conflicts between libICE.* from xorg-libice and
- # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
- reinplace "s/-lIce /-lZeroCIce /" \
- ${build.dir}/config/Make.rules \
- ${build.dir}/config/Make.rules.Darwin
-}
+ post-patch {
+ reinplace "s/-O2/-g -O2/" ${build.dir}/config/Make.rules.Darwin
-use_configure no
+ # Prevent name conflicts between libICE.* from xorg-libice and
+ # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
+ reinplace "s/-lIce /-lZeroCIce /" \
+ ${build.dir}/config/Make.rules \
+ ${build.dir}/config/Make.rules.Darwin
+ }
-build.target prefix="${prefix}" \
- CC="${configure.cc}" \
- CXX="${configure.cxx}" \
- ICE_HOME="${prefix}" \
- PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \
- PYTHON_VERSION=python2.7 \
- OPTIMIZE="yes" \
- all
+ use_configure no
-test.run yes
-test.env ICE_HOME=${prefix}
-test.cmd ${prefix}/bin/python2.7
-test.target allTests.py
+ build.cmd make
+ build.target prefix="${prefix}" \
+ CC="${configure.cc}" \
+ CXX="${configure.cxx}" \
+ ICE_HOME="${prefix}" \
+ PYTHON_HOME="${python.prefix}" \
+ PYTHON_VERSION="python${python.branch}" \
+ OPTIMIZE="yes" \
+ all
-destroot.target prefix="${destroot}${prefix}" \
- CC="${configure.cc}" \
- CXX="${configure.cxx}" \
- ICE_HOME="${prefix}" \
- PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \
- PYTHON_VERSION=python2.7 \
- OPTIMIZE="yes" \
- install
+ test.run yes
+ test.env ICE_HOME=${prefix}
+ test.cmd ${python.bin}
+ test.target allTests.py
-post-destroot {
- set sharedir ${destroot}${prefix}/share
- set docdir ${sharedir}/doc/${name}
+ destroot.destdir
+ destroot.cmd ${build.cmd}
+ destroot.target prefix="${destroot}${prefix}" \
+ CC="${configure.cc}" \
+ CXX="${configure.cxx}" \
+ ICE_HOME="${prefix}" \
+ PYTHON_HOME="${python.prefix}" \
+ PYTHON_VERSION="python${python.branch}" \
+ OPTIMIZE="yes" \
+ install
- set python_root ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7
- set python27_dir ${python_root}/lib/python2.7
- set site_packages_dir ${python27_dir}/site-packages
+ post-destroot {
+ set sharedir ${destroot}${prefix}/share
+ set docdir ${sharedir}/doc/${subport}
- delete ${destroot}${prefix}/slice
+ delete ${destroot}${prefix}/slice
- xinstall -m 755 -d ${docdir}
+ xinstall -m 755 -d ${docdir}
- file mkdir ${python27_dir}
- file rename ${destroot}${prefix}/python ${site_packages_dir}
+ xinstall -m 755 -d [file dirname ${destroot}${python.pkgd}]
+ file rename ${destroot}${prefix}/python ${destroot}${python.pkgd}
- set cmd "${prefix}/bin/python2.7 \
- ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compileall.py \
- ${site_packages_dir}"
- ui_debug ${cmd}
- system ${cmd}
+ set cmd "${python.bin} \
+ ${python.prefix}/lib/python${python.branch}/compileall.py \
+ ${destroot}${python.pkgd}"
+ ui_debug ${cmd}
+ system ${cmd}
- set cmd "${prefix}/bin/python2.7 -O \
- ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compileall.py \
- ${site_packages_dir}"
- ui_debug ${cmd}
- system ${cmd}
+ set cmd "${python.bin} -O \
+ ${python.prefix}/lib/python${python.branch}/compileall.py \
+ ${destroot}${python.pkgd}"
+ ui_debug ${cmd}
+ system ${cmd}
- file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
- file rename ${destroot}${prefix}/LICENSE ${docdir}
- foreach f {CHANGES RELEASE_NOTES} {
- file copy ${worksrcpath}/${f} ${docdir}
+ file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
+ file rename ${destroot}${prefix}/LICENSE ${docdir}
+ foreach f {CHANGES RELEASE_NOTES} {
+ file copy ${worksrcpath}/${f} ${docdir}
+ }
+ file copy ${build.dir}/INSTALL ${docdir}
+
+ if {[variant_isset demo_source_code]} {
+ file copy ${build.dir}/demo ${docdir}
+ }
}
- file copy ${build.dir}/INSTALL ${docdir}
- if {[variant_isset demo_source_code]} {
- file copy ${build.dir}/demo ${docdir}
+ variant demo_source_code description {Install demonstration Python code} {
}
}
-
-variant demo_source_code description {Install demonstration Python code} {
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120818/c12a2014/attachment-0001.html>
More information about the macports-changes
mailing list