diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2008-04-21 02:37:21 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2008-04-21 02:37:21 +0000 |
commit | b39c018681db956332b57ac5db6230b7f5c3f4c3 (patch) | |
tree | 8e37cfc88158631eb0184bed06015a9215d98d43 /devel/rubygem-mocha | |
parent | 9dcfa17ed93d5027073af75631284b5389d5ab26 (diff) | |
download | ports-b39c018681db956332b57ac5db6230b7f5c3f4c3.tar.gz ports-b39c018681db956332b57ac5db6230b7f5c3f4c3.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/
Notes
Notes:
svn path=/head/; revision=211690
Diffstat (limited to 'devel/rubygem-mocha')
-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 |
3 files changed, 35 insertions, 0 deletions
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/ |