Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2024 14:52:34 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7a0870824158 - main - devel/R-cran-mockr: New port: Mocking in R
Message-ID:  <202404061452.436EqY4k086251@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a0870824158bb1c47bd4ae12411c2261fe9bf3c

commit 7a0870824158bb1c47bd4ae12411c2261fe9bf3c
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2024-04-05 11:57:24 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-04-06 14:42:37 +0000

    devel/R-cran-mockr: New port: Mocking in R
    
    - Submitter becomes maintainer
    
    Provides a means to mock a package function, i.e., temporarily substitute
    it for testing.
    Designed as a drop-in replacement for the now deprecated
    'testthat::with_mock()' and 'testthat::local_mock()'.
    
    WWW: https://krlmlr.github.io/mockr/
    
    Differential Revision:  https://reviews.freebsd.org/D43735
---
 devel/Makefile               |  1 +
 devel/R-cran-mockr/Makefile  | 20 ++++++++++++++++++++
 devel/R-cran-mockr/distinfo  |  3 +++
 devel/R-cran-mockr/pkg-descr |  4 ++++
 4 files changed, 28 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 261e588bcd59..033005693cfd 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -85,6 +85,7 @@
     SUBDIR += R-cran-microbenchmark
     SUBDIR += R-cran-mlbench
     SUBDIR += R-cran-mockery
+    SUBDIR += R-cran-mockr
     SUBDIR += R-cran-msm
     SUBDIR += R-cran-multicool
     SUBDIR += R-cran-optparse
diff --git a/devel/R-cran-mockr/Makefile b/devel/R-cran-mockr/Makefile
new file mode 100644
index 000000000000..48debedd0553
--- /dev/null
+++ b/devel/R-cran-mockr/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	mockr
+DISTVERSION=	0.2.1
+CATEGORIES=	devel
+DISTNAME=	${PORTNAME}_${DISTVERSION}
+
+MAINTAINER=	einar@isnic.is
+COMMENT=	Mocking in R
+WWW=		https://krlmlr.github.io/mockr/
+
+LICENSE=	GPLv3
+
+CRAN_DEPENDS=	R-cran-rlang>0:devel/R-cran-rlang \
+		R-cran-withr>0:devel/R-cran-withr
+BUILD_DEPENDS=	${CRAN_DEPENDS}
+RUN_DEPENDS=	${CRAN_DEPENDS}
+TEST_DEPENDS=	R-cran-testthat>0:devel/R-cran-testthat
+
+USES=		cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/devel/R-cran-mockr/distinfo b/devel/R-cran-mockr/distinfo
new file mode 100644
index 000000000000..ee688837c543
--- /dev/null
+++ b/devel/R-cran-mockr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708759171
+SHA256 (mockr_0.2.1.tar.gz) = 23ef5941eeed6a20b7670e78ef54a406ecd1eb9b57da2d4ca92ae03696f27a58
+SIZE (mockr_0.2.1.tar.gz) = 20956
diff --git a/devel/R-cran-mockr/pkg-descr b/devel/R-cran-mockr/pkg-descr
new file mode 100644
index 000000000000..b7571372f3e3
--- /dev/null
+++ b/devel/R-cran-mockr/pkg-descr
@@ -0,0 +1,4 @@
+Provides a means to mock a package function, i.e., temporarily substitute
+it for testing.
+Designed as a drop-in replacement for the now deprecated
+'testthat::with_mock()' and 'testthat::local_mock()'.



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