From ae588ef816713c8aa918a602b6df0056b840665c Mon Sep 17 00:00:00 2001 From: olgeni Date: Tue, 21 May 2013 20:58:07 +0000 Subject: Add devel/meck, a library to create mock modules in Erlang. --- devel/meck/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ devel/meck/distinfo | 2 ++ devel/meck/pkg-descr | 5 +++++ devel/meck/pkg-plist | 12 ++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 devel/meck/Makefile create mode 100644 devel/meck/distinfo create mode 100644 devel/meck/pkg-descr create mode 100644 devel/meck/pkg-plist (limited to 'devel/meck') 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 + +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 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%% -- cgit