svn commit: r385459 - in head/devel: . erlang-protobuffs erlang-protobuffs/files
Jimmy Olgeni
olgeni at FreeBSD.org
Tue May 5 10:34:00 UTC 2015
Author: olgeni
Date: Tue May 5 10:33:57 2015
New Revision: 385459
URL: https://svnweb.freebsd.org/changeset/ports/385459
Log:
Add devel/erlang-protobuffs, a protocol buffers interface for Erlang.
Added:
head/devel/erlang-protobuffs/
head/devel/erlang-protobuffs/Makefile (contents, props changed)
head/devel/erlang-protobuffs/distinfo (contents, props changed)
head/devel/erlang-protobuffs/files/
head/devel/erlang-protobuffs/files/patch-rebar.config (contents, props changed)
head/devel/erlang-protobuffs/files/patch-src_protobuffs.app.src (contents, props changed)
head/devel/erlang-protobuffs/pkg-descr (contents, props changed)
head/devel/erlang-protobuffs/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue May 5 10:28:52 2015 (r385458)
+++ head/devel/Makefile Tue May 5 10:33:57 2015 (r385459)
@@ -408,6 +408,7 @@
SUBDIR += eric6
SUBDIR += eris
SUBDIR += erlang-msgpack
+ SUBDIR += erlang-protobuffs
SUBDIR += esdl
SUBDIR += etcd
SUBDIR += etcdctl
Added: head/devel/erlang-protobuffs/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/Makefile Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= protobuffs
+PORTVERSION= 0.8.1p5
+CATEGORIES= devel
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni at 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>
Added: head/devel/erlang-protobuffs/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/distinfo Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,2 @@
+SHA256 (basho-erlang_protobuffs-0.8.1p5_GH0.tar.gz) = da82e70e7e725b0a2c5794e7fd39ddbb014012bc1ec2846574fe0ffc442e8fa8
+SIZE (basho-erlang_protobuffs-0.8.1p5_GH0.tar.gz) = 132265
Added: head/devel/erlang-protobuffs/files/patch-rebar.config
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/files/patch-rebar.config Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,13 @@
+
+$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"]}.
Added: head/devel/erlang-protobuffs/files/patch-src_protobuffs.app.src
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/files/patch-src_protobuffs.app.src Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,13 @@
+
+$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, [] }
Added: head/devel/erlang-protobuffs/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/pkg-descr Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,3 @@
+Protocol Buffers interface for Erlang.
+
+WWW: https://github.com/basho/erlang_protobuffs
Added: head/devel/erlang-protobuffs/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/erlang-protobuffs/pkg-plist Tue May 5 10:33:57 2015 (r385459)
@@ -0,0 +1,18 @@
+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
More information about the svn-ports-all
mailing list