1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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

This commit is contained in:
Jimmy Olgeni 2013-05-21 20:58:07 +00:00
parent c0b50a2b67
commit 73ff12bf16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318722
5 changed files with 60 additions and 0 deletions

View File

@ -1214,6 +1214,7 @@
SUBDIR += maven3
SUBDIR += mcpp
SUBDIR += mdds
SUBDIR += meck
SUBDIR += memcheck
SUBDIR += menhir
SUBDIR += mercator

40
devel/meck/Makefile Normal file
View File

@ -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>

2
devel/meck/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (meck-0.7.2.tar.gz) = 324744d579984ac14c82ffe2e0d70cdb78d79a83d38d1f5fa0f9956d3f48df28
SIZE (meck-0.7.2.tar.gz) = 23455

5
devel/meck/pkg-descr Normal file
View File

@ -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

12
devel/meck/pkg-plist Normal file
View File

@ -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%%