aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2016-07-11 14:06:44 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2016-07-11 14:06:44 +0000
commitd13509d00572e282306856098c3e5f3379bf89e7 (patch)
tree415063e4822df5c005982e6d6e9ce55a4f93b781
parentf2b8288ef29c39d9cb829fc56c9de6d93a6ad601 (diff)
downloadports-d13509d00572e282306856098c3e5f3379bf89e7.tar.gz
ports-d13509d00572e282306856098c3e5f3379bf89e7.zip
Add databases/erlang-couchbeam, Barrel and Apache CouchDB client
library for Erlang.
Notes
Notes: svn path=/head/; revision=418385
-rw-r--r--databases/Makefile1
-rw-r--r--databases/erlang-couchbeam/Makefile21
-rw-r--r--databases/erlang-couchbeam/distinfo3
-rw-r--r--databases/erlang-couchbeam/files/patch-rebar.config11
-rw-r--r--databases/erlang-couchbeam/files/patch-rebar.config.script14
-rw-r--r--databases/erlang-couchbeam/pkg-descr3
-rw-r--r--databases/erlang-couchbeam/pkg-plist36
7 files changed, 89 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index d2ddb545fea8..e8127f695267 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -64,6 +64,7 @@
SUBDIR += elixir-postgrex
SUBDIR += elixir-timex_ecto
SUBDIR += emma
+ SUBDIR += erlang-couchbeam
SUBDIR += erlang-epgsql
SUBDIR += erlang-eredis
SUBDIR += evolution-data-server
diff --git a/databases/erlang-couchbeam/Makefile b/databases/erlang-couchbeam/Makefile
new file mode 100644
index 000000000000..6936148fd4f3
--- /dev/null
+++ b/databases/erlang-couchbeam/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME= couchbeam
+PORTVERSION= 1.3.1
+CATEGORIES= databases
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Apache CouchDB client in Erlang
+
+LICENSE= MIT
+
+USES= erlang:rebar
+USE_GITHUB= yes
+GH_ACCOUNT= benoitc
+
+ERL_BUILD_DEPS= devel/erlang-jsx \
+ www/erlang-hackney
+ERL_RUN_DEPS:= ${ERL_BUILD_DEPS}
+
+.include <bsd.port.mk>
diff --git a/databases/erlang-couchbeam/distinfo b/databases/erlang-couchbeam/distinfo
new file mode 100644
index 000000000000..af2d84b0eecb
--- /dev/null
+++ b/databases/erlang-couchbeam/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1468242792
+SHA256 (benoitc-couchbeam-1.3.1_GH0.tar.gz) = 33f694d3c28025a5e7f2367b802405fbfb620e83dd24db59c993f873cf6e2c34
+SIZE (benoitc-couchbeam-1.3.1_GH0.tar.gz) = 1110729
diff --git a/databases/erlang-couchbeam/files/patch-rebar.config b/databases/erlang-couchbeam/files/patch-rebar.config
new file mode 100644
index 000000000000..1ca7316bfe8c
--- /dev/null
+++ b/databases/erlang-couchbeam/files/patch-rebar.config
@@ -0,0 +1,11 @@
+--- rebar.config.orig 2016-07-01 12:20:31 UTC
++++ rebar.config
+@@ -3,8 +3,6 @@
+ {erl_opts, [debug_info]}.
+
+ {deps, [
+- {jsx, "2.8.0"},
+- {hackney, "1.6.0"}
+ ]}.
+
+
diff --git a/databases/erlang-couchbeam/files/patch-rebar.config.script b/databases/erlang-couchbeam/files/patch-rebar.config.script
new file mode 100644
index 000000000000..d31ed44f81e1
--- /dev/null
+++ b/databases/erlang-couchbeam/files/patch-rebar.config.script
@@ -0,0 +1,14 @@
+--- rebar.config.script.orig 2016-07-11 13:29:03 UTC
++++ rebar.config.script
+@@ -1,11 +1,6 @@
+ IsRebar3 = erlang:function_exported(rebar3, main, 1),
+
+ Rebar2Deps = [
+- {jsx, ".*", {git, "https://github.com/talentdeficit/jsx.git",
+- {tag,"2.8.0"}}},
+-
+- {hackney, ".*", {git, "https://github.com/benoitc/hackney.git",
+- {tag, "1.4.4"}}}
+ ],
+
+ case IsRebar3 of
diff --git a/databases/erlang-couchbeam/pkg-descr b/databases/erlang-couchbeam/pkg-descr
new file mode 100644
index 000000000000..198ed562dcb2
--- /dev/null
+++ b/databases/erlang-couchbeam/pkg-descr
@@ -0,0 +1,3 @@
+Simple Barrel and Apache CouchDB client library for Erlang applications.
+
+WWW: https://github.com/benoitc/couchbeam
diff --git a/databases/erlang-couchbeam/pkg-plist b/databases/erlang-couchbeam/pkg-plist
new file mode 100644
index 000000000000..d937a4817504
--- /dev/null
+++ b/databases/erlang-couchbeam/pkg-plist
@@ -0,0 +1,36 @@
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam.app
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_app.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_attachments.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_changes.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_changes_stream.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_changes_sup.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_doc.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_ejson.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_httpc.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_sup.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_util.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_uuids.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_view.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_view_stream.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/couchbeam_view_sup.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/ebin/gen_changes.beam
+lib/erlang/lib/couchbeam-%%VERSION%%/include/couchbeam.hrl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam.app.src
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_app.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_attachments.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_changes.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_changes_stream.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_changes_sup.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_doc.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_ejson.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_httpc.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_sup.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_util.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_uuids.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_view.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_view_stream.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/couchbeam_view_sup.erl
+lib/erlang/lib/couchbeam-%%VERSION%%/src/gen_changes.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.md