ports/183060: [NEW-PORT] devel/thrift-cpp

Valery Komarov komarov at valerka.net
Thu Oct 17 14:00:01 UTC 2013


>Number:         183060
>Category:       ports
>Synopsis:       [NEW-PORT]  devel/thrift-cpp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 17 14:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Valery Komarov
>Release:        FreeBSD 10.0-ALPHA2
>Organization:
>Environment:
>Description:
ports:

devel/fb303
devel/php5-thrift
devel/py-thrift
devel/rubygem-thrift
net/scribe
devel/thrift-c_glib
devel/thrift-cpp
devel/thrift

must be committed together.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	thrift-cpp
#	thrift-cpp/Makefile
#	thrift-cpp/pkg-descr
#	thrift-cpp/pkg-plist
#	thrift-cpp/files
#	thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc
#	thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h
#
echo c - thrift-cpp
mkdir -p thrift-cpp > /dev/null 2>&1
echo x - thrift-cpp/Makefile
sed 's/^X//' >thrift-cpp/Makefile << 'f8ef36f133e9382f2c13c3ec4b86e235'
X# Created by: Valery Komarov <komarov at valerka.net>
X# $FreeBSD: devel/thrift-cpp/Makefile$
X
XPORTNAME=	thrift
XPORTVERSION=	${THRIFT_PORTVERSION} # to keep in sync with thrift
XPORTEPOCH=	1
XCATEGORIES=	devel
X
XMAINTAINER=	komarov at valerka.net
XCOMMENT=	C++ interface to Thrift
X
XPKGNAMESUFFIX=	-cpp
X
XMASTER_SITES=		APACHE
XMASTER_SITE_SUBDIR=	thrift/${PORTVERSION}
XDISTNAME=		thrift-${PORTVERSION}
XDISTINFO_FILE=		${.CURDIR}/../thrift/distinfo
X
XLIB_DEPENDS=	boost_system:${PORTSDIR}/devel/boost-libs \
X		event-1:${PORTSDIR}/devel/libevent
X
XBUILDIR=		${WRKDIR}/${DISTNAME}/lib/cpp
X
XUSE_AUTOTOOLS=	autoconf autoheader:env aclocal automake libtool
XACLOCAL_ARGS=	-I${WRKSRC}/aclocal
XAUTOMAKE_ARGS=	--foreign --add-missing --copy
X
XUSES=			pkgconfig gmake compiler
XGNU_CONFIGURE=		yes
XUSE_LDCONFIG=		yes
XMAKE_JOBS_UNSAFE=	yes
X
XOPTIONS_DEFINE=		QT4
XQT4_CONFIGURE_ON=	--with-qt4
XQT4_CONFIGURE_OFF=	--without-qt4
X
XOPTIONS_SUB=		yes
X
XCONFIGURE_ARGS+=        \
X		--without-c_glib \
X		--with-cpp \
X		--without-csharp \
X		--without-erlang \
X		--without-haskell \
X		--without-java \
X		--without-perl \
X		--without-php \
X		--without-php_extension \
X		--without-python \
X		--without-ruby
X
X
XNO_STAGE=	yes
X
X.include <bsd.port.pre.mk>
X
X.if ${COMPILER_TYPE} == clang
XUSE_CXXSTD=	c++11
X.endif
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MQT4}
X    USE_QT4=		network moc_build qmake_build rcc_build uic_build
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} 's,^pkgconfigdir = .*,pkgconfigdir=$${prefix}/libdata/pkgconfig,' ${WRKSRC}/lib/cpp/Makefile.am
X
X#pre-configure:
X#	@${REINPLACE_CMD} '/config.h/d' ${WRKSRC}/lib/cpp/Makefile.am
X
Xdo-build:
X	cd ${BUILDIR} && ${GMAKE}
X
Xdo-install:
X	cd ${BUILDIR} && ${GMAKE} install
X
Xpost-install:
X	@${LN} -sf ${PREFIX}/lib/libthrift-${PORTVERSION}.so ${PREFIX}/lib/libthrift.so.0
X	@${LN} -sf ${PREFIX}/lib/libthriftnb-${PORTVERSION}.so ${PREFIX}/lib/libthriftnb.so.0
X	@${LN} -sf ${PREFIX}/lib/libthriftz-${PORTVERSION}.so ${PREFIX}/lib/libthriftz.so.0
X
X.if ${PORT_OPTIONS:MQT4}
X	@${LN} -sf ${PREFIX}/lib/libthriftqt-${PORTVERSION}.so ${PREFIX}/lib/libthriftqt.so.0
X.endif
X
X.include "../thrift/bsd.thrift.mk"
X.include <bsd.port.mk>
f8ef36f133e9382f2c13c3ec4b86e235
echo x - thrift-cpp/pkg-descr
sed 's/^X//' >thrift-cpp/pkg-descr << 'af277f93ea3643c770cdebed1a33e845'
XC++ interface to Thrift.
X
XWWW: http://thrift.apache.org/
af277f93ea3643c770cdebed1a33e845
echo x - thrift-cpp/pkg-plist
sed 's/^X//' >thrift-cpp/pkg-plist << 'b289268a6f22faf504da64336b5c3f7c'
Xinclude/thrift/TApplicationException.h
Xinclude/thrift/TDispatchProcessor.h
Xinclude/thrift/TLogging.h
Xinclude/thrift/TProcessor.h
Xinclude/thrift/TReflectionLocal.h
Xinclude/thrift/Thrift.h
Xinclude/thrift/async/TAsyncBufferProcessor.h
Xinclude/thrift/async/TAsyncChannel.h
Xinclude/thrift/async/TAsyncDispatchProcessor.h
Xinclude/thrift/async/TAsyncProcessor.h
Xinclude/thrift/async/TAsyncProtocolProcessor.h
Xinclude/thrift/async/TEvhttpClientChannel.h
Xinclude/thrift/async/TEvhttpServer.h
Xinclude/thrift/concurrency/BoostThreadFactory.h
Xinclude/thrift/concurrency/Exception.h
Xinclude/thrift/concurrency/FunctionRunner.h
Xinclude/thrift/concurrency/Monitor.h
Xinclude/thrift/concurrency/Mutex.h
Xinclude/thrift/concurrency/PlatformThreadFactory.h
Xinclude/thrift/concurrency/PosixThreadFactory.h
Xinclude/thrift/concurrency/StdMonitor.cpp
Xinclude/thrift/concurrency/StdMutex.cpp
Xinclude/thrift/concurrency/StdThreadFactory.cpp
Xinclude/thrift/concurrency/StdThreadFactory.h
Xinclude/thrift/concurrency/Thread.h
Xinclude/thrift/concurrency/ThreadManager.h
Xinclude/thrift/concurrency/TimerManager.h
Xinclude/thrift/concurrency/Util.h
Xinclude/thrift/config.h
Xinclude/thrift/cxxfunctional.h
Xinclude/thrift/processor/PeekProcessor.h
Xinclude/thrift/processor/StatsProcessor.h
Xinclude/thrift/processor/TMultiplexedProcessor.h
Xinclude/thrift/protocol/TBase64Utils.h
Xinclude/thrift/protocol/TBinaryProtocol.h
Xinclude/thrift/protocol/TBinaryProtocol.tcc
Xinclude/thrift/protocol/TCompactProtocol.h
Xinclude/thrift/protocol/TCompactProtocol.tcc
Xinclude/thrift/protocol/TDebugProtocol.h
Xinclude/thrift/protocol/TDenseProtocol.h
Xinclude/thrift/protocol/TJSONProtocol.h
Xinclude/thrift/protocol/TMultiplexedProtocol.h
Xinclude/thrift/protocol/TProtocol.h
Xinclude/thrift/protocol/TProtocolDecorator.h
Xinclude/thrift/protocol/TProtocolException.h
Xinclude/thrift/protocol/TProtocolTap.h
Xinclude/thrift/protocol/TVirtualProtocol.h
Xinclude/thrift/qt/TQIODeviceTransport.h
Xinclude/thrift/qt/TQTcpServer.h
Xinclude/thrift/server/TNonblockingServer.h
Xinclude/thrift/server/TServer.h
Xinclude/thrift/server/TSimpleServer.h
Xinclude/thrift/server/TThreadPoolServer.h
Xinclude/thrift/server/TThreadedServer.h
Xinclude/thrift/thrift-config.h
Xinclude/thrift/transport/PlatformSocket.h
Xinclude/thrift/transport/TBufferTransports.h
Xinclude/thrift/transport/TFDTransport.h
Xinclude/thrift/transport/TFileTransport.h
Xinclude/thrift/transport/THttpClient.h
Xinclude/thrift/transport/THttpServer.h
Xinclude/thrift/transport/THttpTransport.h
Xinclude/thrift/transport/TPipe.h
Xinclude/thrift/transport/TPipeServer.h
Xinclude/thrift/transport/TSSLServerSocket.h
Xinclude/thrift/transport/TSSLSocket.h
Xinclude/thrift/transport/TServerSocket.h
Xinclude/thrift/transport/TServerTransport.h
Xinclude/thrift/transport/TShortReadTransport.h
Xinclude/thrift/transport/TSimpleFileTransport.h
Xinclude/thrift/transport/TSocket.h
Xinclude/thrift/transport/TSocketPool.h
Xinclude/thrift/transport/TTransport.h
Xinclude/thrift/transport/TTransportException.h
Xinclude/thrift/transport/TTransportUtils.h
Xinclude/thrift/transport/TVirtualTransport.h
Xinclude/thrift/transport/TZlibTransport.h
Xlib/libthrift-0.9.1.so
Xlib/libthrift.a
Xlib/libthrift.la
Xlib/libthrift.so
Xlib/libthrift.so.0
Xlib/libthriftnb-%%PORTVERSION%%.so
Xlib/libthriftnb.a
Xlib/libthriftnb.la
Xlib/libthriftnb.so
Xlib/libthriftnb.so.0
X%%QT4%%lib/libthriftqt-%%PORTVERSION%%.so
X%%QT4%%lib/libthriftqt.a
X%%QT4%%lib/libthriftqt.la
X%%QT4%%lib/libthriftqt.so
X%%QT4%%lib/libthriftqt.so.0
Xlib/libthriftz-0.9.1.so
Xlib/libthriftz.a
Xlib/libthriftz.la
Xlib/libthriftz.so
Xlib/libthriftz.so.0
Xlibdata/pkgconfig/thrift-nb.pc
X%%QT4%%libdata/pkgconfig/thrift-qt.pc
Xlibdata/pkgconfig/thrift-z.pc
Xlibdata/pkgconfig/thrift.pc
X at dirrm include/thrift/transport
X at dirrm include/thrift/server
X at dirrm include/thrift/qt
X at dirrm include/thrift/protocol
X at dirrm include/thrift/processor
X at dirrm include/thrift/concurrency
X at dirrm include/thrift/async
X at dirrm include/thrift
b289268a6f22faf504da64336b5c3f7c
echo c - thrift-cpp/files
mkdir -p thrift-cpp/files > /dev/null 2>&1
echo x - thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc
sed 's/^X//' >thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc << '81eee5119b0eb1dad109d2e8e9a76d6e'
X--- ./lib/cpp/src/thrift/protocol/TBinaryProtocol.tcc.orig	2013-08-15 18:04:29.000000000 +0400
X+++ ./lib/cpp/src/thrift/protocol/TBinaryProtocol.tcc	2013-10-16 01:15:53.000000000 +0400
X@@ -23,7 +23,7 @@
X #include <thrift/protocol/TBinaryProtocol.h>
X 
X #include <limits>
X-
X+#include <netinet/in.h>
X 
X namespace apache { namespace thrift { namespace protocol {
X 
81eee5119b0eb1dad109d2e8e9a76d6e
echo x - thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h
sed 's/^X//' >thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h << 'a5b4d43bc5160400c917fac22ede7764'
X--- ./lib/cpp/src/thrift/server/TNonblockingServer.h.orig	2013-08-15 18:04:29.000000000 +0400
X+++ ./lib/cpp/src/thrift/server/TNonblockingServer.h	2013-10-16 01:15:53.000000000 +0400
X@@ -38,7 +38,8 @@
X #include <unistd.h>
X #endif
X #include <event.h>
X-
X+#include <sys/types.h>
X+#include <sys/socket.h>
X 
X 
X namespace apache { namespace thrift { namespace server {
a5b4d43bc5160400c917fac22ede7764
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list