aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2009-07-04 23:41:58 +0000
committerBruce M Simpson <bms@FreeBSD.org>2009-07-04 23:41:58 +0000
commit81a45b0fc3f353f19ffa855f4fb8c5f148d14060 (patch)
treedb9b9c2df33bf651498c705d217760d5b1b497df /devel
parent9c4edbdec6aabb8b282d7eee3abccd4866352a5c (diff)
downloadports-81a45b0fc3f353f19ffa855f4fb8c5f148d14060.tar.gz
ports-81a45b0fc3f353f19ffa855f4fb8c5f148d14060.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/erlang-thrift/Makefile60
-rw-r--r--devel/erlang-thrift/pkg-descr3
-rw-r--r--devel/erlang-thrift/pkg-plist45
4 files changed, 109 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b14bf727df55..2f934a169fba 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -313,6 +313,7 @@
SUBDIR += eric
SUBDIR += eric4
SUBDIR += eris
+ SUBDIR += erlang-thrift
SUBDIR += error
SUBDIR += esdl
SUBDIR += esvn
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%%