Add ruby-mock, an RUnit extention that makes it very easy to implement
Mock Objects.
This commit is contained in:
parent
bd57d6a435
commit
f827c53c20
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47326
6 changed files with 51 additions and 0 deletions
|
@ -488,6 +488,7 @@
|
|||
SUBDIR += ruby-metaruby
|
||||
SUBDIR += ruby-mmap
|
||||
SUBDIR += ruby-mo
|
||||
SUBDIR += ruby-mock
|
||||
SUBDIR += ruby-optparse
|
||||
SUBDIR += ruby-property
|
||||
SUBDIR += ruby-racc
|
||||
|
|
36
devel/ruby-mock/Makefile
Normal file
36
devel/ruby-mock/Makefile
Normal file
|
@ -0,0 +1,36 @@
|
|||
# New ports collection makefile for: Ruby/Mock
|
||||
# Date created: 2 September 2001
|
||||
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mock
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= devel ruby
|
||||
MASTER_SITES= http://www.b13media.com/dev/ruby/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
EXTRACT_SUFX= .tgz
|
||||
DIST_SUBDIR= ruby
|
||||
|
||||
MAINTAINER= knu@FreeBSD.org
|
||||
|
||||
RUN_DEPENDS= ${RUBY_SITELIBDIR}/runit/error.rb:${.CURDIR}/../ruby-unit
|
||||
|
||||
USE_RUBY= yes
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
post-patch:
|
||||
${RUBY} -i -pe 'sub %q{\.\./mock}, "mock"' ${WRKSRC}/demo/*
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/mock.rb ${RUBY_SITELIBDIR}/
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
|
||||
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/ruby-mock/distinfo
Normal file
1
devel/ruby-mock/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (ruby/mock-1.0.tgz) = df9c2fa239596398fe224142a8cbc877
|
1
devel/ruby-mock/pkg-comment
Normal file
1
devel/ruby-mock/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
An RUnit extention that makes it very easy to implement Mock Objects
|
6
devel/ruby-mock/pkg-descr
Normal file
6
devel/ruby-mock/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
Ruby/Mock is an extension to the RUnit framework to make it easy to
|
||||
implement Mock Objects. Information about Mock Objects can be found
|
||||
online at http://www.mockobjects.com/.
|
||||
|
||||
Author: Nat Pryce <nat.pryce@b13media.com>
|
||||
WWW: http://www.b13media.com/dev/ruby/mock.html
|
6
devel/ruby-mock/pkg-plist
Normal file
6
devel/ruby-mock/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
%%RUBY_SITELIBDIR%%/mock.rb
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mock/demo_mock.rb
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mock/demo_mock_class.rb
|
||||
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/mock
|
||||
%%PORTDOCS%%%%RUBY_DOCDIR%%/mock/README
|
||||
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/mock
|
Loading…
Reference in a new issue