[23808] trunk/dports/devel
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 9 22:09:30 PDT 2007
Revision: 23808
http://trac.macosforge.org/projects/macports/changeset/23808
Author: blair at macports.org
Date: 2007-04-09 22:09:29 -0700 (Mon, 09 Apr 2007)
Log Message:
-----------
New port for the ICE 3.2.0 Python bindings.
Added Paths:
-----------
trunk/dports/devel/ice-python/
trunk/dports/devel/ice-python/Portfile
trunk/dports/devel/ice-python/files/
trunk/dports/devel/ice-python/files/patch-config.Make.rules
trunk/dports/devel/ice-python/files/patch-config.Make.rules.Darwin
Added: trunk/dports/devel/ice-python/Portfile
===================================================================
--- trunk/dports/devel/ice-python/Portfile (rev 0)
+++ trunk/dports/devel/ice-python/Portfile 2007-04-10 05:09:29 UTC (rev 23808)
@@ -0,0 +1,106 @@
+# $Id$
+
+PortSystem 1.0
+name ice-python
+version 3.2.0
+categories devel python
+maintainers blair at orcaware.com
+description Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
+
+long_description \
+ The Internet Communications Engine (Ice) is a modern alternative to \
+ object middleware such as CORBA or COM/DCOM/COM+, with support for \
+ C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
+ Ice consists of the following packages. \
+ Slice: The Specification Language for Ice. Slice establishes a \
+ contract between clients and servers, and is also used to describe \
+ persistent data. \
+ Slice Compilers: Slice specifications are compiled into various \
+ programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
+ Python and Ruby. Ice clients and servers work together, regardless \
+ of the programming language. \
+ Ice: The Ice core library manages all the communication tasks using a \
+ highly efficient protocol (including protocol compression and support \
+ for both TCP and UDP), provides a flexible thread pool for \
+ multi-threaded servers. \
+ This Port provides the Python bindings that sit on top of the C++ \
+ Ice C++ runtime libraries.
+
+homepage http://www.zeroc.com/
+master_sites http://www.zeroc.com/download/Ice/3.2/
+distname IcePy-${version}
+checksums md5 e3ccb5040449c73c5da380b62fefa7cd \
+ sha1 a5bb889028aa00652232ee86777af5f6b87f89e5 \
+ rmd160 e61b0c79c019232099263831239dc0e44190c0b6
+platforms darwin
+
+depends_lib port:python24 \
+ port:ice-cpp
+
+patchfiles patch-config.Make.rules \
+ patch-config.Make.rules.Darwin
+
+use_configure no
+
+build.target prefix="${prefix}" \
+ ICE_HOME="${prefix}" \
+ PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" \
+ PYTHON_VERSION=python2.4 \
+ OPTIMIZE="yes" \
+ all
+
+test.run yes
+test.target test
+test.env ICE_HOME=${prefix}/share/ice
+
+destroot.target prefix="${destroot}${prefix}" \
+ ICE_HOME="${prefix}" \
+ PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" \
+ PYTHON_VERSION=python2.4 \
+ OPTIMIZE="yes" \
+ install
+
+post-destroot {
+ cd ${destroot}${prefix}
+
+ xinstall -m 755 -d share/doc/ice-python
+ file rename ICE_LICENSE share/doc/ice-python/
+ file rename LICENSE share/doc/ice-python/
+
+ file mkdir lib/python2.4/site-packages
+ cd ${destroot}${prefix}/python
+ foreach f [glob *] {
+ file rename ${f} ${destroot}${prefix}/lib/python2.4/site-packages/
+ }
+
+ system "${prefix}/bin/python2.4 \
+ ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py \
+ ${destroot}${prefix}/lib/python2.4/site-packages"
+ system "${prefix}/bin/python2.4 -O \
+ ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py \
+ ${destroot}${prefix}/lib/python2.4/site-packages"
+
+ cd ${destroot}${prefix}/share/doc/ice-python
+ foreach f {CHANGES INSTALL README} {
+ file copy ${worksrcpath}/${f} .
+ }
+
+ if {[variant_isset demo_source_code]} {
+ file copy ${worksrcpath}/demo .
+ }
+}
+
+platform darwin 7 {
+ build.env-append CPP=/usr/bin/cpp-3.3 \
+ CC=/usr/bin/gcc-3.3 \
+ CXX=/usr/bin/g++-3.3
+}
+
+platform darwin 8 {
+ build.env-append CPP=/usr/bin/cpp-4.0 \
+ CC=/usr/bin/gcc-4.0 \
+ CXX=/usr/bin/g++-4.0
+}
+
+variant demo_source_code {
+}
Property changes on: trunk/dports/devel/ice-python/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/devel/ice-python/files/patch-config.Make.rules
===================================================================
--- trunk/dports/devel/ice-python/files/patch-config.Make.rules (rev 0)
+++ trunk/dports/devel/ice-python/files/patch-config.Make.rules 2007-04-10 05:09:29 UTC (rev 23808)
@@ -0,0 +1,34 @@
+--- config/Make.rules.FCS 2007-03-01 14:11:25.000000000 -0500
++++ config/Make.rules 2007-04-08 21:59:00.000000000 -0400
+@@ -18,7 +18,7 @@
+ # if it does not exist.
+ #
+
+-prefix = /opt/IcePy-$(VERSION)
++prefix ?= /opt/IcePy-$(VERSION)
+
+ #
+ # The "root directory" for runpath embedded in executables. Can be unset
+@@ -101,7 +101,7 @@
+ SOVERSION = 32
+ libdir = $(top_srcdir)/python
+
+-install_slicedir = $(prefix)/slice
++install_slicedir = $(prefix)/share/ice/slice
+ install_pythondir = $(prefix)/python
+
+ INSTALL = cp -fp
+@@ -132,11 +132,11 @@
+ ICE_LIBS = $(ICE_LIB_DIRS) -lIce -lSlice -lIceUtil
+
+ ifneq ($(ICE_HOME),)
+- ICE_FLAGS = -I$(ICE_HOME)/include
++ ICE_FLAGS = -I$(ICE_HOME)/include/ice
+ endif
+
+ ifneq ($(ICE_HOME),)
+- slicedir = $(ICE_HOME)/slice
++ slicedir = $(ICE_HOME)/share/ice/slice
+ else
+ slicedir = /usr/share/Ice-$(VERSION)/slice
+ endif
Added: trunk/dports/devel/ice-python/files/patch-config.Make.rules.Darwin
===================================================================
--- trunk/dports/devel/ice-python/files/patch-config.Make.rules.Darwin (rev 0)
+++ trunk/dports/devel/ice-python/files/patch-config.Make.rules.Darwin 2007-04-10 05:09:29 UTC (rev 23808)
@@ -0,0 +1,22 @@
+--- config/Make.rules.Darwin.FCS 2007-01-08 14:25:09.000000000 -0500
++++ config/Make.rules.Darwin 2007-04-08 22:22:38.000000000 -0400
+@@ -23,9 +23,9 @@
+ endif
+
+ PYTHON_INCLUDE_DIR = $(PYTHON_HOME)/include/$(PYTHON_VERSION)
+-PYTHON_LIBS = -F$(PYTHON_HOME) -framework Python
++PYTHON_LIBS = -F$(prefix)/Library/Frameworks -framework Python
+
+-CXX = c++
++CXX ?= c++
+
+ CXXFLAGS = -ftemplate-depth-128 -Wall -D_REENTRANT
+
+@@ -49,6 +49,6 @@
+ BASELIBS = -lIceUtil -lpthread
+ LIBS = -lIce $(BASELIBS)
+
+-PLATFORM_HAS_READLINE := no
++PLATFORM_HAS_READLINE := yes
+
+ export DYLD_LIBRARY_PATH := $(libdir):$(DYLD_LIBRARY_PATH)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070409/c0a53729/attachment.html
More information about the macports-changes
mailing list