svn commit: r560447 - in head/devel: . R-cran-mockery

Guangyuan Yang ygy at FreeBSD.org
Tue Jan 5 23:26:15 UTC 2021


Author: ygy (doc committer)
Date: Tue Jan  5 23:26:13 2021
New Revision: 560447
URL: https://svnweb.freebsd.org/changeset/ports/560447

Log:
  new port: devel/R-cran-mockery: Mocking Library for R
  
  Approved by:	lwhsu

Added:
  head/devel/R-cran-mockery/
  head/devel/R-cran-mockery/Makefile   (contents, props changed)
  head/devel/R-cran-mockery/distinfo   (contents, props changed)
  head/devel/R-cran-mockery/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Jan  5 23:24:53 2021	(r560446)
+++ head/devel/Makefile	Tue Jan  5 23:26:13 2021	(r560447)
@@ -62,6 +62,7 @@
     SUBDIR += R-cran-magrittr
     SUBDIR += R-cran-memoise
     SUBDIR += R-cran-microbenchmark
+    SUBDIR += R-cran-mockery
     SUBDIR += R-cran-optparse
     SUBDIR += R-cran-pillar
     SUBDIR += R-cran-pkgbuild

Added: head/devel/R-cran-mockery/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/R-cran-mockery/Makefile	Tue Jan  5 23:26:13 2021	(r560447)
@@ -0,0 +1,23 @@
+# Created by: Guangyuan Yang <ygy at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	mockery
+DISTVERSION=	0.4.2
+CATEGORIES=	devel
+DISTNAME=	${PORTNAME}_${DISTVERSION}
+
+MAINTAINER=	ygy at FreeBSD.org
+COMMENT=	Mocking Library for R
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	R-cran-knitr>0:print/R-cran-knitr
+RUN_DEPENDS=	R-cran-testthat>0:devel/R-cran-testthat
+TEST_DEPENDS=	R-cran-R6>0:devel/R-cran-R6 \
+		R-cran-knitr>0:print/R-cran-knitr \
+		R-cran-rmarkdown>=1.0:textproc/R-cran-rmarkdown
+
+USES=		cran:auto-plist
+
+.include <bsd.port.mk>

Added: head/devel/R-cran-mockery/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/R-cran-mockery/distinfo	Tue Jan  5 23:26:13 2021	(r560447)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1609807522
+SHA256 (mockery_0.4.2.tar.gz) = 988e249c366ee7faf277de004084cf5ca24b5c8a8c6e3842f1b1362ce2f7ea9b
+SIZE (mockery_0.4.2.tar.gz) = 19837

Added: head/devel/R-cran-mockery/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/R-cran-mockery/pkg-descr	Tue Jan  5 23:26:13 2021	(r560447)
@@ -0,0 +1,8 @@
+The two main functionalities of this package are creating mock objects
+(functions) and selectively intercepting calls to a given function that
+originate in some other function. It can be used with any testing framework
+available for R. Mock objects can be injected with either this package's own
+stub() function or a similar with_mock() facility present in the 'testthat'
+package.
+
+WWW: https://github.com/jfiksel/mockery


More information about the svn-ports-all mailing list