Overhaul devel/ice, devel/py-ice and devel/php5-ice:
Changes from [*]: - Update Ice to 3.5.1. - Stageify all three ports. - Convert py-ice and php5-ice to slave ports. - Use ICONV_LIB, so it builds ok with native iconv [1]. - Workaround for FreeBSD 10's static destructor order disaster [2]. - Install man pages. - Allow package build for non-root users. [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-iconv.html [2] http://lists.freebsd.org/pipermail/freebsd-ports/2013-June/084580.html Changes from [3]: - Convert LIB_DEPENDS to new syntax. - USE_GMAKE -> USES - list Berkeley DB 6 invalid, requires upstream changes, but upstream is loathe to make those due to licensing change in BDB - remove BDB 2 and 3 from invalid listing, we no longer have these ports PR: ports/184453 [*] PR: ports/185569 [3] Submitted by: Michael Gmelin (maintainer) [*] Submitted by: mandree [3] Approved by: Michael Gmelin (maintainer) [3]
This commit is contained in:
parent
0814761f12
commit
35717bde57
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339196
38 changed files with 276 additions and 549 deletions
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Ice
|
||||
PORTVERSION= 3.5.0
|
||||
PORTVERSION= 3.5.1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://download.zeroc.com/Ice/3.5/
|
||||
|
||||
|
@ -11,31 +11,31 @@ COMMENT= Modern alternative to object middleware such as CORBA/COM/DCOM/COM+
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \
|
||||
mcpp:${PORTSDIR}/devel/mcpp
|
||||
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
|
||||
libmcpp.so:${PORTSDIR}/devel/mcpp
|
||||
|
||||
OPTIONS_DEFINE= DEBUG DEMOS DOCS TESTS
|
||||
OPTIONS_DEFAULT= DEMOS TESTS
|
||||
TESTS_DESC= Build and run tests (requires lang/python)
|
||||
DEMOS_DESC= Build demos
|
||||
OPTIONS_DEFINE?= DEBUG DEMOS DOCS TESTS
|
||||
OPTIONS_DEFAULT?= DEMOS TESTS
|
||||
TESTS_DESC?= Build and run tests (requires lang/python)
|
||||
DEMOS_DESC?= Build demos
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTS}
|
||||
USE_PYTHON_BUILD= yes
|
||||
.endif
|
||||
|
||||
USE_GMAKE= yes
|
||||
USES= iconv
|
||||
USES= iconv gmake
|
||||
USE_BDB= 5
|
||||
INVALID_BDB_VER= 2 3 40 41 42 43 44 46 47 48
|
||||
INVALID_BDB_VER= 40 41 42 43 44 46 47 48 6
|
||||
USE_LDCONFIG= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/cpp
|
||||
INSTALL_WRKSRC= ${WRKSRC}/cpp
|
||||
BUILD_WRKSRC?= ${WRKSRC}/cpp
|
||||
INSTALL_WRKSRC?= ${WRKSRC}/cpp
|
||||
|
||||
CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_REENTRANT -I${LOCALBASE}/include
|
||||
.if !${PORT_OPTIONS:MDEBUG}
|
||||
.if ${PORT_OPTIONS:MDEBUG}
|
||||
CFLAGS+= -g
|
||||
.else
|
||||
CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
|
||||
|
@ -47,12 +47,8 @@ BROKEN= does not compile on ia64
|
|||
BROKEN= fails to link
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 1000000
|
||||
BROKEN= Does not work on FreeBSD 10
|
||||
.endif
|
||||
|
||||
.if ((${ARCH} != i386) && (${ARCH} != powerpc))
|
||||
MAKE_ENV= LP64=yes
|
||||
MAKE_ENV+= LP64=yes
|
||||
.endif
|
||||
|
||||
.if !${PORT_OPTIONS:MTESTS}
|
||||
|
@ -64,13 +60,41 @@ MAKE_ENV+= NODEMOS=yes
|
|||
.endif
|
||||
|
||||
.if !${PORT_OPTIONS:MDOCS}
|
||||
MAKE_ENV+= NOPORTDOCS=yes
|
||||
MAKE_ENV+= NOICEDOCS=yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(PYTHON_REL) && ${PYTHON_REL} >= 320
|
||||
PLIST_SUB+= PYTHON32=""
|
||||
PLIST_SUB+= PYTHONPRE32="@comment "
|
||||
.else
|
||||
PLIST_SUB+= PYTHON32="@comment "
|
||||
PLIST_SUB+= PYTHONPRE32=""
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PYTHON_SUFFIX=${PYTHON_SUFFIX}
|
||||
|
||||
.if ${PREFIX} != ${LOCALBASE} && !defined(NO_STAGE)
|
||||
PYSITEDIR= ${PREFIX}${PYTHON_SITELIBDIR:S|^${LOCALBASE}||}
|
||||
.else
|
||||
PYSITEDIR= ${PYTHON_SITELIBDIR}
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MNAMESPACES}
|
||||
MAKE_ARGS+= USE_NAMESPACES=yes
|
||||
PLIST_SUB+= NAMESPACES=""
|
||||
PLIST_SUB+= NONAMESPACES="@comment "
|
||||
.else
|
||||
PLIST_SUB+= NAMESPACES="@comment "
|
||||
PLIST_SUB+= NONAMESPACES=""
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|g; \
|
||||
s|%%DATADIR%%|${DATADIR}|g; \
|
||||
s|%%DOCSDIR%%|${DOCSDIR}|g; \
|
||||
@${SED} 's|%%PREFIX%%|${STAGEDIR}${PREFIX}|g; \
|
||||
s|%%DATADIR%%|${STAGEDIR}${DATADIR}|g; \
|
||||
s|%%DOCSDIR%%|${STAGEDIR}${DOCSDIR}|g; \
|
||||
s|%%ICONV_LIB%%|${ICONV_LIB}|g; \
|
||||
s|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g' \
|
||||
${FILESDIR}/Make.rules.FreeBSD > ${WRKSRC}/cpp/config/Make.rules.FreeBSD
|
||||
|
@ -83,8 +107,19 @@ post-patch:
|
|||
${WRKSRC}/cpp/config/Make.rules
|
||||
@${REINPLACE_CMD} 's|INSTALL_PROGRAM|INSTALL_DATA|g' \
|
||||
${WRKSRC}/cpp/src/ca/Makefile
|
||||
@${REINPLACE_CMD} '/LICENSE/s/prefix/install_slicedir/' \
|
||||
@${REINPLACE_CMD} '/LICENSE/s/prefix/install_slicedir/; \
|
||||
s|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; ' \
|
||||
${WRKSRC}/config/Make.common.rules
|
||||
@${REINPLACE_CMD} 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g; \
|
||||
s|%%ICONV_LIB%%|${ICONV_LIB}|g; \
|
||||
s|%%PYTHON_SITELIBDIR%%|${STAGEDIR}${PYSITEDIR}|g; \
|
||||
s|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/py/config/Make.rules
|
||||
@${REINPLACE_CMD} 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g; \
|
||||
s|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/php/config/Make.rules.php
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTS}
|
||||
TEST_CMD= @cd ${BUILD_WRKSRC} && ${PYTHON_CMD} ./allTests.py
|
||||
|
@ -94,4 +129,4 @@ regression-test test: build
|
|||
${TEST_CMD}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (Ice-3.5.0.tar.gz) = bbde6b5a87f5abc8d9105468731f1419829bc22b5d23b8fdef553967a2eebdb0
|
||||
SIZE (Ice-3.5.0.tar.gz) = 4790555
|
||||
SHA256 (Ice-3.5.1.tar.gz) = 989e51194c6adadbd156da3288e37bad847b93b3b876502e83033b70493af392
|
||||
SIZE (Ice-3.5.1.tar.gz) = 4799296
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mkshlib = $(CXX) -shared $(LDFLAGS) -o $(1) -Wl,-h,$(2) $(3) $(4)
|
||||
|
||||
BASELIBS = -lIceUtil -pthread -L$(LOCALBASE)/lib -liconv
|
||||
BASELIBS = -lIceUtil -pthread -L$(LOCALBASE)/lib %%ICONV_LIB%%
|
||||
LIBS = -lIce $(BASELIBS)
|
||||
|
||||
ICEUTIL_OS_LIBS = -pthread
|
||||
|
@ -19,3 +19,4 @@ EXPAT_HOME = $(LOCALBASE)
|
|||
INSTALL = %%INSTALL_DATA%%
|
||||
INSTALL_PROGRAM = %%INSTALL_PROGRAM%%
|
||||
MCPP_HOME = $(LOCALBASE)
|
||||
override DESTDIR =
|
||||
|
|
|
@ -1,18 +1,45 @@
|
|||
--- config.orig/Make.common.rules 2013-05-20 22:21:58.666286011 +0000
|
||||
+++ config/Make.common.rules 2013-05-20 22:20:50.897196090 +0000
|
||||
@@ -378,11 +378,15 @@
|
||||
@@ -19,7 +19,7 @@
|
||||
SHORT_VERSION = 3.4
|
||||
SOVERSION = 34
|
||||
|
||||
-INSTALL = cp -fp
|
||||
+INSTALL = %%INSTALL_PROGRAM%%
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_LIBRARY = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL}
|
||||
@@ -386,11 +386,15 @@
|
||||
then \
|
||||
echo "Creating $(install_slicedir)..." ; \
|
||||
$(call mkdir, $(install_slicedir)) ; \
|
||||
echo "Creating $(DESTDIR)$(install_slicedir)..." ; \
|
||||
$(call mkdir, $(DESTDIR)$(install_slicedir), -p) ; \
|
||||
+ fi
|
||||
+
|
||||
+ @if test -d $(install_slicedir) ; \
|
||||
+ @if test -d $(DESTDIR)$(install_slicedir) ; \
|
||||
+ then \
|
||||
cd $(top_srcdir)/../slice ; \
|
||||
for subdir in * ; \
|
||||
do \
|
||||
echo "Copying slice/$$subdir to $(install_slicedir)..." ; \
|
||||
cp -fpr $$subdir $(install_slicedir) ; \
|
||||
echo "Copying slice/$$subdir to $(DESTDIR)$(install_slicedir)..." ; \
|
||||
cp -fpr $$subdir $(DESTDIR)$(install_slicedir) ; \
|
||||
done ; \
|
||||
- fi
|
||||
+ fi
|
||||
|
||||
@@ -410,12 +410,12 @@
|
||||
fi
|
||||
|
||||
|
||||
- @if test ! -f $(DESTDIR)$(prefix)/CHANGES$(TEXT_EXTENSION) ; \
|
||||
+ @if test ! -f $(DESTDIR)$(install_slicedir)/CHANGES$(TEXT_EXTENSION) ; \
|
||||
then \
|
||||
- $(call installdata,$(top_srcdir)/../CHANGES$(TEXT_EXTENSION),$(DESTDIR)$(prefix)) ; \
|
||||
+ $(call installdata,$(top_srcdir)/../CHANGES$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
|
||||
fi
|
||||
|
||||
- @if test ! -f $(DESTDIR)$(prefix)/RELEASE_NOTES$(TEXT_EXTENSION) ; \
|
||||
+ @if test ! -f $(DESTDIR)$(install_slicedir)/RELEASE_NOTES$(TEXT_EXTENSION) ; \
|
||||
then \
|
||||
- $(call installdata,$(top_srcdir)/../RELEASE_NOTES$(TEXT_EXTENSION),$(DESTDIR)$(prefix)) ; \
|
||||
+ $(call installdata,$(top_srcdir)/../RELEASE_NOTES$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
|
||||
fi
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
endif
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(NOPORTDOCS),)
|
||||
+ifeq ($(NOICEDOCS),)
|
||||
+SUBDIRS := $(SUBDIRS) doc
|
||||
+endif
|
||||
+
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
("Ice/defaultServant", ["core"]),
|
||||
("Ice/defaultValue", ["core"]),
|
||||
("Ice/invoke", ["core", "novc6"]),
|
||||
@@ -85,7 +85,7 @@
|
||||
("IceStorm/federation2", ["service", "novc90", "nomingw"]),
|
||||
("IceStorm/stress", ["service", "stress", "novc90", "noappverifier", "nomingw"]), # Too slow with appverifier.
|
||||
("IceStorm/rep1", ["service", "novc90", "nomingw"]),
|
||||
- ("IceStorm/repgrid", ["service", "novc90", "nomingw"]),
|
||||
+ ("IceStorm/repgrid", ["service", "novc90", "nomingw", "nofreebsd"]),
|
||||
("IceStorm/repstress", ["service", "noipv6", "stress", "novc90", "nomingw"]),
|
||||
("FreezeScript/dbmap", ["once", "novc90", "nomingw"]),
|
||||
("FreezeScript/evictor", ["once", "novc90", "nomingw"]),
|
||||
@@ -106,8 +107,8 @@
|
||||
#
|
||||
if TestUtil.isWin32() or os.getuid() == 0:
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- cpp.orig/include/IceUtil/Config.h 2013-03-11 15:19:46.000000000 +0000
|
||||
+++ cpp/include/IceUtil/Config.h 2013-05-20 02:09:58.239194578 +0000
|
||||
@@ -51,7 +51,7 @@
|
||||
// Check for C++ 11 support
|
||||
//
|
||||
#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
|
||||
- (defined(__clang__) && (__clang_major__ >= 4) && __cplusplus >= 201103) || \
|
||||
+ (defined(__clang__) && ((defined(__APPLE__) && __clang_major__ >= 4) || (!defined(__APPLE__) && __clang_major__ >= 3)) && __cplusplus >= 201103) || \
|
||||
(defined(_MSC_VER) && (_MSC_VER >= 1600))
|
||||
# define ICE_CPP11
|
||||
#endif
|
|
@ -1,16 +0,0 @@
|
|||
--- cpp.orig/src/IceGrid/FileCache.cpp 2013-03-11 15:19:12.271195149 +0000
|
||||
+++ cpp/src/IceGrid/FileCache.cpp 2013-06-01 17:47:48.636196265 +0000
|
||||
@@ -195,11 +195,11 @@
|
||||
// Some eofbit cases will also set failbit. So first
|
||||
// check eof.
|
||||
//
|
||||
- if(is.eof())
|
||||
+ if(is.eof() || is.fail())
|
||||
{
|
||||
newOffset += line.size();
|
||||
}
|
||||
- else if(!is.fail())
|
||||
+ else
|
||||
{
|
||||
newOffset = is.tellg();
|
||||
}
|
|
@ -1,13 +1,44 @@
|
|||
--- cpp.orig/src/slice2cpp/Gen.cpp 2013-03-11 15:19:46.000000000 +0000
|
||||
+++ cpp/src/slice2cpp/Gen.cpp 2013-05-20 19:51:48.109197053 +0000
|
||||
@@ -385,6 +385,10 @@
|
||||
H << "\n#include <Ice/Proxy.h>";
|
||||
H << "\n#include <Ice/OutgoingAsync.h>";
|
||||
}
|
||||
+ else if(p->hasNonLocalClassDecls())
|
||||
+ {
|
||||
+ H << "\n#include <Ice/Proxy.h>";
|
||||
+ }
|
||||
@@ -756,10 +756,11 @@
|
||||
|
||||
C << sp << nl << "class " << factoryName << "__Init";
|
||||
C << sb;
|
||||
+ C << nl << "IceInternal::FactoryTableInit* _ftableinit;";
|
||||
C.dec();
|
||||
C << nl << "public:";
|
||||
C.inc();
|
||||
- C << sp << nl << factoryName << "__Init()";
|
||||
+ C << sp << nl << factoryName << "__Init(): _ftableinit(new IceInternal::FactoryTableInit)";
|
||||
C << sb;
|
||||
C << nl << "::IceInternal::factoryTable->addExceptionFactory(\"" << p->scoped() << "\", new "
|
||||
<< factoryName << ");";
|
||||
@@ -767,6 +768,7 @@
|
||||
C << sp << nl << "~" << factoryName << "__Init()";
|
||||
C << sb;
|
||||
C << nl << "::IceInternal::factoryTable->removeExceptionFactory(\"" << p->scoped() << "\");";
|
||||
+ C << nl << "delete _ftableinit;";
|
||||
C << eb;
|
||||
C << eb << ';';
|
||||
|
||||
@@ -3976,10 +3978,11 @@
|
||||
C << sp;
|
||||
C << nl << "class " << factoryName << "__Init";
|
||||
C << sb;
|
||||
+ C << nl << "IceInternal::FactoryTableInit* _ftableinit;";
|
||||
C.dec();
|
||||
C << nl << "public:";
|
||||
C.inc();
|
||||
- C << sp << nl << factoryName << "__Init()";
|
||||
+ C << sp << nl << factoryName << "__Init(): _ftableinit(new IceInternal::FactoryTableInit)";
|
||||
C << sb;
|
||||
if(!p->isAbstract())
|
||||
{
|
||||
@@ -4002,6 +4005,7 @@
|
||||
{
|
||||
C << nl << "::IceInternal::factoryTable->removeTypeId(" << p->compactId() << ");";
|
||||
}
|
||||
+ C << nl << "delete _ftableinit;";
|
||||
C << eb;
|
||||
C << eb << ';';
|
||||
|
||||
if(p->hasNonLocalDataOnlyClasses() || p->hasNonLocalExceptions())
|
||||
{
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
--- cpp.orig/test/Ice/properties/run.py 2013-03-11 15:19:47.000000000 +0000
|
||||
+++ cpp/test/Ice/properties/run.py 2013-05-21 03:48:13.020195761 +0000
|
||||
@@ -28,15 +28,15 @@
|
||||
#
|
||||
if sys.version_info[0] == 2:
|
||||
configPath = "./config/\xe4\xb8\xad\xe5\x9b\xbd_client.config".decode("utf-8")
|
||||
- TestUtil.createConfig(configPath,
|
||||
+ TestUtil.createConfig(configPath.encode("utf-8"),
|
||||
["# Automatically generated by Ice test driver.",
|
||||
"Ice.Trace.Protocol=1",
|
||||
"Ice.Trace.Network=1",
|
||||
"Ice.ProgramName=PropertiesClient",
|
||||
- "Config.Path=./config/中国_client.config"])
|
||||
+ "Config.Path=" + configPath.encode("utf-8")])
|
||||
else:
|
||||
configPath = "./config/\u4e2d\u56fd_client.config"
|
||||
- TestUtil.createConfig(configPath,
|
||||
+ TestUtil.createConfig(configPath.encode("utf-8"),
|
||||
["# Automatically generated by Ice test driver.",
|
||||
"Ice.Trace.Protocol=1",
|
||||
"Ice.Trace.Network=1",
|
||||
@@ -46,5 +46,5 @@
|
||||
|
||||
TestUtil.simpleTest(client)
|
||||
|
||||
-if os.path.exists(configPath):
|
||||
- os.remove(configPath)
|
||||
+if os.path.exists(configPath.encode("utf-8")):
|
||||
+ os.remove(configPath.encode("utf-8"))
|
11
devel/ice/files/patch-php-Makefile
Normal file
11
devel/ice/files/patch-php-Makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- php/Makefile.orig 2013-10-04 15:48:15.000000000 +0000
|
||||
+++ php/Makefile 2013-12-01 21:19:31.863489109 +0000
|
||||
@@ -14,7 +14,7 @@
|
||||
SUBDIRS = src lib demo test
|
||||
INSTALL_SUBDIRS = $(install_phpdir) $(install_libdir)
|
||||
|
||||
-install:: install-common
|
||||
+install::
|
||||
@for subdir in $(INSTALL_SUBDIRS); \
|
||||
do \
|
||||
if test ! -d $(DESTDIR)$$subdir ; \
|
|
@ -4,13 +4,13 @@
|
|||
endif
|
||||
|
||||
libdir = $(top_srcdir)/lib
|
||||
-install_phpdir = $(prefix)/php
|
||||
-install_libdir = $(prefix)/php
|
||||
ifneq ($(prefix), /usr)
|
||||
-install_phpdir = $(prefix)/php
|
||||
-install_libdir = $(prefix)/php
|
||||
+install_phpdir = $(prefix)/share/pear
|
||||
+install_libdir = $(prefix)/lib/php/$(PHP_EXT_DIR)
|
||||
|
||||
#
|
||||
# Platform specific definitions
|
||||
else
|
||||
|
||||
@@ -155,7 +155,8 @@
|
||||
endif
|
||||
|
|
@ -4,9 +4,9 @@
|
|||
@echo "Installing generated code"
|
||||
@for i in $(MODULES) ; \
|
||||
do \
|
||||
- $(INSTALL_DATA) -r $$i $(install_phpdir) ; \
|
||||
+ mkdir -p $(install_phpdir)/$$i ; \
|
||||
+ $(INSTALL_DATA) $$i/*.php $(install_phpdir)/$$i ; \
|
||||
- $(INSTALL_DATA) -r $$i $(DESTDIR)$(install_phpdir) ; \
|
||||
+ mkdir -p $(DESTDIR)$(install_phpdir)/$$i ; \
|
||||
+ $(INSTALL_DATA) $$i/*.php $(DESTDIR)$(install_phpdir)/$$i ; \
|
||||
done
|
||||
@for i in $(MODULE_SRCS) ; \
|
||||
do \
|
11
devel/ice/files/patch-py-Makefile
Normal file
11
devel/ice/files/patch-py-Makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- py/Makefile.orig 2013-10-04 15:48:15.000000000 +0000
|
||||
+++ py/Makefile 2013-12-01 16:37:09.381657035 +0000
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
INSTALL_SUBDIRS = $(install_pythondir) $(install_libdir)
|
||||
|
||||
-install:: install-common
|
||||
+install::
|
||||
@for subdir in $(INSTALL_SUBDIRS); \
|
||||
do \
|
||||
if test ! -d $(DESTDIR)$$subdir ; \
|
|
@ -10,23 +10,32 @@
|
|||
|
||||
#
|
||||
# The "root directory" for runpath embedded in executables. Can be unset
|
||||
@@ -95,8 +96,8 @@
|
||||
endif
|
||||
@@ -96,8 +97,8 @@
|
||||
|
||||
libdir = $(top_srcdir)/python
|
||||
ifneq ($(prefix), /usr)
|
||||
-install_pythondir = $(prefix)/python
|
||||
-install_libdir = $(prefix)/python
|
||||
+install_pythondir = %%PYTHON_SITELIBDIR%%/Ice
|
||||
+install_libdir = %%PYTHON_SITELIBDIR%%/Ice
|
||||
|
||||
ifeq ($(UNAME),SunOS)
|
||||
ifeq ($(LP64),yes)
|
||||
@@ -118,7 +119,7 @@
|
||||
else
|
||||
ifeq ($(shell test -d $(prefix)/$(libsubdir)/$(PYTHON_VERSION)/dist-packages && echo 0),0)
|
||||
install_pythondir = $(prefix)/$(libsubdir)/$(PYTHON_VERSION)/dist-packages
|
||||
@@ -128,7 +129,7 @@
|
||||
ICE_LIB_DIR = -L$(ice_dir)/$(libsubdir)
|
||||
ICE_FLAGS = -I$(ice_dir)/include
|
||||
endif
|
||||
-ICE_LIBS = $(ICE_LIB_DIR) -lIce -lSlice -lIceUtil
|
||||
+ICE_LIBS = $(ICE_LIB_DIR) -lIce -lSlice -lIceUtil -liconv
|
||||
+ICE_LIBS = $(ICE_LIB_DIR) -lIce -lSlice -lIceUtil %%ICONV_LIB%%
|
||||
|
||||
ifneq ($(embedded_runpath_prefix),)
|
||||
runpath_libdir := $(embedded_runpath_prefix)/$(libsubdir)
|
||||
@@ -167,7 +167,7 @@
|
||||
|
||||
all:: $(SRCS)
|
||||
|
||||
-%_ice.py: $(slicedir)/%.ice
|
||||
+%_ice.py: $(ICE_HOME)/%.ice
|
||||
rm -f $(*F).py
|
||||
$(SLICE2PY) $(SLICE2PYFLAGS) $<
|
||||
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
install:: $(ALL_SRCS)
|
||||
@echo "Installing generated code"
|
||||
- $(INSTALL_DATA) *.py $(install_pythondir)
|
||||
+ $(INSTALL_DATA) *.py* $(install_pythondir)
|
||||
- $(INSTALL_DATA) *.py $(DESTDIR)$(install_pythondir)
|
||||
+ $(INSTALL_DATA) *.py* $(DESTDIR)$(install_pythondir)
|
||||
@for i in $(PACKAGES) ; \
|
||||
do \
|
||||
- $(INSTALL_DATA) -r $$i $(install_pythondir) ; \
|
||||
+ mkdir -p $(install_pythondir)/$$i ; \
|
||||
+ $(INSTALL_DATA) $$i/*.py* $(install_pythondir)/$$i ; \
|
||||
- $(INSTALL_DATA) -r $$i $(DESTDIR)$(install_pythondir) ; \
|
||||
+ mkdir -p $(DESTDIR)$(install_pythondir)/$$i ; \
|
||||
+ $(INSTALL_DATA) $$i/*.py* $(DESTDIR)$(install_pythondir)/$$i ; \
|
||||
done
|
||||
|
||||
depend:: $(ICE_SLICE) $(GLACIER2_SLICE) $(ICEBOX_SLICE) $(ICEGRID_SLICE) $(ICEPATCH2_SLICE) $(ICESTORM_SLICE)
|
|
@ -108,6 +108,8 @@ include/Ice/Metrics.h
|
|||
include/Ice/MetricsAdminI.h
|
||||
include/Ice/MetricsFunctional.h
|
||||
include/Ice/MetricsObserverI.h
|
||||
include/Ice/NativePropertiesAdmin.h
|
||||
include/Ice/NetworkF.h
|
||||
include/Ice/Object.h
|
||||
include/Ice/ObjectAdapter.h
|
||||
include/Ice/ObjectAdapterF.h
|
||||
|
@ -230,50 +232,74 @@ include/Slice/RubyUtil.h
|
|||
include/Slice/Util.h
|
||||
lib/ImportKey.class
|
||||
lib/libFreeze.so
|
||||
lib/libFreeze.so.3.5.0
|
||||
lib/libFreeze.so.3.5.1
|
||||
lib/libFreeze.so.35
|
||||
lib/libGlacier2.so
|
||||
lib/libGlacier2.so.3.5.0
|
||||
lib/libGlacier2.so.3.5.1
|
||||
lib/libGlacier2.so.35
|
||||
lib/libIce.so
|
||||
lib/libIce.so.3.5.0
|
||||
lib/libIce.so.3.5.1
|
||||
lib/libIce.so.35
|
||||
lib/libIceBox.so
|
||||
lib/libIceBox.so.3.5.0
|
||||
lib/libIceBox.so.3.5.1
|
||||
lib/libIceBox.so.35
|
||||
lib/libIceDB.so
|
||||
lib/libIceDB.so.3.5.0
|
||||
lib/libIceDB.so.3.5.1
|
||||
lib/libIceDB.so.35
|
||||
lib/libIceGrid.so
|
||||
lib/libIceGrid.so.3.5.0
|
||||
lib/libIceGrid.so.3.5.1
|
||||
lib/libIceGrid.so.35
|
||||
lib/libIceGridFreezeDB.so
|
||||
lib/libIceGridFreezeDB.so.3.5.0
|
||||
lib/libIceGridFreezeDB.so.3.5.1
|
||||
lib/libIceGridFreezeDB.so.35
|
||||
lib/libIcePatch2.so
|
||||
lib/libIcePatch2.so.3.5.0
|
||||
lib/libIcePatch2.so.3.5.1
|
||||
lib/libIcePatch2.so.35
|
||||
lib/libIceSSL.so
|
||||
lib/libIceSSL.so.3.5.0
|
||||
lib/libIceSSL.so.3.5.1
|
||||
lib/libIceSSL.so.35
|
||||
lib/libIceStorm.so
|
||||
lib/libIceStorm.so.3.5.0
|
||||
lib/libIceStorm.so.3.5.1
|
||||
lib/libIceStorm.so.35
|
||||
lib/libIceStormFreezeDB.so
|
||||
lib/libIceStormFreezeDB.so.3.5.0
|
||||
lib/libIceStormFreezeDB.so.3.5.1
|
||||
lib/libIceStormFreezeDB.so.35
|
||||
lib/libIceStormService.so
|
||||
lib/libIceStormService.so.3.5.0
|
||||
lib/libIceStormService.so.3.5.1
|
||||
lib/libIceStormService.so.35
|
||||
lib/libIceUtil.so
|
||||
lib/libIceUtil.so.3.5.0
|
||||
lib/libIceUtil.so.3.5.1
|
||||
lib/libIceUtil.so.35
|
||||
lib/libIceXML.so
|
||||
lib/libIceXML.so.3.5.0
|
||||
lib/libIceXML.so.3.5.1
|
||||
lib/libIceXML.so.35
|
||||
lib/libSlice.so
|
||||
lib/libSlice.so.3.5.0
|
||||
lib/libSlice.so.3.5.1
|
||||
lib/libSlice.so.35
|
||||
man/man1/dumpdb.1.gz
|
||||
man/man1/glacier2router.1.gz
|
||||
man/man1/icebox.1.gz
|
||||
man/man1/iceboxadmin.1.gz
|
||||
man/man1/iceca.1.gz
|
||||
man/man1/icegridadmin.1.gz
|
||||
man/man1/icegridnode.1.gz
|
||||
man/man1/icegridregistry.1.gz
|
||||
man/man1/icepatch2calc.1.gz
|
||||
man/man1/icepatch2client.1.gz
|
||||
man/man1/icepatch2server.1.gz
|
||||
man/man1/icestormadmin.1.gz
|
||||
man/man1/icestormmigrate.1.gz
|
||||
man/man1/slice2cpp.1.gz
|
||||
man/man1/slice2cs.1.gz
|
||||
man/man1/slice2freeze.1.gz
|
||||
man/man1/slice2freezej.1.gz
|
||||
man/man1/slice2html.1.gz
|
||||
man/man1/slice2java.1.gz
|
||||
man/man1/slice2php.1.gz
|
||||
man/man1/slice2py.1.gz
|
||||
man/man1/slice2rb.1.gz
|
||||
man/man1/transformdb.1.gz
|
||||
%%DATADIR%%/CHANGES
|
||||
%%DATADIR%%/Freeze/BackgroundSaveEvictor.ice
|
||||
%%DATADIR%%/Freeze/CatalogData.ice
|
||||
%%DATADIR%%/Freeze/Connection.ice
|
||||
|
@ -322,6 +348,7 @@ lib/libSlice.so.35
|
|||
%%DATADIR%%/Ice/PluginF.ice
|
||||
%%DATADIR%%/Ice/Process.ice
|
||||
%%DATADIR%%/Ice/ProcessF.ice
|
||||
%%DATADIR%%/Ice/PropertiesAdmin.ice
|
||||
%%DATADIR%%/Ice/Properties.ice
|
||||
%%DATADIR%%/Ice/PropertiesF.ice
|
||||
%%DATADIR%%/Ice/Router.ice
|
||||
|
@ -350,6 +377,7 @@ lib/libSlice.so.35
|
|||
%%DATADIR%%/IceStorm/IceStorm.ice
|
||||
%%DATADIR%%/IceStorm/Metrics.ice
|
||||
%%DATADIR%%/LICENSE
|
||||
%%DATADIR%%/RELEASE_NOTES
|
||||
%%DATADIR%%/config/convertssl.py
|
||||
%%DATADIR%%/config/icegrid-slice.3.1.ice.gz
|
||||
%%DATADIR%%/config/icegrid-slice.3.2.ice.gz
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
# Created by: DIrk Ye <dirk.ye@gmail.com>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Ice
|
||||
PORTVERSION= 3.5.0
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://download.zeroc.com/Ice/3.5/
|
||||
PKGNAMEPREFIX= php5-
|
||||
|
||||
MAINTAINER= freebsd@grem.de
|
||||
|
@ -12,15 +9,20 @@ COMMENT= Ice (Internet Communications Engine) language mapping for PHP
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp
|
||||
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp \
|
||||
slice2php:${PORTSDIR}/devel/ice
|
||||
LIB_DEPENDS= Ice.${LIB_VRS}:${PORTSDIR}/devel/ice
|
||||
|
||||
OPTIONS_DEFINE= DEBUG DOCS NAMESPACES
|
||||
OPTIONS_DEFAULT=
|
||||
NAMESPACES_DESC= Use PHP namespaces (recommended)
|
||||
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${PREFIX} \
|
||||
PHP_HOME=${PREFIX} OPTIMIZE=yes
|
||||
SLAVE_PORT= yes
|
||||
MASTERDIR= ${.CURDIR}/../ice
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${LOCALBASE} \
|
||||
PHP_HOME=${LOCALBASE} OPTIMIZE=yes
|
||||
USE_PHP= yes
|
||||
USE_PHP_BUILD= yes
|
||||
DEFAULT_PHP_VER=5
|
||||
|
@ -31,53 +33,8 @@ INSTALL_WRKSRC= ${WRKSRC}/php
|
|||
LIB_VRS= ${PORTVERSION:S|.||g:C|0$||}
|
||||
PHP_MODNAME?= IcePHP
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_REENTRANT
|
||||
.if ${PORT_OPTIONS:MDEBUG}
|
||||
CFLAGS+= -g
|
||||
.else
|
||||
CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "ia64"
|
||||
BROKEN= does not compile on ia64
|
||||
.endif
|
||||
|
||||
.if ((${ARCH} != i386) && (${ARCH} != powerpc))
|
||||
MAKE_ENV= LP64=yes
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MNAMESPACES}
|
||||
MAKE_ARGS+= USE_NAMESPACES=yes
|
||||
PLIST_SUB+= NAMESPACES=""
|
||||
PLIST_SUB+= NONAMESPACES="@comment "
|
||||
.else
|
||||
PLIST_SUB+= NAMESPACES="@comment "
|
||||
PLIST_SUB+= NONAMESPACES=""
|
||||
.endif
|
||||
|
||||
.if empty(PORT_OPTIONS:MDOCS)
|
||||
MAKE_ENV+= NOPORTDOCS=yes
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|g; \
|
||||
s|%%DATADIR%%|${DATADIR}|g; \
|
||||
s|%%DOCSDIR%%|${DOCSDIR}|g; \
|
||||
s|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g' \
|
||||
${FILESDIR}/Make.rules.FreeBSD > ${WRKSRC}/cpp/config/Make.rules.FreeBSD
|
||||
@${REINPLACE_CMD} 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g; \
|
||||
s|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/php/config/Make.rules.php
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/php
|
||||
@${ECHO_CMD} extension=${PHP_MODNAME}.so \
|
||||
>> ${PREFIX}/etc/php/extensions.ini
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
|
||||
|
||||
add-plist-info:
|
||||
@${ECHO_CMD} "@exec mkdir -p %D/etc/php" \
|
||||
|
@ -105,4 +62,4 @@ security-check:
|
|||
@${ECHO_CMD} ""
|
||||
@${ECHO_CMD} "****************************************************************************"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
SHA256 (Ice-3.5.0.tar.gz) = bbde6b5a87f5abc8d9105468731f1419829bc22b5d23b8fdef553967a2eebdb0
|
||||
SIZE (Ice-3.5.0.tar.gz) = 4790555
|
|
@ -1,21 +0,0 @@
|
|||
mkshlib = $(CXX) -shared $(LDFLAGS) -o $(1) -Wl,-h,$(2) $(3) $(4)
|
||||
|
||||
BASELIBS = -lIceUtil -pthread -L$(LOCALBASE)/lib -liconv
|
||||
LIBS = -lIce $(BASELIBS)
|
||||
|
||||
ICEUTIL_OS_LIBS = -pthread
|
||||
|
||||
PLATFORM_HAS_READLINE := yes
|
||||
|
||||
export LD_LIBRARY_PATH := $(libdir):$(LD_LIBRARY_PATH)
|
||||
|
||||
lp64suffix =
|
||||
create_runpath_symlink = no
|
||||
prefix = %%PREFIX%%
|
||||
install_slicedir = %%DATADIR%%
|
||||
install_configdir = %%DATADIR%%/config
|
||||
install_docdir = %%DOCSDIR%%
|
||||
EXPAT_HOME = $(LOCALBASE)
|
||||
INSTALL = %%INSTALL_DATA%%
|
||||
INSTALL_PROGRAM = %%INSTALL_PROGRAM%%
|
||||
MCPP_HOME = $(LOCALBASE)
|
|
@ -1,16 +0,0 @@
|
|||
--- ./config/Make.common.rules.orig 2013-06-05 13:13:29.000000000 +0400
|
||||
+++ ./config/Make.common.rules 2013-06-17 09:45:21.000000000 +0400
|
||||
@@ -385,13 +385,3 @@
|
||||
cp -fpr $$subdir $(install_slicedir) ; \
|
||||
done ; \
|
||||
fi
|
||||
-
|
||||
- @if test ! -f $(prefix)/ICE_LICENSE$(TEXT_EXTENSION) ; \
|
||||
- then \
|
||||
- $(call installdata,$(top_srcdir)/../ICE_LICENSE$(TEXT_EXTENSION),$(prefix)) ; \
|
||||
- fi
|
||||
-
|
||||
- @if test ! -f $(prefix)/LICENSE$(TEXT_EXTENSION) ; \
|
||||
- then \
|
||||
- $(call installdata,$(top_srcdir)/../LICENSE$(TEXT_EXTENSION),$(prefix)) ; \
|
||||
- fi
|
|
@ -1,13 +0,0 @@
|
|||
--- cpp.orig/config/Make.rules Fri Mar 11 16:19:00 2013
|
||||
+++ cpp/config/Make.rules Fri May 19 22:00:09 2013
|
||||
@@ -233,7 +233,9 @@
|
||||
DB_FLAGS = -I/usr/local/include/db53
|
||||
DB_LIBS = -L/usr/local/$(libsubdir)/db53 -ldb_cxx
|
||||
else
|
||||
- DB_LIBS = -ldb_cxx
|
||||
+ DB_FLAGS = -I%%BDB_INCLUDE_DIR%%
|
||||
+ DB_LIBS = -L%%BDB_LIB_DIR%% -l%%BDB_LIB_CXX_NAME%%
|
||||
+ DB_RPATH_LINK = $(call rpathlink,%%BDB_LIB_DIR%%)
|
||||
endif
|
||||
endif
|
||||
endif
|
|
@ -1,11 +0,0 @@
|
|||
--- php/src/IcePHP/Communicator.cpp.orig 2013-06-02 11:48:21.990197196 +0000
|
||||
+++ php/src/IcePHP/Communicator.cpp 2013-06-02 11:48:29.692195174 +0000
|
||||
@@ -1341,7 +1341,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("Communicator"), _interfaceMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "Communicator", _interfaceMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_Communicator", _interfaceMethods);
|
||||
#endif
|
|
@ -1,47 +0,0 @@
|
|||
--- php/src/IcePHP/Connection.cpp.orig 2013-06-02 11:48:58.022196354 +0000
|
||||
+++ php/src/IcePHP/Connection.cpp 2013-06-02 11:50:59.494195380 +0000
|
||||
@@ -360,7 +360,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("Connection"), _interfaceMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "Connection", _interfaceMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_Connection", _interfaceMethods);
|
||||
#endif
|
||||
@@ -380,7 +380,7 @@
|
||||
// Register the ConnectionInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("ConnectionInfo"), _connectionInfoClassMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "ConnectionInfo", _connectionInfoClassMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_ConnectionInfo", _connectionInfoClassMethods);
|
||||
#endif
|
||||
@@ -396,7 +396,7 @@
|
||||
// Register the IPConnectionInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("IPConnectionInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "IPConnectionInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_IPConnectionInfo", NULL);
|
||||
#endif
|
||||
@@ -415,7 +415,7 @@
|
||||
// Register the TCPConnectionInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("TCPConnectionInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "TCPConnectionInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_TCPConnectionInfo", NULL);
|
||||
#endif
|
||||
@@ -426,7 +426,7 @@
|
||||
// Register the UDPConnectionInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("UDPConnectionInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "UDPConnectionInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_UDPConnectionInfo", NULL);
|
||||
#endif
|
|
@ -1,56 +0,0 @@
|
|||
--- php/src/IcePHP/Endpoint.cpp.orig 2013-06-02 11:51:19.569193334 +0000
|
||||
+++ php/src/IcePHP/Endpoint.cpp 2013-06-02 11:52:06.348197336 +0000
|
||||
@@ -274,7 +274,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("Endpoint"), _interfaceMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "Endpoint", _interfaceMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_Endpoint", _interfaceMethods);
|
||||
#endif
|
||||
@@ -293,7 +293,7 @@
|
||||
// Register the EndpointInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("EndpointInfo"), _endpointInfoMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "EndpointInfo", _endpointInfoMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_EndpointInfo", _endpointInfoMethods);
|
||||
#endif
|
||||
@@ -309,7 +309,7 @@
|
||||
// Register the IPEndpointInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("IPEndpointInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "IPEndpointInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_IPEndpointInfo", NULL);
|
||||
#endif
|
||||
@@ -324,7 +324,7 @@
|
||||
// Register the TCPEndpointInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("TCPEndpointInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "TCPEndpointInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_TCPEndpointInfo", NULL);
|
||||
#endif
|
||||
@@ -335,7 +335,7 @@
|
||||
// Register the UDPEndpointInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("UDPEndpointInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "UDPEndpointInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_UDPEndpointInfo", NULL);
|
||||
#endif
|
||||
@@ -350,7 +350,7 @@
|
||||
// Register the OpaqueEndpointInfo class.
|
||||
//
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("OpaqueEndpointInfo"), NULL);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "OpaqueEndpointInfo", NULL);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_OpaqueEndpointInfo", NULL);
|
||||
#endif
|
|
@ -1,15 +0,0 @@
|
|||
--- php/src/IcePHP/Init.cpp.orig 2013-03-11 15:19:47.000000000 +0000
|
||||
+++ php/src/IcePHP/Init.cpp 2013-06-02 11:44:16.052196522 +0000
|
||||
@@ -22,10 +22,10 @@
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(ice)
|
||||
|
||||
-ZEND_BEGIN_ARG_INFO(Ice_initialize_arginfo, 1)
|
||||
+ZEND_BEGIN_ARG_INFO_EX(Ice_initialize_arginfo, 1, ZEND_RETURN_VALUE, static_cast<zend_uint>(-1))
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
-ZEND_BEGIN_ARG_INFO(Ice_createProperties_arginfo, 1)
|
||||
+ZEND_BEGIN_ARG_INFO_EX(Ice_createProperties_arginfo, 1, ZEND_RETURN_VALUE, static_cast<zend_uint>(-1))
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define ICEPHP_COMMUNICATOR_FUNCTIONS \
|
|
@ -1,11 +0,0 @@
|
|||
--- php/src/IcePHP/Logger.cpp.orig 2013-06-02 11:52:25.727195546 +0000
|
||||
+++ php/src/IcePHP/Logger.cpp 2013-06-02 11:52:39.876195038 +0000
|
||||
@@ -269,7 +269,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("Logger"), _interfaceMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "Logger", _interfaceMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_Logger", _interfaceMethods);
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
--- php/src/IcePHP/Properties.cpp.orig 2013-06-02 11:52:55.531198249 +0000
|
||||
+++ php/src/IcePHP/Properties.cpp 2013-06-02 11:53:07.786227648 +0000
|
||||
@@ -641,7 +641,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("Properties"), _interfaceMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "Properties", _interfaceMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_Properties", _interfaceMethods);
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
--- php/src/IcePHP/Proxy.cpp.orig 2013-06-02 11:54:02.594196824 +0000
|
||||
+++ php/src/IcePHP/Proxy.cpp 2013-06-02 11:53:46.793198453 +0000
|
||||
@@ -1702,7 +1702,7 @@
|
||||
//
|
||||
zend_class_entry ce;
|
||||
#ifdef ICEPHP_USE_NAMESPACES
|
||||
- INIT_NS_CLASS_ENTRY(ce, STRCAST("Ice"), STRCAST("ObjectPrx"), _proxyMethods);
|
||||
+ INIT_NS_CLASS_ENTRY(ce, "Ice", "ObjectPrx", _proxyMethods);
|
||||
#else
|
||||
INIT_CLASS_ENTRY(ce, "Ice_ObjectPrx", _proxyMethods);
|
||||
#endif
|
|
@ -38,6 +38,7 @@ share/pear/Ice/PluginF.php
|
|||
share/pear/Ice/Process.php
|
||||
share/pear/Ice/ProcessF.php
|
||||
share/pear/Ice/Properties.php
|
||||
share/pear/Ice/PropertiesAdmin.php
|
||||
share/pear/Ice/PropertiesF.php
|
||||
share/pear/Ice/Router.php
|
||||
share/pear/Ice/RouterF.php
|
||||
|
@ -72,3 +73,5 @@ share/pear/IceStorm/Metrics.php
|
|||
@dirrmtry share/pear/IceStorm
|
||||
@dirrmtry share/pear
|
||||
@dirrmtry lib/php/%%PHP_EXT_DIR%%
|
||||
@dirrmtry lib/php
|
||||
@dirrmtry etc/php
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
# Created by: Boris B. Samorodov <bsam@ipt.ru>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Ice
|
||||
PORTVERSION= 3.5.0
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= http://download.zeroc.com/Ice/3.5/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= freebsd@grem.de
|
||||
|
@ -12,17 +9,20 @@ COMMENT= Ice (Internet Communications Engine) language mapping for Python
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp
|
||||
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp \
|
||||
slice2py:${PORTSDIR}/devel/ice
|
||||
LIB_DEPENDS= Ice.${LIB_VRS}:${PORTSDIR}/devel/ice
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_PYTHON= yes
|
||||
SLAVE_PORT= yes
|
||||
MASTERDIR= ${.CURDIR}/../ice
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/py
|
||||
INSTALL_WRKSRC= ${WRKSRC}/py
|
||||
|
||||
LIB_VRS= ${PORTVERSION:S|.||g:C|0$||}
|
||||
LIB_VRS= ${PORTVERSION:S|.||g:C|[0-9]$||}
|
||||
PLIST_SUB= LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
|
||||
MAKE_ENV= ICE_HOME="${LOCALBASE}/share/Ice"
|
||||
|
||||
# bypass infrastructure bug (taken from www/py-django)
|
||||
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
||||
|
@ -30,69 +30,11 @@ OPTIONS_DEFINE= DEBUG DOCS TESTS
|
|||
OPTIONS_DEFAULT=TESTS
|
||||
TESTS_DESC= Run tests
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_REENTRANT
|
||||
.if empty(PORT_OPTIONS:MDEBUG)
|
||||
CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "ia64"
|
||||
BROKEN= does not compile on ia64
|
||||
.endif
|
||||
|
||||
.if ((${ARCH} != i386) && (${ARCH} != powerpc))
|
||||
MAKE_ENV= LP64=yes
|
||||
.endif
|
||||
|
||||
.if empty(PORT_OPTIONS:MDOCS)
|
||||
MAKE_ENV+= NOPORTDOCS=yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PYTHON_REL} >= 320
|
||||
PLIST_SUB+= PYTHON32=""
|
||||
PLIST_SUB+= PYTHONPRE32="@comment "
|
||||
.else
|
||||
PLIST_SUB+= PYTHON32="@comment "
|
||||
PLIST_SUB+= PYTHONPRE32=""
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PYTHON_SUFFIX=${PYTHON_SUFFIX}
|
||||
|
||||
post-patch:
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|g; \
|
||||
s|%%DATADIR%%|${DATADIR}|g; \
|
||||
s|%%DOCSDIR%%|${DOCSDIR}|g; \
|
||||
s|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
||||
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g' \
|
||||
${FILESDIR}/Make.rules.FreeBSD > ${WRKSRC}/cpp/config/Make.rules.FreeBSD
|
||||
@${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}/py/config/Make.rules
|
||||
@${REINPLACE_CMD} 's|.(ice_dir).slice|${DATADIR}|g; \
|
||||
s|.(prefix).slice|${DATADIR}|g; \
|
||||
s|.(prefix).[ICE_]*LICENSE|${DATADIR}/LICENSE|g;' \
|
||||
${WRKSRC}/config/Make.common.rules
|
||||
|
||||
post-install:
|
||||
${ECHO} "Ice" > ${PYTHON_SITELIBDIR}/Ice.pth
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/Ice
|
||||
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/Ice
|
||||
${ECHO} "Ice" > ${STAGEDIR}${PYSITEDIR}/Ice.pth
|
||||
@${FIND} ${STAGEDIR}${PYSITEDIR}/Ice \( -name "*.pyc" -or -name "*.pyo" \) \
|
||||
-exec ${CHMOD} u+w {} \;
|
||||
@${PYTHON_CMD} -m compileall ${STAGEDIR}${PYSITEDIR}/Ice
|
||||
@${PYTHON_CMD} -O -m compileall ${STAGEDIR}${PYSITEDIR}/Ice
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTS}
|
||||
TEST_CMD= @cd ${BUILD_WRKSRC} && ${PYTHON_CMD} ./allTests.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTS}
|
||||
post-build:
|
||||
${TEST_CMD}
|
||||
regression-test test: build
|
||||
${TEST_CMD}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
SHA256 (Ice-3.5.0.tar.gz) = bbde6b5a87f5abc8d9105468731f1419829bc22b5d23b8fdef553967a2eebdb0
|
||||
SIZE (Ice-3.5.0.tar.gz) = 4790555
|
|
@ -1,21 +0,0 @@
|
|||
mkshlib = $(CXX) -shared $(LDFLAGS) -o $(1) -Wl,-h,$(2) $(3) $(4)
|
||||
|
||||
BASELIBS = -lIceUtil -pthread -L$(LOCALBASE)/lib -liconv
|
||||
LIBS = -lIce $(BASELIBS)
|
||||
|
||||
ICEUTIL_OS_LIBS = -pthread
|
||||
|
||||
PLATFORM_HAS_READLINE := yes
|
||||
|
||||
export LD_LIBRARY_PATH := $(libdir):$(LD_LIBRARY_PATH)
|
||||
|
||||
lp64suffix =
|
||||
create_runpath_symlink = no
|
||||
prefix = %%PREFIX%%
|
||||
install_slicedir = %%DATADIR%%
|
||||
install_configdir = %%DATADIR%%/config
|
||||
install_docdir = %%DOCSDIR%%
|
||||
EXPAT_HOME = $(LOCALBASE)
|
||||
INSTALL = %%INSTALL_DATA%%
|
||||
INSTALL_PROGRAM = %%INSTALL_PROGRAM%%
|
||||
MCPP_HOME = $(LOCALBASE)
|
|
@ -1,11 +0,0 @@
|
|||
--- config/Make.common.rules.orig 2010-07-11 13:40:06.000000000 +1000
|
||||
+++ config/Make.common.rules 2010-07-11 13:40:43.000000000 +1000
|
||||
@@ -19,7 +19,7 @@
|
||||
SHORT_VERSION = 3.4
|
||||
SOVERSION = 34
|
||||
|
||||
-INSTALL = cp -fp
|
||||
+INSTALL = install
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_LIBRARY = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL}
|
|
@ -1,11 +0,0 @@
|
|||
--- cpp/include/IceUtil/Config.h.orig 2013-03-11 15:19:46.000000000 +0000
|
||||
+++ cpp/include/IceUtil/Config.h 2013-05-20 02:09:58.239194578 +0000
|
||||
@@ -51,7 +51,7 @@
|
||||
// Check for C++ 11 support
|
||||
//
|
||||
#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
|
||||
- (defined(__clang__) && (__clang_major__ >= 4) && __cplusplus >= 201103) || \
|
||||
+ (defined(__clang__) && ((defined(__APPLE__) && __clang_major__ >= 4) || (!defined(__APPLE__) && __clang_major__ >= 3)) && __cplusplus >= 201103) || \
|
||||
(defined(_MSC_VER) && (_MSC_VER >= 1600))
|
||||
# define ICE_CPP11
|
||||
#endif
|
|
@ -1,29 +0,0 @@
|
|||
--- py/test/Ice/properties/run.py.orig 2013-05-21 02:29:52.861195367 +0000
|
||||
+++ py/test/Ice/properties/run.py 2013-05-21 02:30:44.972196471 +0000
|
||||
@@ -26,15 +26,15 @@
|
||||
#
|
||||
if sys.version_info[0] == 2:
|
||||
configPath = "./config/\xe4\xb8\xad\xe5\x9b\xbd_client.config".decode("utf-8")
|
||||
- TestUtil.createConfig(configPath,
|
||||
+ TestUtil.createConfig(configPath.encode("utf-8"),
|
||||
["# Automatically generated by Ice test driver.",
|
||||
"Ice.Trace.Protocol=1",
|
||||
"Ice.Trace.Network=1",
|
||||
"Ice.ProgramName=PropertiesClient",
|
||||
- "Config.Path=./config/中国_client.config"])
|
||||
+ "Config.Path=" + configPath.encode("utf-8")])
|
||||
else:
|
||||
configPath = "./config/\u4e2d\u56fd_client.config"
|
||||
- TestUtil.createConfig(configPath,
|
||||
+ TestUtil.createConfig(configPath.encode("utf-8"),
|
||||
["# Automatically generated by Ice test driver.",
|
||||
"Ice.Trace.Protocol=1",
|
||||
"Ice.Trace.Network=1",
|
||||
@@ -44,5 +44,5 @@
|
||||
|
||||
TestUtil.simpleTest()
|
||||
|
||||
-if os.path.exists(configPath):
|
||||
- os.remove(configPath)
|
||||
+if os.path.exists(configPath.encode("utf-8")):
|
||||
+ os.remove(configPath.encode("utf-8"))
|
|
@ -115,6 +115,8 @@
|
|||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_ProcessF_ice.cpython-%%PYTHON_SUFFIX%%.pyo
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_Process_ice.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_Process_ice.cpython-%%PYTHON_SUFFIX%%.pyo
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_PropertiesAdmin_ice.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_PropertiesAdmin_ice.cpython-%%PYTHON_SUFFIX%%.pyo
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_PropertiesF_ice.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_PropertiesF_ice.cpython-%%PYTHON_SUFFIX%%.pyo
|
||||
%%PYTHON32%%%%PYTHON_SITELIBDIR%%/Ice/__pycache__/Ice_Properties_ice.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
|
@ -251,6 +253,8 @@
|
|||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_ProcessF_ice.pyo
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_Process_ice.pyc
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_Process_ice.pyo
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesAdmin_ice.pyc
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesAdmin_ice.pyo
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesF_ice.pyc
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesF_ice.pyo
|
||||
%%PYTHONPRE32%%%%PYTHON_SITELIBDIR%%/Ice/Ice_Properties_ice.pyc
|
||||
|
@ -332,6 +336,7 @@
|
|||
%%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_PropertiesAdmin_ice.py
|
||||
%%PYTHON_SITELIBDIR%%/Ice/Ice_PropertiesF_ice.py
|
||||
%%PYTHON_SITELIBDIR%%/Ice/Ice_Properties_ice.py
|
||||
%%PYTHON_SITELIBDIR%%/Ice/Ice_RouterF_ice.py
|
||||
|
@ -354,3 +359,5 @@
|
|||
@dirrmtry %%PYTHON_SITELIBDIR%%/Ice/IceStorm
|
||||
%%PYTHON32%%@dirrmtry %%PYTHON_SITELIBDIR%%/Ice/__pycache__
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/Ice
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%
|
||||
@dirrmtry %%PYTHON_LIBDIR%%
|
||||
|
|
Loading…
Reference in a new issue