Commit ae588ef8 authored by olgeni's avatar olgeni
Browse files

Add devel/meck, a library to create mock modules in Erlang.

parent 8acc9d26
......@@ -1214,6 +1214,7 @@
SUBDIR += maven3
SUBDIR += mcpp
SUBDIR += mdds
SUBDIR += meck
SUBDIR += memcheck
SUBDIR += menhir
SUBDIR += mercator
......
# $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>
SHA256 (meck-0.7.2.tar.gz) = 324744d579984ac14c82ffe2e0d70cdb78d79a83d38d1f5fa0f9956d3f48df28
SIZE (meck-0.7.2.tar.gz) = 23455
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
%%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%%
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment