diff options
author | tonnerre <tonnerre> | 2010-05-01 02:49:10 +0000 |
---|---|---|
committer | tonnerre <tonnerre> | 2010-05-01 02:49:10 +0000 |
commit | eeaaae7813702f5f92bd4484ef8a8b19a5130ad1 (patch) | |
tree | b9dec4f7c2b773cb9c920ea58899a1afef954f48 /devel | |
parent | d829d984967c012dba7315656340b56efeb87137 (diff) | |
download | pkgsrc-eeaaae7813702f5f92bd4484ef8a8b19a5130ad1.tar.gz |
Import libthrift version 0.2.0.
Thrift is a software framework for scalable cross-language services
development. It combines a software stack with a code generation engine to
build services that work efficiently and seamlessly between C++, Java,
Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libthrift/DESCR | 4 | ||||
-rw-r--r-- | devel/libthrift/Makefile | 37 | ||||
-rw-r--r-- | devel/libthrift/PLIST | 64 | ||||
-rw-r--r-- | devel/libthrift/buildlink3.mk | 17 | ||||
-rw-r--r-- | devel/libthrift/distinfo | 5 | ||||
-rw-r--r-- | devel/libthrift/options.mk | 70 |
6 files changed, 197 insertions, 0 deletions
diff --git a/devel/libthrift/DESCR b/devel/libthrift/DESCR new file mode 100644 index 00000000000..28231a82d8a --- /dev/null +++ b/devel/libthrift/DESCR @@ -0,0 +1,4 @@ +Thrift is a software framework for scalable cross-language services +development. It combines a software stack with a code generation engine to +build services that work efficiently and seamlessly between C++, Java, +Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml. diff --git a/devel/libthrift/Makefile b/devel/libthrift/Makefile new file mode 100644 index 00000000000..4350f8be584 --- /dev/null +++ b/devel/libthrift/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $ + +DISTNAME= thrift-${THRIFT_VERSION}-incubating +PKGNAME= libthrift-${THRIFT_VERSION} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_APACHE:=incubator/thrift/${THRIFT_VERSION}-incubating/} + +MAINTAINER= tonnerre@NetBSD.org +HOMEPAGE= http://incubator.apache.org/thrift/ +COMMENT= Cross-language data serialization library + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_PKGLOCALEDIR= yes +USE_TOOLS+= gmake pkg-config +GNU_CONFIGURE= yes + +WRKSRC= ${WRKDIR}/thrift-${THRIFT_VERSION} +THRIFT_VERSION= 0.2.0 + +# FIXME: These should be options +CONFIGURE_ARGS+= --without-csharp +CONFIGURE_ARGS+= --without-java +CONFIGURE_ARGS+= --without-erlang +CONFIGURE_ARGS+= --without-py +CONFIGURE_ARGS+= --without-perl +CONFIGURE_ARGS+= --without-ruby + +.include "options.mk" + +.include "../../devel/zlib/buildlink3.mk" +.include "../../devel/libevent/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libthrift/PLIST b/devel/libthrift/PLIST new file mode 100644 index 00000000000..b6a2864a29a --- /dev/null +++ b/devel/libthrift/PLIST @@ -0,0 +1,64 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $ +bin/thrift +include/thrift/TLogging.h +include/thrift/TProcessor.h +include/thrift/TReflectionLocal.h +include/thrift/Thrift.h +include/thrift/concurrency/Exception.h +include/thrift/concurrency/FunctionRunner.h +include/thrift/concurrency/Monitor.h +include/thrift/concurrency/Mutex.h +include/thrift/concurrency/PosixThreadFactory.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/processor/PeekProcessor.h +include/thrift/processor/StatsProcessor.h +include/thrift/protocol/TBase64Utils.h +include/thrift/protocol/TBinaryProtocol.h +include/thrift/protocol/TCompactProtocol.h +include/thrift/protocol/TDebugProtocol.h +include/thrift/protocol/TDenseProtocol.h +include/thrift/protocol/TJSONProtocol.h +include/thrift/protocol/TOneWayProtocol.h +include/thrift/protocol/TProtocol.h +include/thrift/protocol/TProtocolException.h +include/thrift/protocol/TProtocolTap.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/transport/TBufferTransports.h +include/thrift/transport/TFDTransport.h +include/thrift/transport/TFileTransport.h +include/thrift/transport/THttpClient.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/TZlibTransport.h +lib/libthrift.la +lib/libthriftnb.la +lib/libthriftz.la +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/BinaryProtocol.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/BufferedTransport.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/FramedTransport.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/HttpClient.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/MemoryBuffer.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/Protocol.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/Server.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/Socket.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/Thrift/Transport.pm +${PLIST.perl}lib/perl5/site_perl/5.10.0/x86_64-netbsd-thread-multi/auto/Thrift/.packlist +lib/pkgconfig/thrift-nb.pc +lib/pkgconfig/thrift-z.pc +lib/pkgconfig/thrift.pc diff --git a/devel/libthrift/buildlink3.mk b/devel/libthrift/buildlink3.mk new file mode 100644 index 00000000000..bdbfad61444 --- /dev/null +++ b/devel/libthrift/buildlink3.mk @@ -0,0 +1,17 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $ + +BUILDLINK_TREE+= libthrift + +.if !defined(LIBTHRIFT_BUILDLINK3_MK) +LIBTHRIFT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libthrift+= libthrift>=0.2.0 +BUILDLINK_ABI_DEPENDS.libthrift+= libthrift>=0.2.0 +BUILDLINK_PKGSRCDIR.libthrift?= ../../devel/libthrift + +.include "../../devel/zlib/buildlink3.mk" +.include "../../devel/libevent/buildlink3.mk" + +.endif # LIBTHRIFT_BUILDLINK3_MK + +BUILDLINK_TREE+= -libthrift diff --git a/devel/libthrift/distinfo b/devel/libthrift/distinfo new file mode 100644 index 00000000000..1fc9363f768 --- /dev/null +++ b/devel/libthrift/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $ + +SHA1 (thrift-0.2.0-incubating.tar.gz) = 1f622daab73043b253e416ff8afbf5a459d3ab48 +RMD160 (thrift-0.2.0-incubating.tar.gz) = 235a3bbaccd6cf221a32af5905b7d102907881f8 +Size (thrift-0.2.0-incubating.tar.gz) = 1514845 bytes diff --git a/devel/libthrift/options.mk b/devel/libthrift/options.mk new file mode 100644 index 00000000000..09cc056021b --- /dev/null +++ b/devel/libthrift/options.mk @@ -0,0 +1,70 @@ +# $NetBSD: options.mk,v 1.1.1.1 2010/05/01 02:49:10 tonnerre Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift +PKG_SUPPORTED_OPTIONS= csharp java erlang python perl ruby + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= perl + +.if !empty(PKG_OPTIONS:Mcsharp) +CONFIGURE_ARGS+= --with-csharp +CONFIGURE_ARGS+= --enable-gen-csharp + +.include "../../lang/mono/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-csharp +CONFIGURE_ARGS+= --disable-gen-csharp +.endif + +.if !empty(PKG_OPTIONS:Mjava) +CONFIGURE_ARGS+= --with-java +CONFIGURE_ARGS+= --enable-gen-java + +.include "../../lang/openjdk7/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-java +CONFIGURE_ARGS+= --disable-gen-java +.endif + +.if !empty(PKG_OPTIONS:Merlang) +CONFIGURE_ARGS+= --with-erlang +CONFIGURE_ARGS+= --enable-gen-erl + +.include "../../lang/erlang/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-erlang +CONFIGURE_ARGS+= --disable-gen-erl +.endif + +.if !empty(PKG_OPTIONS:Mpython) +CONFIGURE_ARGS+= --with-py +CONFIGURE_ARGS+= --enable-gen-py + +.include "../../lang/python/extension.mk" +.else +CONFIGURE_ARGS+= --without-py +CONFIGURE_ARGS+= --disable-gen-py +.endif + +.if !empty(PKG_OPTIONS:Mperl) +CONFIGURE_ARGS+= --with-perl +CONFIGURE_ARGS+= --enable-gen-perl +USE_TOOLS+= perl +PLIST.perl= yes + +.include "../../lang/perl5/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-perl +CONFIGURE_ARGS+= --disable-gen-perl +.endif + +.if !empty(PKG_OPTIONS:Mruby) +CONFIGURE_ARGS+= --with-ruby +CONFIGURE_ARGS+= --enable-gen-rb + +.include "../../lang/ruby/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-ruby +CONFIGURE_ARGS+= --disable-gen-rb +.endif |