aboutsummaryrefslogtreecommitdiffstats
path: root/devel/meck
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2013-05-22 04:58:07 +0800
committerolgeni <olgeni@FreeBSD.org>2013-05-22 04:58:07 +0800
commitae588ef816713c8aa918a602b6df0056b840665c (patch)
treeb9cf6adc6011c7ab8f466e79e71185ec98c5680c /devel/meck
parent8acc9d265033fec4d8dfbc6ab598274034610ffe (diff)
downloadfreebsd-ports-gnome-ae588ef816713c8aa918a602b6df0056b840665c.tar.gz
freebsd-ports-gnome-ae588ef816713c8aa918a602b6df0056b840665c.tar.zst
freebsd-ports-gnome-ae588ef816713c8aa918a602b6df0056b840665c.zip
Add devel/meck, a library to create mock modules in Erlang.
Diffstat (limited to 'devel/meck')
-rw-r--r--devel/meck/Makefile40
-rw-r--r--devel/meck/distinfo2
-rw-r--r--devel/meck/pkg-descr5
-rw-r--r--devel/meck/pkg-plist12
4 files changed, 59 insertions, 0 deletions
diff --git a/devel/meck/Makefile b/devel/meck/Makefile
new file mode 100644
index 000000000000..380d347cb50a
--- /dev/null
+++ b/devel/meck/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= meck
+PORTVERSION= 0.7.2
+CATEGORIES= devel
+MASTER_SITES= GH
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Erlang library for building mock modules
+
+LICENSE= AL2
+
+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= eproxus
+GH_PROJECT= meck
+GH_COMMIT= 37715e6
+GH_TAGNAME= ${PORTVERSION}
+
+PORTDOCS= *
+
+.include <bsd.port.options.mk>
+
+do-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
+.endif
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/ebin
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/src
+ @${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/ebin
+ @${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/meck-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/devel/meck/distinfo b/devel/meck/distinfo
new file mode 100644
index 000000000000..16c5088170d2
--- /dev/null
+++ b/devel/meck/distinfo
@@ -0,0 +1,2 @@
+SHA256 (meck-0.7.2.tar.gz) = 324744d579984ac14c82ffe2e0d70cdb78d79a83d38d1f5fa0f9956d3f48df28
+SIZE (meck-0.7.2.tar.gz) = 23455
diff --git a/devel/meck/pkg-descr b/devel/meck/pkg-descr
new file mode 100644
index 000000000000..a0d433cedf81
--- /dev/null
+++ b/devel/meck/pkg-descr
@@ -0,0 +1,5 @@
+With meck you can easily mock modules in Erlang. You can also perform some
+basic validations on the mocked modules, such as making sure no unexpected
+exceptions occurred or looking at the call history.
+
+WWW: https://github.com/eproxus/meck
diff --git a/devel/meck/pkg-plist b/devel/meck/pkg-plist
new file mode 100644
index 000000000000..7a7fed0ad3a1
--- /dev/null
+++ b/devel/meck/pkg-plist
@@ -0,0 +1,12 @@
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/ebin/meck.app
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/ebin/meck.beam
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/ebin/meck_cover.beam
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/ebin/meck_mod.beam
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src/meck.app.src
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src/meck.erl
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src/meck_abstract.hrl
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src/meck_cover.erl
+%%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src/meck_mod.erl
+@dirrm %%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/src
+@dirrm %%LIB32DIR%%/erlang/lib/meck-%%VERSION%%/ebin
+@dirrm %%LIB32DIR%%/erlang/lib/meck-%%VERSION%%