aboutsummaryrefslogtreecommitdiffstats
path: root/devel/erlang-thrift
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2009-07-05 07:41:58 +0800
committerbms <bms@FreeBSD.org>2009-07-05 07:41:58 +0800
commit7076e3ebda33a3cf6d05a1ca23aee5e3596b8991 (patch)
treef9215e727459ba8ec5cb5d1f58eef4817ff871fe /devel/erlang-thrift
parentbff3bb30e97bfbd8d06bd8fdc2b86649dc349e78 (diff)
downloadfreebsd-ports-gnome-7076e3ebda33a3cf6d05a1ca23aee5e3596b8991.tar.gz
freebsd-ports-gnome-7076e3ebda33a3cf6d05a1ca23aee5e3596b8991.tar.zst
freebsd-ports-gnome-7076e3ebda33a3cf6d05a1ca23aee5e3596b8991.zip
Add Erlang bindings for Thrift.
Diffstat (limited to 'devel/erlang-thrift')
-rw-r--r--devel/erlang-thrift/Makefile60
-rw-r--r--devel/erlang-thrift/pkg-descr3
-rw-r--r--devel/erlang-thrift/pkg-plist45
3 files changed, 108 insertions, 0 deletions
diff --git a/devel/erlang-thrift/Makefile b/devel/erlang-thrift/Makefile
new file mode 100644
index 000000000000..58c7dc976c64
--- /dev/null
+++ b/devel/erlang-thrift/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: thrift
+# Date created: 5 July 2009
+# Whom: Bruce Simpson
+#
+# $FreeBSD$
+#
+
+PORTNAME= thrift
+PORTVERSION= 20090622
+CATEGORIES= devel
+PKGNAMEPREFIX= erlang-
+DISTFILES=
+
+MAINTAINER= bms@FreeBSD.org
+COMMENT= Erlang interface to Thrift
+
+RUN_DEPENDS= erlc:${PORTSDIR}/lang/erlang
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/thrift:extract \
+ erlc:${PORTSDIR}/lang/erlang
+
+USE_GMAKE= yes
+
+ERLC?= erlc
+ERLANGDIR?= ${PREFIX}/lib/erlang/lib
+
+MAKE_ARGS+= ERLC=${ERLC}
+
+PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \
+ ERLANGDIR=${ERLANGDIR:S/^${PREFIX}\///}
+
+.include <bsd.port.pre.mk>
+
+post-extract:
+ @${LN} -sfh \
+ `cd ${PORTSDIR}/devel/thrift && ${MAKE} -V WRKSRC`/lib/erl ${WRKSRC}
+
+do-patch:
+ ${REINPLACE_CMD} '/^ERLC = / s/erlc/${ERLC}/' \
+ ${WRKSRC}/build/buildtargets.mk
+ ${REINPLACE_CMD} "/^THRIFT_VSN=/s/0\.1/${PORTVERSION}/" \
+ ${WRKSRC}/vsn.mk
+
+# Gnarly and ripped off from erlang-mysql; no bsd.erlang.mk yet.
+do-install:
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include
+ @(cd ${WRKSRC} && \
+ ${INSTALL_DATA} src/*.erl \
+ ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src && \
+ ${INSTALL_DATA} src/*.src \
+ ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src && \
+ ${INSTALL_DATA} ebin/*.app \
+ ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin && \
+ ${INSTALL_DATA} ebin/*.beam \
+ ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin && \
+ ${INSTALL_DATA} include/*.hrl \
+ ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include)
+
+.include <bsd.port.post.mk>
diff --git a/devel/erlang-thrift/pkg-descr b/devel/erlang-thrift/pkg-descr
new file mode 100644
index 000000000000..2e3dba164374
--- /dev/null
+++ b/devel/erlang-thrift/pkg-descr
@@ -0,0 +1,3 @@
+Erlang interface to Thrift.
+
+WWW: http://incubator.apache.org/thrift/
diff --git a/devel/erlang-thrift/pkg-plist b/devel/erlang-thrift/pkg-plist
new file mode 100644
index 000000000000..b9e2aeefe29c
--- /dev/null
+++ b/devel/erlang-thrift/pkg-plist
@@ -0,0 +1,45 @@
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/test_handler.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/test_service.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift.app
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_base64_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_binary_protocol.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_buffered_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_client.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_disk_log_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_file_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_framed_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_http_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_memory_buffer.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_processor.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_protocol.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_server.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_service.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_socket_server.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_socket_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/thrift_transport.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include/thrift_constants.hrl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include/thrift_protocol.hrl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/test_handler.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/test_service.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift.app.src
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift.appup.src
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_base64_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_binary_protocol.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_buffered_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_client.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_disk_log_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_file_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_framed_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_http_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_memory_buffer.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_processor.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_protocol.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_server.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_service.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_socket_server.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_socket_transport.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/thrift_transport.erl
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%