From nobody Sat Apr 06 14:52:34 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VBdcf2csmz5GmZ4; Sat, 6 Apr 2024 14:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VBdcf1C3Fz4mWY; Sat, 6 Apr 2024 14:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712415154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4coemIZUV5Ii2HTjo3b9MEEaJEsA26VsohBdJMiS1iM=; b=OPm3gJrB6ODrtEp/A48EzvELQ8IqdWQXR3f/QE/JgEM6gYNgmTLFG2/ZsUDzAaFZXjCPzE GWcLVVzyK6dWEMQdIugQ91RNWiVCNjgLOAEXQzqNualbskjxTItNybHXAnesXzssxfzMKR UtFgg1fMylR3thgLWNv7/SfXIDZL0gqmVNnejXp5gMKka0QZ0u9hkY4pzHKgBKUhZdY/mh qIQuyoqOuSO+GttgMezixRf5U/noSZdl08Xzn/XiCp7zwD1y4cO6r67N321pFPhHhG8/nN tlSr38FVSb/D41o+4IeK9SL1O7A3MWcMRlIwg07TMN//ShH/lM9+uMf8xu4PCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712415154; a=rsa-sha256; cv=none; b=INdA33IOeWqgmI3qLyQvybM2V5G2G2eUjER/VMu+r5mOomOqIIgLPgIgdw1c/x5ok/rtBY FmqwU157PQS1aa9yXgZAFwzwY5tMYxLnKmUXT5NUROsR9VCG7uEXaAjbepNpIKb9nAKagx 9bquZLU+nTcSDrgs+iABEOWYVs4aC1Xcl9HOOOp31FapKlyRoj5plyEBwuLgf1ChhRilgJ esrQ4fB3a6VZyapnbemIDIg6qOk2N8Fk5S699CtWC7Oj+qbTbgZO8BsHWseHGD4uauvDEj evhgb25rcQKwGvqv/LbPxq6W6j4RBfJoetOo1QBt/nlmMTazZjWrFR1/EIEsbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712415154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4coemIZUV5Ii2HTjo3b9MEEaJEsA26VsohBdJMiS1iM=; b=FP1mk3y7YyXgAUgSoMvDTDxJIA+idP65+5aNnetlZTjxfoCvV34RVqLm1TDJMQp5207+pQ 7TxtCZRVqEKP/jk78CvIuZguOpU4jkvH6ApoPgj6Rnni2fCjPtPoJvxqdpGhNmaMtE0qmi axiKDFGdMNNJijZUDY860wy+XznedxV8pEvwiQ7DcZsTSFfjka97TUPYuSM/T6+VKuFRSX Mxf+UdU/Cy+QUZ8ktQENRaGXHHV2woKbOicEqq02EkJACNF505v+ANv2m/4IHdqwBplJLv W3GXmCL8Sh8DAvofqtvmJnX8k29IN0JWhznMCEwV3uvKAp2c3occNxV9BAHJVA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VBdcf0qFTznfh; Sat, 6 Apr 2024 14:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 436EqYXl086254; Sat, 6 Apr 2024 14:52:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 436EqY4k086251; Sat, 6 Apr 2024 14:52:34 GMT (envelope-from git) Date: Sat, 6 Apr 2024 14:52:34 GMT Message-Id: <202404061452.436EqY4k086251@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 7a0870824158 - main - devel/R-cran-mockr: New port: Mocking in R List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a0870824158bb1c47bd4ae12411c2261fe9bf3c Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=7a0870824158bb1c47bd4ae12411c2261fe9bf3c commit 7a0870824158bb1c47bd4ae12411c2261fe9bf3c Author: Einar Bjarni Halldórsson AuthorDate: 2024-04-05 11:57:24 +0000 Commit: Nuno Teixeira 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 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()'.