From nobody Mon Apr 18 00:00:14 2022 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 9385F11CDC32; Mon, 18 Apr 2022 00:00:15 +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 4KhRrv2FJCz4YB3; Mon, 18 Apr 2022 00:00:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240015; 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=sAgFiRUUo4vIN9uBA7QtnIjJjyt+LvG/I/BWLiEh8nE=; b=aEV6Qaqa4scXaUq/P9BWk/yVpnFW6yocdcRxy/pRmNP2Jm6AheA2X7TQMIsCeH0tuPlki+ fl0YXfQQvtQEEaWmRzwn48fX9Ayujbg8PvIN/4aXsIYbCPu+EJ+211l5HJ/kaSzayPAGNC 9ZUBae+XZ35NdhpIyyMfiIQCVSAyG8qrh7P/TXQQ5CTFSDiY5t6TtnFkcutO/NxhY0PQhy dbPgXAsVkgQoJR6YyL13PFQRqSd5pnipG3rvBu3JlhPlHW6JTb53ld6xwtmN6dX/ghKiGc aT2Jq/hwwVsPiWFbZrDViTKb7NaUqCSFmI6Ry3EvWW85+moFPsn73HHwkF6T4Q== 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 F18E527C17; Mon, 18 Apr 2022 00:00:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23I00Eg5034264; Mon, 18 Apr 2022 00:00:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23I00ESG034257; Mon, 18 Apr 2022 00:00:14 GMT (envelope-from git) Date: Mon, 18 Apr 2022 00:00:14 GMT Message-Id: <202204180000.23I00ESG034257@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c8b6d04b5c7c - main - devel/p5-Mock-Sub: Add p5-Mock-Sub 1.09 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8b6d04b5c7c61f147be34ead5b624aefed15c7d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240015; 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=sAgFiRUUo4vIN9uBA7QtnIjJjyt+LvG/I/BWLiEh8nE=; b=uxFQJLz07wXMnhJ3aL+LLoVNGrXipNkYmHEFq7CZqk0ifBm+A9BPp7i0EU+ZIiOX8BqchF h6ang78ygPexhC9YZRpwIEa6ygvg+jLxVXRFqKnJygPuoXYqy0MRh2hMTMEbSwVLEEHnTP ggPvteEiTH3nlkK8VX6LZeERuupDrZRVGDaLBkHoTtX3alqNs8FD2/EaUgEpZISm7xmUbD lNrB3MwVU+sxhpEwzxygJA5jBxXS/n2dd18+jYy5A6xLU5lksI8EP5w49+AoS9Ob/XCuDr 3H8r/sAzATLz9bkqbdGWAgKoAdSsueuDBuOJFJYRhvjqp3bkwWrk+7yjPCv3dQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650240015; a=rsa-sha256; cv=none; b=ZNTYvftyrryQ0IffAUyuT2Nm/8kDX9tB+yJ43pQWI/bBTC4b/w0fO5epakC07skI8ahtuY tKD9KEez9fI9bt6eWtuZWdqRLuaC3q6tPlUbtvHut7Lm79DyGcszoqF4L2pKb2lK0IKrwD 5H4H2nEXmH/XJKgl7r+dCTG3QX6nxHI7tOehxMyzSeRPpToQbj2iPnRCioT5Ghp3jwd/pm shnEBD0Y7GcIflKdoLXkpcS5xIva95RXB1hbw0kupRqzf5rQcMdB6GPjK6zFk/MT6K1XVh e6fXMOSV+xGCMOHO5lKaeMSlNlVLlGZxcWSF+8r963G3lHLP6zqKqrwvoGfLhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8b6d04b5c7c61f147be34ead5b624aefed15c7d commit c8b6d04b5c7c61f147be34ead5b624aefed15c7d Author: Po-Chuan Hsieh AuthorDate: 2022-04-17 23:39:04 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-17 23:39:04 +0000 devel/p5-Mock-Sub: Add p5-Mock-Sub 1.09 Easy to use and very lightweight module for mocking out sub calls. Very useful for testing areas of your own modules where getting coverage may be difficult due to nothing to test against, and/or to reduce test run time by eliminating the need to call subs that you really don't want or need to test. WWW: https://metacpan.org/dist/Mock-Sub --- devel/Makefile | 1 + devel/p5-Mock-Sub/Makefile | 21 +++++++++++++++++++++ devel/p5-Mock-Sub/distinfo | 3 +++ devel/p5-Mock-Sub/pkg-descr | 6 ++++++ devel/p5-Mock-Sub/pkg-plist | 4 ++++ 5 files changed, 35 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fecf885f4ce5..7ad4bb66e351 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2794,6 +2794,7 @@ SUBDIR += p5-Mo SUBDIR += p5-Mock-MonkeyPatch SUBDIR += p5-Mock-Quick + SUBDIR += p5-Mock-Sub SUBDIR += p5-Module-Build SUBDIR += p5-Module-Build-Convert SUBDIR += p5-Module-Build-Kwalitee diff --git a/devel/p5-Mock-Sub/Makefile b/devel/p5-Mock-Sub/Makefile new file mode 100644 index 000000000000..b0df6d4d4b56 --- /dev/null +++ b/devel/p5-Mock-Sub/Makefile @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= Mock-Sub +PORTVERSION= 1.09 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:STEVEB +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Mock package, object and standard subroutines, with unit testing in mind + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-Mock-Sub/distinfo b/devel/p5-Mock-Sub/distinfo new file mode 100644 index 000000000000..1c5c35668c2b --- /dev/null +++ b/devel/p5-Mock-Sub/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650228644 +SHA256 (Mock-Sub-1.09.tar.gz) = 86ac0ff242e712df040c559aa0dcb871914d92f4b86977cf1402b6f8131a9c10 +SIZE (Mock-Sub-1.09.tar.gz) = 17364 diff --git a/devel/p5-Mock-Sub/pkg-descr b/devel/p5-Mock-Sub/pkg-descr new file mode 100644 index 000000000000..aedda562ea06 --- /dev/null +++ b/devel/p5-Mock-Sub/pkg-descr @@ -0,0 +1,6 @@ +Easy to use and very lightweight module for mocking out sub calls. Very useful +for testing areas of your own modules where getting coverage may be difficult +due to nothing to test against, and/or to reduce test run time by eliminating +the need to call subs that you really don't want or need to test. + +WWW: https://metacpan.org/dist/Mock-Sub diff --git a/devel/p5-Mock-Sub/pkg-plist b/devel/p5-Mock-Sub/pkg-plist new file mode 100644 index 000000000000..cde6f1155d29 --- /dev/null +++ b/devel/p5-Mock-Sub/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/Mock/Sub.pm +%%SITE_PERL%%/Mock/Sub/Child.pm +%%PERL5_MAN3%%/Mock::Sub.3.gz +%%PERL5_MAN3%%/Mock::Sub::Child.3.gz