Commit 1d3d62bb authored by olgeni's avatar olgeni
Browse files

Add devel/erlang-protobuffs, a protocol buffers interface for Erlang.

parent 70681193
......@@ -408,6 +408,7 @@
SUBDIR += eric6
SUBDIR += eris
SUBDIR += erlang-msgpack
SUBDIR += erlang-protobuffs
SUBDIR += esdl
SUBDIR += etcd
SUBDIR += etcdctl
......
# $FreeBSD$
PORTNAME= protobuffs
PORTVERSION= 0.8.1p5
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Protocol Buffers interface for Erlang
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
rebar:${PORTSDIR}/devel/rebar
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= basho
GH_PROJECT= erlang_protobuffs
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/protobuffs.app.src
@${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
.include <bsd.port.mk>
SHA256 (basho-erlang_protobuffs-0.8.1p5_GH0.tar.gz) = da82e70e7e725b0a2c5794e7fd39ddbb014012bc1ec2846574fe0ffc442e8fa8
SIZE (basho-erlang_protobuffs-0.8.1p5_GH0.tar.gz) = 132265
$FreeBSD$
--- rebar.config.orig
+++ rebar.config
@@ -1,7 +1,6 @@
{erl_opts, [debug_info]}.
{deps,[
- {meck, "0.8.2", {git, "git://github.com/basho/meck.git", {tag, "0.8.2"}}}
]}.
{clean_files, ["*~","**/*~","**/*.beam","logs/*","test/Emakefile"]}.
$FreeBSD$
--- src/protobuffs.app.src.orig
+++ src/protobuffs.app.src
@@ -1,6 +1,6 @@
{ application, protobuffs,
[ { description, "Google protobuffs implementation for Erlang." },
- { vsn, git },
+ { vsn, "%%PORTVERSION%%" },
{ registered, [] },
{ applications, [kernel,stdlib] },
{ env, [] }
Protocol Buffers interface for Erlang.
WWW: https://github.com/basho/erlang_protobuffs
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/pokemon_pb.beam
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs.app
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs.beam
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs_compile.beam
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs_file.beam
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs_parser.beam
lib/erlang/lib/protobuffs-%%VERSION%%/ebin/protobuffs_scanner.beam
lib/erlang/lib/protobuffs-%%VERSION%%/src/overview.edoc
lib/erlang/lib/protobuffs-%%VERSION%%/src/pokemon_pb.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs.app.src
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_compile.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_file.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_parser.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_parser.yrl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_scanner.erl
lib/erlang/lib/protobuffs-%%VERSION%%/src/protobuffs_scanner.xrl
%%PORTDOCS%%%%DOCSDIR%%/README.markdown
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment