aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-09-04 22:23:55 +0800
committerpav <pav@FreeBSD.org>2005-09-04 22:23:55 +0800
commit442ca3de5af2080d0c3b1167f484c00a105bdcb0 (patch)
tree73a15ad9bad5a66853cc9999ab861ee90685fbbb /devel
parentee7c53240b8766ff60df2ecf489aca423548cd5e (diff)
downloadfreebsd-ports-gnome-442ca3de5af2080d0c3b1167f484c00a105bdcb0.tar.gz
freebsd-ports-gnome-442ca3de5af2080d0c3b1167f484c00a105bdcb0.tar.zst
freebsd-ports-gnome-442ca3de5af2080d0c3b1167f484c00a105bdcb0.zip
Ice language mapping for Python.
Internet Communications Engine (Ice) is a modern alternative to object middleware such as CORBA(TM) or COM/DCOM/COM+. PR: ports/85546 Submitted by: Boris B. Samorodov <bsam@ipt.ru>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-ice/Makefile51
-rw-r--r--devel/py-ice/distinfo2
-rw-r--r--devel/py-ice/files/patch-Makefile76
-rw-r--r--devel/py-ice/files/patch-config+Make.rules56
-rw-r--r--devel/py-ice/files/patch-config+Make.rules.FreeBSD18
-rw-r--r--devel/py-ice/files/patch-python+Makefile12
-rw-r--r--devel/py-ice/pkg-descr11
-rw-r--r--devel/py-ice/pkg-plist61
9 files changed, 288 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 658078454bcd..4c49e920f7e2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1333,6 +1333,7 @@
SUBDIR += py-getargs
SUBDIR += py-grouch
SUBDIR += py-icalendar
+ SUBDIR += py-ice
SUBDIR += py-istring
SUBDIR += py-kjbuckets
SUBDIR += py-kqueue
diff --git a/devel/py-ice/Makefile b/devel/py-ice/Makefile
new file mode 100644
index 000000000000..cff92723f487
--- /dev/null
+++ b/devel/py-ice/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: py-ice
+# Date created: 2005-08-30
+# Whom: Boris B. Samorodov <bsam@ipt.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Ice
+PORTVERSION= 2.1.2
+CATEGORIES= devel python
+MASTER_SITES= http://www.zeroc.com/download/Ice/2.1/
+PKGNAMEPREFIX= py-
+DISTNAME= IcePy-${PORTVERSION}
+
+MAINTAINER= bsam@ipt.ru
+COMMENT= An Ice (Internet Communications Engine) language mapping for Python
+
+LIB_DEPENDS= Ice.21:${PORTSDIR}/devel/ice
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_PYTHON= yes
+
+CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_REENTRANT ${PTHREAD_CFLAGS}
+.if defined(DEBUG)
+CFLAGS+= -g
+.else
+CFLAGS+= -DNDEBUG
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != "i386"
+BROKEN= "does not compile"
+.endif
+
+.if ((${ARCH} != i386) && (${ARCH} != powerpc))
+MAKE_ENV= LP64=yes
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
+ s|%%INSTALL_DATA%%|${INSTALL_DATA}|g; \
+ s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g; \
+ s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/config/Make.rules
+
+post-install:
+ ${ECHO} "Ice" > ${PYTHON_SITELIBDIR}/Ice.pth
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-ice/distinfo b/devel/py-ice/distinfo
new file mode 100644
index 000000000000..12c9f30e4d20
--- /dev/null
+++ b/devel/py-ice/distinfo
@@ -0,0 +1,2 @@
+MD5 (IcePy-2.1.2.tar.gz) = 81af19ef229fbab2102290e7517a39bb
+SIZE (IcePy-2.1.2.tar.gz) = 295138
diff --git a/devel/py-ice/files/patch-Makefile b/devel/py-ice/files/patch-Makefile
new file mode 100644
index 000000000000..0a3f578f112e
--- /dev/null
+++ b/devel/py-ice/files/patch-Makefile
@@ -0,0 +1,76 @@
+--- Makefile.orig Tue Aug 30 21:50:09 2005
++++ Makefile Tue Aug 30 21:27:37 2005
+@@ -26,11 +26,11 @@
+ $(call mkdir,$(install_libdir)) ; \
+ fi
+
+- @if test ! -d $(install_slicedir) ; \
+- then \
+- echo "Creating $(install_slicedir)..." ; \
+- $(call mkdir,$(install_slicedir)) ; \
+- fi
++# @if test ! -d $(install_slicedir) ; \
++# then \
++# echo "Creating $(install_slicedir)..." ; \
++# $(call mkdir,$(install_slicedir)) ; \
++# fi
+
+ @if test ! -d $(install_pythondir) ; \
+ then \
+@@ -45,32 +45,32 @@
+ ( cd $$subdir && $(MAKE) $@ ) || exit 1; \
+ done
+
+-install::
+- @if test -d slice ; \
+- then \
+- cd slice ; \
+- for i in * ; \
+- do \
+- if test ! -d $(install_slicedir)/$$i ; \
+- then \
+- echo "Creating $(install_slicedir)/$$i..." ; \
+- mkdir $(install_slicedir)/$$i ; \
+- chmod a+rx $(install_slicedir)/$$i ; \
+- fi ; \
+- cd $$i ; \
+- for f in *.ice ; \
+- do \
+- echo "Installing $$i/$$f" ; \
+- $(INSTALL_DATA) $$f $(install_slicedir)/$$i ; \
+- chmod a+r $(install_slicedir)/$$i/$$f ; \
+- done ; \
+- cd .. ; \
+- done \
+- fi
++#install::
++# @if test -d slice ; \
++# then \
++# cd slice ; \
++# for i in * ; \
++# do \
++# if test ! -d $(install_slicedir)/$$i ; \
++# then \
++# echo "Creating $(install_slicedir)/$$i..." ; \
++# mkdir $(install_slicedir)/$$i ; \
++# chmod a+rx $(install_slicedir)/$$i ; \
++# fi ; \
++# cd $$i ; \
++# for f in *.ice ; \
++# do \
++# echo "Installing $$i/$$f" ; \
++# $(INSTALL_DATA) $$f $(install_slicedir)/$$i ; \
++# chmod a+r $(install_slicedir)/$$i/$$f ; \
++# done ; \
++# cd .. ; \
++# done \
++# fi
+
+ install::
+- $(call installdata,ICE_LICENSE,$(prefix))
+- $(call installdata,LICENSE,$(prefix))
++ $(call installdata,ICE_LICENSE,$(install_libdir))
++ $(call installdata,LICENSE,$(install_libdir))
+
+ test::
+ @python $(top_srcdir)/allTests.py
diff --git a/devel/py-ice/files/patch-config+Make.rules b/devel/py-ice/files/patch-config+Make.rules
new file mode 100644
index 000000000000..eab3b7b92e82
--- /dev/null
+++ b/devel/py-ice/files/patch-config+Make.rules
@@ -0,0 +1,56 @@
+--- config/Make.rules.orig Fri Jun 24 01:36:53 2005
++++ config/Make.rules Tue Aug 30 20:31:34 2005
+@@ -7,6 +7,8 @@
+ #
+ # **********************************************************************
+
++ICE_HOME = %%LOCALBASE%%
++
+ ifndef ICE_HOME
+ $(error ICE_HOME is not defined)
+ endif
+@@ -16,7 +18,7 @@
+ # if it does not exist.
+ #
+
+-prefix = /opt/IcePy-$(VERSION)
++prefix = %%PREFIX%%
+
+ #
+ # Define OPTIMIZE as yes if you want to build with optimization.
+@@ -65,13 +67,13 @@
+ # version used for building the Ice extension, then set PYTHON_VERSION
+ # to "python2.3" or "python2.4".
+ #
+- PYTHON_VERSION ?= $(word 1,$(notdir $(wildcard /usr/include/python2.[34]*)))
++ PYTHON_VERSION ?= $(word 1,$(notdir $(wildcard %%LOCALBASE%%/include/python2.[34]*)))
+ ifeq ($(PYTHON_VERSION),)
+ python_darwin_home = /System/Library/Frameworks/Python.framework/Versions/Current
+ PYTHON_VERSION = $(word 1,$(notdir $(wildcard $(python_darwin_home)/include/python2.[34]*)))
+ endif
+- PYTHON_INCLUDE_DIR = /usr/include/$(PYTHON_VERSION)
+- PYTHON_LIB_DIR = /usr/lib/$(PYTHON_VERSION)/config
++ PYTHON_INCLUDE_DIR = %%LOCALBASE%%/include/$(PYTHON_VERSION)
++ PYTHON_LIB_DIR = %%LOCALBASE%%/lib/$(PYTHON_VERSION)
+ endif
+
+ ifeq ($(PYTHON_VERSION),)
+@@ -103,14 +105,14 @@
+ ifeq ($(LP64),yes)
+ install_libdir = $(prefix)/lib$(lp64suffix)
+ else
+- install_libdir = $(prefix)/lib
++ install_libdir = %%PYTHON_SITELIBDIR%%/Ice
+ endif
+
+ install_slicedir = $(prefix)/slice
+-install_pythondir = $(prefix)/python
++install_pythondir = %%PYTHON_SITELIBDIR%%/Ice
+
+-INSTALL = cp -fp
+-INSTALL_PROGRAM = ${INSTALL}
++INSTALL = install -C -o root -g wheel -m 444
++INSTALL_PROGRAM = install -C -s -o root -g wheel -m 555
+ INSTALL_LIBRARY = ${INSTALL}
+ INSTALL_DATA = ${INSTALL}
+
diff --git a/devel/py-ice/files/patch-config+Make.rules.FreeBSD b/devel/py-ice/files/patch-config+Make.rules.FreeBSD
new file mode 100644
index 000000000000..0bff4deac237
--- /dev/null
+++ b/devel/py-ice/files/patch-config+Make.rules.FreeBSD
@@ -0,0 +1,18 @@
+--- config/Make.rules.FreeBSD.orig Tue Aug 30 16:02:02 2005
++++ config/Make.rules.FreeBSD Tue Aug 30 16:02:50 2005
+@@ -26,12 +26,12 @@
+ #
+ CXXLIBS =
+
+-mkshlib = $(CXX) -shared $(LDFLAGS) -o $(1) -Wl,-h,$(2) $(3) $(4) -lc_r
++mkshlib = $(CXX) -shared $(LDFLAGS) -o $(1) -Wl,-h,$(2) $(3) $(4)
+
+-BASELIBS = -lIceUtil -lc_r
++BASELIBS = -lIceUtil %%PTHREAD_LIBS%%
+ LIBS = -lIce $(BASELIBS)
+
+-ICEUTIL_OS_LIBS =
++ICEUTIL_OS_LIBS = %%PTHREAD_LIBS%%
+ ICE_OS_LIBS =
+
+ PLATFORM_HAS_READLINE := yes
diff --git a/devel/py-ice/files/patch-python+Makefile b/devel/py-ice/files/patch-python+Makefile
new file mode 100644
index 000000000000..2bd86a81ace4
--- /dev/null
+++ b/devel/py-ice/files/patch-python+Makefile
@@ -0,0 +1,12 @@
+--- python/Makefile.orig Thu Feb 17 00:48:17 2005
++++ python/Makefile Tue Aug 30 19:16:53 2005
+@@ -94,7 +94,8 @@
+ $(INSTALL_DATA) *.py $(install_pythondir)
+ @for i in $(PACKAGES) ; \
+ do \
+- $(INSTALL_DATA) -r $$i $(install_pythondir) ; \
++ $(INSTALL_DATA) -d $(install_pythondir)/$$i ; \
++ $(INSTALL_DATA) $$i/*.py $(install_pythondir)/$$i ; \
+ done
+
+ clean::
diff --git a/devel/py-ice/pkg-descr b/devel/py-ice/pkg-descr
new file mode 100644
index 000000000000..268dc4704e82
--- /dev/null
+++ b/devel/py-ice/pkg-descr
@@ -0,0 +1,11 @@
+Python and Ice have much in common: they both are suited for a wide variety
+of tasks, excel at application integration, and are easy for developers
+to use. An Ice language mapping for Python is a recent and welcome addition
+to the Ice product portfolio, enabling developers to take advantage
+of the productivity offered by Python's friendly syntax and extensive
+function library.
+
+WWW: http://www.zeroc.org/
+
+- Boris B. Samorodov
+bsam@ipt.ru
diff --git a/devel/py-ice/pkg-plist b/devel/py-ice/pkg-plist
new file mode 100644
index 000000000000..8b54e865d862
--- /dev/null
+++ b/devel/py-ice/pkg-plist
@@ -0,0 +1,61 @@
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_PermissionsVerifierF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_PermissionsVerifier_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_RouterF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_Router_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_SessionF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2_Session_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IceBox_IceBox_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePack_Admin_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePack_Exception_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePack_Query_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePatch2_FileInfo_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePatch2_FileServer_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IceStorm_IceStorm_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_BuiltinSequences_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_CommunicatorF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Communicator_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ConnectionF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Connection_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Current_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_FacetMap_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Identity_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_LocalException_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_LocatorF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Locator_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_LoggerF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Logger_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ObjectAdapterF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ObjectAdapter_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ObjectFactoryF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ObjectFactory_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_PluginF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Plugin_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ProcessF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Process_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Properties_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_RouterF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Router_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ServantLocatorF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_ServantLocator_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_SliceChecksumDict_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_StatsF_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/Ice_Stats_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePy.so
+%%PYTHON_SITELIBDIR%%/Ice/IcePy.so.2.1.2
+%%PYTHON_SITELIBDIR%%/Ice/IcePy.so.21
+%%PYTHON_SITELIBDIR%%/Ice/LICENSE
+%%PYTHON_SITELIBDIR%%/Ice/ICE_LICENSE
+%%PYTHON_SITELIBDIR%%/Ice/Glacier2/__init__.py
+%%PYTHON_SITELIBDIR%%/Ice/IceBox/__init__.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePack/__init__.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePatch2/__init__.py
+%%PYTHON_SITELIBDIR%%/Ice/IceStorm/__init__.py
+%%PYTHON_SITELIBDIR%%/Ice.pth
+@dirrm %%PYTHON_SITELIBDIR%%/Ice/Glacier2
+@dirrm %%PYTHON_SITELIBDIR%%/Ice/IceBox
+@dirrm %%PYTHON_SITELIBDIR%%/Ice/IcePack
+@dirrm %%PYTHON_SITELIBDIR%%/Ice/IcePatch2
+@dirrm %%PYTHON_SITELIBDIR%%/Ice/IceStorm
+@dirrm %%PYTHON_SITELIBDIR%%/Ice