Index: head/databases/Makefile =================================================================== --- head/databases/Makefile +++ head/databases/Makefile @@ -71,6 +71,7 @@ SUBDIR += erlang-couchbeam SUBDIR += erlang-epgsql SUBDIR += erlang-eredis + SUBDIR += erlfdb SUBDIR += evolution-data-server SUBDIR += fastdb SUBDIR += firebird25-client Index: head/databases/erlfdb/Makefile =================================================================== --- head/databases/erlfdb/Makefile +++ head/databases/erlfdb/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= erlfdb +PORTVERSION= 0.0.0 +CATEGORIES= databases + +MAINTAINER= dch@FreeBSD.org +COMMENT= FoundationDB client in Erlang + +LICENSE= APACHE20 + +LIB_DEPENDS= libfdb_c.so:databases/foundationdb-devel +RUN_DEPENDS= erlang-runtime21>=0:lang/erlang-runtime21 + +USES= erlang:rebar +USE_GITHUB= yes +GH_ACCOUNT= cloudant-labs +GH_PROJECT= couchdb-${PORTNAME} +GH_TAGNAME= c89b2d6 + +MAKE_ENV= PATH=${LOCALBASE}/lib/erlang21/bin:${PATH} + +post-install: + @${FIND} -E ${STAGEDIR} -type f -name *.so \ + -exec ${STRIP_CMD} {} + + +.include Index: head/databases/erlfdb/distinfo =================================================================== --- head/databases/erlfdb/distinfo +++ head/databases/erlfdb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1579559156 +SHA256 (cloudant-labs-couchdb-erlfdb-0.0.0-c89b2d6_GH0.tar.gz) = e81a9e686060f9c0e638e623e3c2d5efd9451be9b6c54948745d83a6998e1dbd +SIZE (cloudant-labs-couchdb-erlfdb-0.0.0-c89b2d6_GH0.tar.gz) = 68922 Index: head/databases/erlfdb/files/patch-rebar.config =================================================================== --- head/databases/erlfdb/files/patch-rebar.config +++ head/databases/erlfdb/files/patch-rebar.config @@ -0,0 +1,18 @@ +--- rebar.config.orig 2020-01-20 22:26:46 UTC ++++ rebar.config +@@ -6,12 +6,12 @@ + + {port_env, [ + {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", +- "CFLAGS", "$CFLAGS -Ic_src/ -g -Wall -Werror"}, ++ "CFLAGS", "$CFLAGS -Ic_src/ -I /usr/local/include -g -Wall -Werror"}, + {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", +- "CXXFLAGS", "$CXXFLAGS -Ic_src/ -g -Wall -Werror"}, ++ "CXXFLAGS", "$CXXFLAGS -Ic_src/ -I /usr/local/include -g -Wall -Werror"}, + + {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", +- "LDFLAGS", "$LDFLAGS -lfdb_c"} ++ "LDFLAGS", "$LDFLAGS -lfdb_c -L /usr/local/lib"} + ]}. + + {eunit_opts, [ Index: head/databases/erlfdb/files/patch-src_erlfdb__util.erl =================================================================== --- head/databases/erlfdb/files/patch-src_erlfdb__util.erl +++ head/databases/erlfdb/files/patch-src_erlfdb__util.erl @@ -0,0 +1,10 @@ +--- src/erlfdb_util.erl.orig 2020-01-20 22:27:20 UTC ++++ src/erlfdb_util.erl +@@ -177,6 +177,7 @@ find_fdbserver_bin(Options) -> + undefined -> + [ + <<"/usr/sbin/fdbserver">>, ++ <<"/usr/local/bin/fdbserver">>, + <<"/usr/local/sbin/fdbserver">>, + <<"/usr/local/libexec/fdbserver">> + ]; Index: head/databases/erlfdb/pkg-descr =================================================================== --- head/databases/erlfdb/pkg-descr +++ head/databases/erlfdb/pkg-descr @@ -0,0 +1,5 @@ +FoundationDB native Erlang bindings, a NIF wrapper for the FoundationDB +C API, this project also provides a conforming implementation of the +Tuple and Directory layers. + +WWW: https://github.com/cloudant-labs/couchdb-erlfdb Index: head/databases/erlfdb/pkg-plist =================================================================== --- head/databases/erlfdb/pkg-plist +++ head/databases/erlfdb/pkg-plist @@ -0,0 +1,23 @@ +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb.app +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_directory.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_float.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_hca.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_key.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_nif.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_subspace.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_tuple.beam +lib/erlang/lib/erlfdb-%%VERSION%%/ebin/erlfdb_util.beam +lib/erlang/lib/erlfdb-%%VERSION%%/include/erlfdb.hrl +lib/erlang/lib/erlfdb-%%VERSION%%/priv/erlfdb_nif.so +lib/erlang/lib/erlfdb-%%VERSION%%/priv/monitor.py +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb.app.src +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_directory.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_float.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_hca.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_key.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_nif.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_subspace.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_tuple.erl +lib/erlang/lib/erlfdb-%%VERSION%%/src/erlfdb_util.erl