aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-12-15 01:12:08 +0800
committermiwi <miwi@FreeBSD.org>2007-12-15 01:12:08 +0800
commitdca77fc1d0c2270367e0c4e6ad814c85c80df50e (patch)
tree9343d314100810558b2a59e56f6b16007b0450a5
parent6520ff9189cdf357b5b25c70baedc5caac352de3 (diff)
downloadfreebsd-ports-gnome-dca77fc1d0c2270367e0c4e6ad814c85c80df50e.tar.gz
freebsd-ports-gnome-dca77fc1d0c2270367e0c4e6ad814c85c80df50e.tar.zst
freebsd-ports-gnome-dca77fc1d0c2270367e0c4e6ad814c85c80df50e.zip
Python interface to Thrift.
WWW: http://developers.facebook.com/thrift/ PR: ports/118366 Submitted by: Jon M. Dugan <jdugan at x1024.net>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-thrift/Makefile26
-rw-r--r--devel/py-thrift/files/patch-lib-py-setup.py21
-rw-r--r--devel/py-thrift/pkg-descr3
-rw-r--r--devel/py-thrift/pkg-plist55
5 files changed, 106 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index e19bca52f4ca..448d88105c13 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2000,6 +2000,7 @@
SUBDIR += py-tconfpy
SUBDIR += py-testgears
SUBDIR += py-testoob
+ SUBDIR += py-thrift
SUBDIR += py-trace2html
SUBDIR += py-turbocheetah
SUBDIR += py-turbojson
diff --git a/devel/py-thrift/Makefile b/devel/py-thrift/Makefile
new file mode 100644
index 000000000000..3db4d9e52e14
--- /dev/null
+++ b/devel/py-thrift/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: thrift
+# Date created: 30 Nov 2007
+# Whom: Jon M. Dugan <jdugan@x1024.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= thrift
+PORTVERSION= 20070917
+CATEGORIES= devel
+PKGNAMEPREFIX= py-
+DISTFILES=
+
+MAINTAINER= jdugan@x1024.net
+COMMENT= Python interface to Thrift
+
+EXTRACT_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/thrift:extract
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+post-extract:
+ @${LN} -sfh \
+ `cd ${PORTSDIR}/devel/thrift && ${MAKE} -V WRKSRC`/lib/py ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/devel/py-thrift/files/patch-lib-py-setup.py b/devel/py-thrift/files/patch-lib-py-setup.py
new file mode 100644
index 000000000000..3d130b1e987c
--- /dev/null
+++ b/devel/py-thrift/files/patch-lib-py-setup.py
@@ -0,0 +1,21 @@
+*** setup.py.orig Wed Dec 12 16:38:52 2007
+--- setup.py Wed Dec 12 16:39:23 2007
+***************
+*** 12,19 ****
+ sources = ['src/protocol/fastbinary.c'],
+ )
+
+! setup(name = 'Thrift',
+! version = '1.0',
+ description = 'Thrift Python Libraries',
+ author = ['Mark Slee'],
+ author_email = ['mcslee@facebook.com'],
+--- 12,19 ----
+ sources = ['src/protocol/fastbinary.c'],
+ )
+
+! setup(name = 'thrift',
+! version = '20070917',
+ description = 'Thrift Python Libraries',
+ author = ['Mark Slee'],
+ author_email = ['mcslee@facebook.com'],
diff --git a/devel/py-thrift/pkg-descr b/devel/py-thrift/pkg-descr
new file mode 100644
index 000000000000..6fac38f12742
--- /dev/null
+++ b/devel/py-thrift/pkg-descr
@@ -0,0 +1,3 @@
+Python interface to Thrift.
+
+WWW: http://developers.facebook.com/thrift/
diff --git a/devel/py-thrift/pkg-plist b/devel/py-thrift/pkg-plist
new file mode 100644
index 000000000000..ceea85c53832
--- /dev/null
+++ b/devel/py-thrift/pkg-plist
@@ -0,0 +1,55 @@
+%%PYTHON_SITELIBDIR%%/thrift/TSCons.py
+%%PYTHON_SITELIBDIR%%/thrift/TSCons.pyc
+%%PYTHON_SITELIBDIR%%/thrift/TSCons.pyo
+%%PYTHON_SITELIBDIR%%/thrift/Thrift.py
+%%PYTHON_SITELIBDIR%%/thrift/Thrift.pyc
+%%PYTHON_SITELIBDIR%%/thrift/Thrift.pyo
+%%PYTHON_SITELIBDIR%%/thrift/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/__init__.pyo
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TBinaryProtocol.py
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TBinaryProtocol.pyc
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TBinaryProtocol.pyo
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TProtocol.py
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TProtocol.pyc
+%%PYTHON_SITELIBDIR%%/thrift/protocol/TProtocol.pyo
+%%PYTHON_SITELIBDIR%%/thrift/protocol/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/protocol/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/protocol/__init__.pyo
+%%PYTHON_SITELIBDIR%%/thrift/protocol/fastbinary.so
+%%PYTHON_SITELIBDIR%%/thrift/reflection/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/reflection/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/reflection/__init__.pyo
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/__init__.pyo
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/constants.py
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/constants.pyc
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/constants.pyo
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/ttypes.py
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/ttypes.pyc
+%%PYTHON_SITELIBDIR%%/thrift/reflection/limited/ttypes.pyo
+%%PYTHON_SITELIBDIR%%/thrift/server/TServer.py
+%%PYTHON_SITELIBDIR%%/thrift/server/TServer.pyc
+%%PYTHON_SITELIBDIR%%/thrift/server/TServer.pyo
+%%PYTHON_SITELIBDIR%%/thrift/server/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/server/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/server/__init__.pyo
+%%PYTHON_SITELIBDIR%%/thrift/transport/THttpClient.py
+%%PYTHON_SITELIBDIR%%/thrift/transport/THttpClient.pyc
+%%PYTHON_SITELIBDIR%%/thrift/transport/THttpClient.pyo
+%%PYTHON_SITELIBDIR%%/thrift/transport/TSocket.py
+%%PYTHON_SITELIBDIR%%/thrift/transport/TSocket.pyc
+%%PYTHON_SITELIBDIR%%/thrift/transport/TSocket.pyo
+%%PYTHON_SITELIBDIR%%/thrift/transport/TTransport.py
+%%PYTHON_SITELIBDIR%%/thrift/transport/TTransport.pyc
+%%PYTHON_SITELIBDIR%%/thrift/transport/TTransport.pyo
+%%PYTHON_SITELIBDIR%%/thrift/transport/__init__.py
+%%PYTHON_SITELIBDIR%%/thrift/transport/__init__.pyc
+%%PYTHON_SITELIBDIR%%/thrift/transport/__init__.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/thrift/transport
+@dirrm %%PYTHON_SITELIBDIR%%/thrift/server
+@dirrm %%PYTHON_SITELIBDIR%%/thrift/reflection/limited
+@dirrm %%PYTHON_SITELIBDIR%%/thrift/reflection
+@dirrm %%PYTHON_SITELIBDIR%%/thrift/protocol
+@dirrm %%PYTHON_SITELIBDIR%%/thrift