diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-07-14 11:22:59 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-07-14 11:22:59 +0000 |
commit | e503b5c471f3f7256f52626345746a8cc87ba14a (patch) | |
tree | 9a6af6c427ed6849fd13f68c09a1eb62c3565dcb /devel | |
parent | 24b086c99d8743f5220a6c2e4529a5fdd5a6b7f6 (diff) | |
download | ports-e503b5c471f3f7256f52626345746a8cc87ba14a.tar.gz ports-e503b5c471f3f7256f52626345746a8cc87ba14a.zip |
Add devel/elixir-exprotobuf, a protocol buffers library in Elixir.
This required r391982 to build.
Notes
Notes:
svn path=/head/; revision=391983
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/Makefile | 24 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/distinfo | 2 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/files/patch-lib_exprotobuf_field.ex | 12 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/files/patch-mix.exs | 12 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/pkg-descr | 6 | ||||
-rw-r--r-- | devel/elixir-exprotobuf/pkg-plist | 25 |
7 files changed, 82 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 8d7386504453..164faa092e81 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -419,6 +419,7 @@ SUBDIR += elixir-estree SUBDIR += elixir-exactor SUBDIR += elixir-exjsx + SUBDIR += elixir-exprotobuf SUBDIR += elixir-exrm SUBDIR += elixir-hex SUBDIR += elixir-inflex diff --git a/devel/elixir-exprotobuf/Makefile b/devel/elixir-exprotobuf/Makefile new file mode 100644 index 000000000000..e72e9eaf95bd --- /dev/null +++ b/devel/elixir-exprotobuf/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= exprotobuf +PORTVERSION= 0.10.0 +CATEGORIES= devel +PKGNAMEPREFIX= elixir- + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Protocol Buffers in Elixir + +LICENSE= APACHE20 + +USES= elixir +USE_GITHUB= yes +GH_ACCOUNT= bitwalker + +MIX_BUILD_DEPS= devel/erlang-gpb +MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} + +pre-build: + @${MKDIR} ${WRKSRC}/deps + ${LN} -s -f ${LOCALBASE}/lib/erlang/lib/gpb-* ${WRKSRC}/deps/gpb + +.include <bsd.port.mk> diff --git a/devel/elixir-exprotobuf/distinfo b/devel/elixir-exprotobuf/distinfo new file mode 100644 index 000000000000..f5817b0ca4e1 --- /dev/null +++ b/devel/elixir-exprotobuf/distinfo @@ -0,0 +1,2 @@ +SHA256 (bitwalker-exprotobuf-0.10.0_GH0.tar.gz) = a79ce10a8f984bf10bbd271342a98e6eda598aa89a746b1415ce5bfcfeb119ea +SIZE (bitwalker-exprotobuf-0.10.0_GH0.tar.gz) = 16178 diff --git a/devel/elixir-exprotobuf/files/patch-lib_exprotobuf_field.ex b/devel/elixir-exprotobuf/files/patch-lib_exprotobuf_field.ex new file mode 100644 index 000000000000..8316a775baac --- /dev/null +++ b/devel/elixir-exprotobuf/files/patch-lib_exprotobuf_field.ex @@ -0,0 +1,12 @@ +--- lib/exprotobuf/field.ex.orig 2015-07-14 11:06:48 UTC ++++ lib/exprotobuf/field.ex +@@ -1,6 +1,6 @@ + defmodule Protobuf.Field do +- @record Record.Extractor.extract(:"?gpb_field", from: Path.join([Mix.Project.deps_path, "gpb", "include", "gpb.hrl"])) ++ @record Record.Extractor.extract(:"field", from: Path.join([Mix.Project.deps_path, "gpb", "include", "gpb.hrl"])) + defstruct @record + + def record, do: @record +-end +\ No newline at end of file ++end diff --git a/devel/elixir-exprotobuf/files/patch-mix.exs b/devel/elixir-exprotobuf/files/patch-mix.exs new file mode 100644 index 000000000000..90295aaa6e64 --- /dev/null +++ b/devel/elixir-exprotobuf/files/patch-mix.exs @@ -0,0 +1,12 @@ +--- mix.exs.orig 2015-07-06 14:47:27 UTC ++++ mix.exs +@@ -6,8 +6,7 @@ defmodule Protobuf.Mixfile do + version: "0.10.0", + elixir: "~> 1.0.0", + description: description, +- package: package, +- deps: deps] ++ package: package] + end + + def application do diff --git a/devel/elixir-exprotobuf/pkg-descr b/devel/elixir-exprotobuf/pkg-descr new file mode 100644 index 000000000000..1ba4b688f949 --- /dev/null +++ b/devel/elixir-exprotobuf/pkg-descr @@ -0,0 +1,6 @@ +exprotobuf works by building module/struct definitions from a Google +Protocol Buffer schema. This allows you to work with protocol buffers +natively in Elixir, with easy decoding/encoding for transport across +the wire. + +WWW: https://github.com/bitwalker/exprotobuf diff --git a/devel/elixir-exprotobuf/pkg-plist b/devel/elixir-exprotobuf/pkg-plist new file mode 100644 index 000000000000..afab9c740d9e --- /dev/null +++ b/devel/elixir-exprotobuf/pkg-plist @@ -0,0 +1,25 @@ +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Builder.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Config.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.ConfigError.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Decoder.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.DefineEnum.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.DefineMessage.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Encoder.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Field.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Parser.ParserError.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Parser.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.Utils.beam +lib/elixir/lib/exprotobuf/ebin/Elixir.Protobuf.beam +lib/elixir/lib/exprotobuf/ebin/exprotobuf.app +lib/elixir/lib/exprotobuf/lib/exprotobuf.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/builder.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/config.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/decoder.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/define_enum.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/define_message.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/encoder.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/field.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/field.ex.orig +lib/elixir/lib/exprotobuf/lib/exprotobuf/parser.ex +lib/elixir/lib/exprotobuf/lib/exprotobuf/utils.ex +%%PORTDOCS%%%%DOCSDIR%%/README.md |