Date: Sat, 9 Nov 2013 15:11:50 +0000 (UTC) From: William Grzybowski <wg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333297 - in head/devel: . thrift-cpp thrift-cpp/files Message-ID: <201311091511.rA9FBouq019524@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wg Date: Sat Nov 9 15:11:49 2013 New Revision: 333297 URL: http://svnweb.freebsd.org/changeset/ports/333297 Log: devel/thrift-cpp: C++ interface to Thrift WWW: http://thrift.apache.org/ PR: ports/183060 Submitted by: Valery Komarov <komarov valerka.net> Added: head/devel/thrift-cpp/ head/devel/thrift-cpp/Makefile (contents, props changed) head/devel/thrift-cpp/files/ head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc (contents, props changed) head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h (contents, props changed) head/devel/thrift-cpp/pkg-descr (contents, props changed) head/devel/thrift-cpp/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Nov 9 15:09:13 2013 (r333296) +++ head/devel/Makefile Sat Nov 9 15:11:49 2013 (r333297) @@ -4431,6 +4431,7 @@ SUBDIR += tex-kpathsea SUBDIR += tex-web2c SUBDIR += thrift + SUBDIR += thrift-cpp SUBDIR += thunar-vcs-plugin SUBDIR += tide SUBDIR += tig Added: head/devel/thrift-cpp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/thrift-cpp/Makefile Sat Nov 9 15:11:49 2013 (r333297) @@ -0,0 +1,77 @@ +# Created by: Valery Komarov <komarov@valerka.net> +# $FreeBSD$ + +PORTNAME= thrift +PORTVERSION= ${THRIFT_PORTVERSION} # to keep in sync with thrift +PORTEPOCH= 1 +CATEGORIES= devel + +MAINTAINER= komarov@valerka.net +COMMENT= C++ interface to Thrift + +PKGNAMESUFFIX= -cpp + +MASTER_SITES= APACHE +MASTER_SITE_SUBDIR= thrift/${PORTVERSION} +DISTNAME= thrift-${PORTVERSION} +DISTINFO_FILE= ${.CURDIR}/../thrift/distinfo + +LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \ + libevent-1.4.so:${PORTSDIR}/devel/libevent + +BUILDIR= ${WRKDIR}/${DISTNAME}/lib/cpp + +USE_AUTOTOOLS= autoconf autoheader:env aclocal automake libtool +ACLOCAL_ARGS= -I${WRKSRC}/aclocal +AUTOMAKE_ARGS= --foreign --add-missing --copy + +USES= pkgconfig gmake compiler +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +MAKE_JOBS_UNSAFE= yes +PLIST_SUB= PORTVERSION="${THRIFT_PORTVERSION}" + +OPTIONS_DEFINE= QT4 +QT4_CONFIGURE_WITH= qt4 + +OPTIONS_SUB= yes + +CONFIGURE_ARGS+= \ + --without-c_glib \ + --with-cpp \ + --without-csharp \ + --without-erlang \ + --without-haskell \ + --without-java \ + --without-perl \ + --without-php \ + --without-php_extension \ + --without-python \ + --without-ruby + + +NO_STAGE= yes + +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang +USE_CXXSTD= c++11 +.endif + +.if ${PORT_OPTIONS:MQT4} +USE_QT4= network moc_build qmake_build rcc_build uic_build +.endif + +post-patch: + @${REINPLACE_CMD} 's,^pkgconfigdir = .*,pkgconfigdir=$${prefix}/libdata/pkgconfig,' ${WRKSRC}/lib/cpp/Makefile.am + +post-install: + @${LN} -sf ${PREFIX}/lib/libthrift-${PORTVERSION}.so ${PREFIX}/lib/libthrift.so.0 + @${LN} -sf ${PREFIX}/lib/libthriftnb-${PORTVERSION}.so ${PREFIX}/lib/libthriftnb.so.0 + @${LN} -sf ${PREFIX}/lib/libthriftz-${PORTVERSION}.so ${PREFIX}/lib/libthriftz.so.0 +.if ${PORT_OPTIONS:MQT4} + @${LN} -sf ${PREFIX}/lib/libthriftqt-${PORTVERSION}.so ${PREFIX}/lib/libthriftqt.so.0 +.endif + +.include "../thrift/bsd.thrift.mk" +.include <bsd.port.mk> Added: head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__protocol__TBinaryProtocol.tcc Sat Nov 9 15:11:49 2013 (r333297) @@ -0,0 +1,11 @@ +--- ./lib/cpp/src/thrift/protocol/TBinaryProtocol.tcc.orig 2013-08-15 18:04:29.000000000 +0400 ++++ ./lib/cpp/src/thrift/protocol/TBinaryProtocol.tcc 2013-10-16 01:15:53.000000000 +0400 +@@ -23,7 +23,7 @@ + #include <thrift/protocol/TBinaryProtocol.h> + + #include <limits> +- ++#include <netinet/in.h> + + namespace apache { namespace thrift { namespace protocol { + Added: head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/thrift-cpp/files/patch-lib__cpp__src__thrift__server__TNonblockingServer.h Sat Nov 9 15:11:49 2013 (r333297) @@ -0,0 +1,12 @@ +--- ./lib/cpp/src/thrift/server/TNonblockingServer.h.orig 2013-08-15 18:04:29.000000000 +0400 ++++ ./lib/cpp/src/thrift/server/TNonblockingServer.h 2013-10-16 01:15:53.000000000 +0400 +@@ -38,7 +38,8 @@ + #include <unistd.h> + #endif + #include <event.h> +- ++#include <sys/types.h> ++#include <sys/socket.h> + + + namespace apache { namespace thrift { namespace server { Added: head/devel/thrift-cpp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/thrift-cpp/pkg-descr Sat Nov 9 15:11:49 2013 (r333297) @@ -0,0 +1,3 @@ +C++ interface to Thrift. + +WWW: http://thrift.apache.org/ Added: head/devel/thrift-cpp/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/thrift-cpp/pkg-plist Sat Nov 9 15:11:49 2013 (r333297) @@ -0,0 +1,109 @@ +include/thrift/TApplicationException.h +include/thrift/TDispatchProcessor.h +include/thrift/TLogging.h +include/thrift/TProcessor.h +include/thrift/TReflectionLocal.h +include/thrift/Thrift.h +include/thrift/async/TAsyncBufferProcessor.h +include/thrift/async/TAsyncChannel.h +include/thrift/async/TAsyncDispatchProcessor.h +include/thrift/async/TAsyncProcessor.h +include/thrift/async/TAsyncProtocolProcessor.h +include/thrift/async/TEvhttpClientChannel.h +include/thrift/async/TEvhttpServer.h +include/thrift/concurrency/BoostThreadFactory.h +include/thrift/concurrency/Exception.h +include/thrift/concurrency/FunctionRunner.h +include/thrift/concurrency/Monitor.h +include/thrift/concurrency/Mutex.h +include/thrift/concurrency/PlatformThreadFactory.h +include/thrift/concurrency/PosixThreadFactory.h +include/thrift/concurrency/StdMonitor.cpp +include/thrift/concurrency/StdMutex.cpp +include/thrift/concurrency/StdThreadFactory.cpp +include/thrift/concurrency/StdThreadFactory.h +include/thrift/concurrency/Thread.h +include/thrift/concurrency/ThreadManager.h +include/thrift/concurrency/TimerManager.h +include/thrift/concurrency/Util.h +include/thrift/config.h +include/thrift/cxxfunctional.h +include/thrift/processor/PeekProcessor.h +include/thrift/processor/StatsProcessor.h +include/thrift/processor/TMultiplexedProcessor.h +include/thrift/protocol/TBase64Utils.h +include/thrift/protocol/TBinaryProtocol.h +include/thrift/protocol/TBinaryProtocol.tcc +include/thrift/protocol/TCompactProtocol.h +include/thrift/protocol/TCompactProtocol.tcc +include/thrift/protocol/TDebugProtocol.h +include/thrift/protocol/TDenseProtocol.h +include/thrift/protocol/TJSONProtocol.h +include/thrift/protocol/TMultiplexedProtocol.h +include/thrift/protocol/TProtocol.h +include/thrift/protocol/TProtocolDecorator.h +include/thrift/protocol/TProtocolException.h +include/thrift/protocol/TProtocolTap.h +include/thrift/protocol/TVirtualProtocol.h +include/thrift/qt/TQIODeviceTransport.h +include/thrift/qt/TQTcpServer.h +include/thrift/server/TNonblockingServer.h +include/thrift/server/TServer.h +include/thrift/server/TSimpleServer.h +include/thrift/server/TThreadPoolServer.h +include/thrift/server/TThreadedServer.h +include/thrift/thrift-config.h +include/thrift/transport/PlatformSocket.h +include/thrift/transport/TBufferTransports.h +include/thrift/transport/TFDTransport.h +include/thrift/transport/TFileTransport.h +include/thrift/transport/THttpClient.h +include/thrift/transport/THttpServer.h +include/thrift/transport/THttpTransport.h +include/thrift/transport/TPipe.h +include/thrift/transport/TPipeServer.h +include/thrift/transport/TSSLServerSocket.h +include/thrift/transport/TSSLSocket.h +include/thrift/transport/TServerSocket.h +include/thrift/transport/TServerTransport.h +include/thrift/transport/TShortReadTransport.h +include/thrift/transport/TSimpleFileTransport.h +include/thrift/transport/TSocket.h +include/thrift/transport/TSocketPool.h +include/thrift/transport/TTransport.h +include/thrift/transport/TTransportException.h +include/thrift/transport/TTransportUtils.h +include/thrift/transport/TVirtualTransport.h +include/thrift/transport/TZlibTransport.h +lib/libthrift-0.9.1.so +lib/libthrift.a +lib/libthrift.la +lib/libthrift.so +lib/libthrift.so.0 +lib/libthriftnb-%%PORTVERSION%%.so +lib/libthriftnb.a +lib/libthriftnb.la +lib/libthriftnb.so +lib/libthriftnb.so.0 +%%QT4%%lib/libthriftqt-%%PORTVERSION%%.so +%%QT4%%lib/libthriftqt.a +%%QT4%%lib/libthriftqt.la +%%QT4%%lib/libthriftqt.so +%%QT4%%lib/libthriftqt.so.0 +lib/libthriftz-0.9.1.so +lib/libthriftz.a +lib/libthriftz.la +lib/libthriftz.so +lib/libthriftz.so.0 +libdata/pkgconfig/thrift-nb.pc +%%QT4%%libdata/pkgconfig/thrift-qt.pc +libdata/pkgconfig/thrift-z.pc +libdata/pkgconfig/thrift.pc +@dirrm include/thrift/transport +@dirrm include/thrift/server +@dirrm include/thrift/qt +@dirrm include/thrift/protocol +@dirrm include/thrift/processor +@dirrm include/thrift/concurrency +@dirrm include/thrift/async +@dirrm include/thrift
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311091511.rA9FBouq019524>