diff options
author | clsung <clsung@FreeBSD.org> | 2008-04-21 10:37:21 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2008-04-21 10:37:21 +0800 |
commit | 4b9eab958eb15718004d0ab92ce5d62e2544f346 (patch) | |
tree | f3f055293dfa26bd8bf057a222505cc935d3ceeb /devel | |
parent | e8486e7b693abb82a45c515ec7451053b8fdf005 (diff) | |
download | freebsd-ports-gnome-4b9eab958eb15718004d0ab92ce5d62e2544f346.tar.gz freebsd-ports-gnome-4b9eab958eb15718004d0ab92ce5d62e2544f346.tar.zst freebsd-ports-gnome-4b9eab958eb15718004d0ab92ce5d62e2544f346.zip |
Mocha is a library for mocking and stubbing using a syntax like that
of JMock, and SchMock. One of its main advantages is that it allows
you to mock and stub methods on real (non-mock) classes and instances.
WWW: http://mocha.rubyforge.org/
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/rubygem-mocha/Makefile | 27 | ||||
-rw-r--r-- | devel/rubygem-mocha/distinfo | 3 | ||||
-rw-r--r-- | devel/rubygem-mocha/pkg-descr | 5 |
4 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index d933f7df1c17..bdb1e4bd2999 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2248,6 +2248,7 @@ SUBDIR += rubygem-hoe SUBDIR += rubygem-inline SUBDIR += rubygem-json + SUBDIR += rubygem-mocha SUBDIR += rubygem-needle SUBDIR += rubygem-open4 SUBDIR += rubygem-parsetree diff --git a/devel/rubygem-mocha/Makefile b/devel/rubygem-mocha/Makefile new file mode 100644 index 000000000000..0dfbcfb74217 --- /dev/null +++ b/devel/rubygem-mocha/Makefile @@ -0,0 +1,27 @@ +# Ports collection makefile for: rubygem-mocha +# Date created: Apr 21 2008 +# Whom: Cheng-Lung Sung <clsung@FreeBSD.org> +# +# $FreeBSD$ + +PORTNAME= mocha +PORTVERSION= 0.5.6 +CATEGORIES= devel rubygems +MASTER_SITES= RF + +MAINTAINER= clsung@FreeBSD.org +COMMENT= A library for mocking and stubbing syntax like JMock, and SchMock + +USE_RUBY= yes +USE_RAKE= yes +USE_RUBYGEMS= yes + +post-install: + @${ECHO} ${GEM_CACHE} >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST} + @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/devel/rubygem-mocha/distinfo b/devel/rubygem-mocha/distinfo new file mode 100644 index 000000000000..0ebadf15383f --- /dev/null +++ b/devel/rubygem-mocha/distinfo @@ -0,0 +1,3 @@ +MD5 (rubygem/mocha-0.5.6.gem) = 314def039e24dc2485db6541e2670508 +SHA256 (rubygem/mocha-0.5.6.gem) = 97e1845bbaf2d322dc9c415b97f033d60c745098ed05fc06aa895a3cbc79c10a +SIZE (rubygem/mocha-0.5.6.gem) = 42498 diff --git a/devel/rubygem-mocha/pkg-descr b/devel/rubygem-mocha/pkg-descr new file mode 100644 index 000000000000..4a4b99830940 --- /dev/null +++ b/devel/rubygem-mocha/pkg-descr @@ -0,0 +1,5 @@ +Mocha is a library for mocking and stubbing using a syntax like that +of JMock, and SchMock. One of its main advantages is that it allows +you to mock and stub methods on real (non-mock) classes and instances. + +WWW: http://mocha.rubyforge.org/ |