Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 23:31:47 -0500 (EST)
From:      Wesley Shields <wxs@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/141012: [PATCH]: Update devel/ruby-flexmock
Message-ID:  <20091130043147.AF9E45C39@syn.atarininja.org>
Resent-Message-ID: <200911300440.nAU4e1bh070417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141012
>Category:       ports
>Synopsis:       [PATCH]: Update devel/ruby-flexmock
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 30 04:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Wesley Shields
>Release:        FreeBSD 7.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD syn.csh.rit.edu 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #4: Thu Apr 23 13:36:41 EDT 2009 root@syn.csh.rit.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
devel/ruby-flexmock is quite outdated. I have attached a patch which
updates the port and switches to using a gem to make things easier.

The patch also fixes pkg-descr which is for the wrong port.
>How-To-Repeat:
N/A

>Fix:
Index: Makefile
===================================================================
RCS file: /ncvs/ports/devel/ruby-flexmock/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	21 Nov 2009 03:54:29 -0000	1.6
+++ Makefile	30 Nov 2009 02:30:20 -0000
@@ -6,32 +6,15 @@
 #
 
 PORTNAME=	flexmock
-PORTVERSION=	0.3.0
-CATEGORIES=	devel ruby
+PORTVERSION=	0.8.6
+CATEGORIES=	devel rubygems
 MASTER_SITES=	RF
-MASTER_SITE_SUBDIR=	ecal
-PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
-EXTRACT_SUFX=	.tgz
-DIST_SUBDIR=	ruby
 
 MAINTAINER=	ruby@FreeBSD.org
 COMMENT=	A simple mock object for Ruby
 
 USE_RUBY=	yes
-
-NO_BUILD=	yes
-
-DOCS=	CHANGELOG README
-
-do-install:
-	cd ${WRKSRC}; ${RUBY} install.rb
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${RUBY_MODEXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/test/* ${RUBY_MODEXAMPLESDIR}/
-	${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS}
-	${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
-.endif
+USE_RUBYGEMS=	yes
+RUBYGEM_AUTOPLIST=	yes
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /ncvs/ports/devel/ruby-flexmock/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	21 Nov 2009 03:54:29 -0000	1.3
+++ distinfo	30 Nov 2009 02:25:57 -0000
@@ -1,3 +1,3 @@
-MD5 (ruby/flexmock-0.3.0.tgz) = 007cf2ff2bd0804746a6eb95d6cf5576
-SHA256 (ruby/flexmock-0.3.0.tgz) = ff885a3464f04775fdb4e115d17745b9d6f813462db9e3d32bebba6f8da928fb
-SIZE (ruby/flexmock-0.3.0.tgz) = 16949
+MD5 (rubygem/flexmock-0.8.6.gem) = b087a648c5051e44e1d16fd886a7ce20
+SHA256 (rubygem/flexmock-0.8.6.gem) = 209722b60d13aa11b72c8e761ce83c8e7e446bfac92454bc064854c54d065731
+SIZE (rubygem/flexmock-0.8.6.gem) = 76800
Index: pkg-descr
===================================================================
RCS file: /ncvs/ports/devel/ruby-flexmock/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	17 Nov 2005 19:12:22 -0000	1.1
+++ pkg-descr	30 Nov 2009 02:18:07 -0000
@@ -1,9 +1,5 @@
-sqlite3-ruby provides an interface for the SQLite DB engine version 3.
-This differs from the DBD::SQLite module in that it is more complete,
-and from the ruby DBI version of SQLite in that it is SQLite specific,
-so you can do things that would otherwise be more difficult via DBI.
-If you want portability between backends, use DBI.  If you want ease
-of use with SQLite, use this.
+FlexMock is a flexible mocking library for use in unit testing and behavior
+specification. Mocks are defined with a fluent API that makes mock
+specifications easy to read and easy to remember.
 
-Author:	Jamis Buck (minam) <jgb3@email.byu.edu>
-WWW:	http://sqlite-ruby.rubyforge.org
+WWW: http://flexmock.rubyforge.org/
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- pkg-plist	21 Nov 2009 03:54:29 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-%%RUBY_SITELIBDIR%%/flexmock.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_example.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_mock.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_naming.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_record_mode.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_samples.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_should_receive.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test_tu_integration.rb
-%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGELOG
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
-%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091130043147.AF9E45C39>