aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-05-05 18:01:06 +0800
committerolgeni <olgeni@FreeBSD.org>2015-05-05 18:01:06 +0800
commite08cc63635bc49376d71507a6d8f10b0eeec93d4 (patch)
treeab547f637196ba8a3aba5853a9b554925addf8e5 /devel
parent2c6b875ba2c1c0f0fd06ed4b0294c8a01a694bf1 (diff)
downloadfreebsd-ports-gnome-e08cc63635bc49376d71507a6d8f10b0eeec93d4.tar.gz
freebsd-ports-gnome-e08cc63635bc49376d71507a6d8f10b0eeec93d4.tar.zst
freebsd-ports-gnome-e08cc63635bc49376d71507a6d8f10b0eeec93d4.zip
Add devel/erlang-msgpack, an Erlang library for MessagePack.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/erlang-msgpack/Makefile42
-rw-r--r--devel/erlang-msgpack/distinfo2
-rw-r--r--devel/erlang-msgpack/files/patch-src_msgpack.app.src13
-rw-r--r--devel/erlang-msgpack/pkg-descr3
-rw-r--r--devel/erlang-msgpack/pkg-plist16
6 files changed, 77 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3dd1b11d6167..8e3305f88fcb 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -407,6 +407,7 @@
SUBDIR += eric4
SUBDIR += eric6
SUBDIR += eris
+ SUBDIR += erlang-msgpack
SUBDIR += esdl
SUBDIR += etcd
SUBDIR += etcdctl
diff --git a/devel/erlang-msgpack/Makefile b/devel/erlang-msgpack/Makefile
new file mode 100644
index 000000000000..bd6574f53497
--- /dev/null
+++ b/devel/erlang-msgpack/Makefile
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME= msgpack-erlang
+PORTVERSION= 0.3.3
+CATEGORIES= devel
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= MessagePack (de)serializer for Erlang
+
+LICENSE= APACHE20
+
+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= msgpack
+GH_PROJECT= msgpack-erlang
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/msgpack.app.src
+
+do-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+.endif
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/include
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/include
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/devel/erlang-msgpack/distinfo b/devel/erlang-msgpack/distinfo
new file mode 100644
index 000000000000..f2c2803a9384
--- /dev/null
+++ b/devel/erlang-msgpack/distinfo
@@ -0,0 +1,2 @@
+SHA256 (msgpack-msgpack-erlang-0.3.3_GH0.tar.gz) = 4b1bfcab660e9b6e4a971adfc96f23540d6d1e1fb592233687689881c34bcb8f
+SIZE (msgpack-msgpack-erlang-0.3.3_GH0.tar.gz) = 166316
diff --git a/devel/erlang-msgpack/files/patch-src_msgpack.app.src b/devel/erlang-msgpack/files/patch-src_msgpack.app.src
new file mode 100644
index 000000000000..0d6331877173
--- /dev/null
+++ b/devel/erlang-msgpack/files/patch-src_msgpack.app.src
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/msgpack.app.src.orig
++++ src/msgpack.app.src
+@@ -1,6 +1,6 @@
+ {application, msgpack,
+ [{description, "MessagePack serializer/deserializer"},
+- {vsn, git},
++ {vsn, "%%PORTVERSION%%"},
+ {modules,
+ [msgpack]
+ },
diff --git a/devel/erlang-msgpack/pkg-descr b/devel/erlang-msgpack/pkg-descr
new file mode 100644
index 000000000000..fdd9c195c195
--- /dev/null
+++ b/devel/erlang-msgpack/pkg-descr
@@ -0,0 +1,3 @@
+MessagePack (de)serializer for Erlang.
+
+WWW: https://github.com/msgpack/msgpack-erlang
diff --git a/devel/erlang-msgpack/pkg-plist b/devel/erlang-msgpack/pkg-plist
new file mode 100644
index 000000000000..5dfe86f51860
--- /dev/null
+++ b/devel/erlang-msgpack/pkg-plist
@@ -0,0 +1,16 @@
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack.app
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack.beam
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack_ext.beam
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack_packer.beam
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack_term.beam
+lib/erlang/lib/msgpack-%%VERSION%%/ebin/msgpack_unpacker.beam
+lib/erlang/lib/msgpack-%%VERSION%%/include/msgpack.hrl
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack.app.src
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack.app.src.bak
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack.app.src.orig
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack.erl
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack_ext.erl
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack_packer.erl
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack_term.erl
+lib/erlang/lib/msgpack-%%VERSION%%/src/msgpack_unpacker.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.md