From nobody Fri Jan 31 18:02:43 2025 X-Original-To: dev-commits-ports-all@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 4Yl3db6B4kz5mhyq; Fri, 31 Jan 2025 18:02:43 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yl3db5Tt4z46v4; Fri, 31 Jan 2025 18:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738346563; 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=VnIEOVO0sillAM+aQdvmDPEhyT1EqY1Vemf/SVsbwVY=; b=rJEoEoc7Xw6Y37u9BnJlyhsWWl3Yk8YCtS0VmcSwVzEJ6TBkvxeWYPAxb7Bfh1xfej3Dfi tHApkbLT5ZxuR08siMokNZ3HQ1qj6pekTNJWsQb3xcfVJdIqPFZttT0fbjqKMUa2kage0Q e23UB5TfTuoumw3+FeWIywJF2hvNb8DC/ZYx+OSp/9uT4f+5oDvgDHbAH42X5QMSVJmT0F StT3/ZElH3IwYbpqsQpMgY8I0SUkqIcBQ7+qlx93SMTLb+Cdn0QLUpUkmQWHRFRq9lf5FY KXyKQRCDig9lv+SYyO0g2SDSBhCayorm9m6NU+3XklvJs4tag38EbHUmiOXKiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738346563; 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=VnIEOVO0sillAM+aQdvmDPEhyT1EqY1Vemf/SVsbwVY=; b=qdSCrEXepUbC2V5p3SjlBAOXOAai0mwIYELIByo7i4Ekd9Lz9Gd/3GyQDWWp2z1cICW02S jMkkXc3Bf+tUWrl5k+qfegTqvkVYSk9AT+OtANv9xwJP63J+B1r/dXumOeJL8OLqSE2eV0 8+pltrwojwe52sTOK5kTIveAPN49EqXYFcoGN0udnVlHtTFbaXvKwiqa4WtNaof3kQl4P3 a5EPYfEeEessWWzUjZfq+e5ikYnOSF34Jk4dEI6z85DMoCKhKs8hal6Oqw5tbyjOxs8l4x is0KKw3PrLy4HE1mSHR0IEXZwoDZDhyXOnZR5H2/FMCg0oOw3gbhadRSKo/NSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738346563; a=rsa-sha256; cv=none; b=bJg0qYMu2OS2E26lkftRd9HYx/jjK+ksa3At6D8ICZUg2ju6rDOg0HEUviMVL/U8GmthvE SD82PI97p7BeBjikT3J+pMejNcvbDI3W3ZyjP3Y5mKDQgvMdpRi8ulhONA5FAMcSa4lU8U t2ncxXSe8V60/cZX5dYYn8EazCgCdnP2cefcSHyfspzKaN+wgSiHYXIehrwCyWIzmWfd6O 7NHYghsqJRLU+rbDaTPaE/Nm5zBLN9yPniBM8w6tuI3Yb7A5iCcIzIOe+tUmOmSYn3kedr Q3dNwaoo/J082bNtpNt3vA3e2pZDDmTKiaFq5kt0EB5CG0KmhA5fu9gy2o+u7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yl3db55dPzCsB; Fri, 31 Jan 2025 18:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50VI2hfo062633; Fri, 31 Jan 2025 18:02:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50VI2hSi062630; Fri, 31 Jan 2025 18:02:43 GMT (envelope-from git) Date: Fri, 31 Jan 2025 18:02:43 GMT Message-Id: <202501311802.50VI2hSi062630@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 367b1aba710d - main - devel/p5-XT-Files: New port: standard interface for author tests to find files to check List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 367b1aba710d21acda7b8c3790501e32dc2fdb1d Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=367b1aba710d21acda7b8c3790501e32dc2fdb1d commit 367b1aba710d21acda7b8c3790501e32dc2fdb1d Author: Sergei Vyshenski AuthorDate: 2025-01-31 17:59:09 +0000 Commit: Vladimir Druzenko CommitDate: 2025-01-31 18:02:29 +0000 devel/p5-XT-Files: New port: standard interface for author tests to find files to check XT::Files is the Tests that know what they want to check (e.g. module files), but it's the distribution that knows where these files can be found (e.g. in the lib directory and in the t/lib directory). Without XT::Files you may add the same code to multiple .t files under xt that iterate over a check function of the test. XT::Files is a standard interface that makes it easy for author tests to ask the distribution for the kind of files it would like to test. And it can easily be used for author tests that don't support XT::Files to have the same set of files tested with every test. PR: 284478 --- devel/Makefile | 1 + devel/p5-XT-Files/Makefile | 25 +++++++++++++++++++++++++ devel/p5-XT-Files/distinfo | 3 +++ devel/p5-XT-Files/pkg-descr | 8 ++++++++ devel/p5-XT-Files/pkg-plist | 20 ++++++++++++++++++++ 5 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 763ebb732711..0d14d60bdc85 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3934,6 +3934,7 @@ SUBDIR += p5-XS-Parse-Keyword SUBDIR += p5-XS-Parse-Sublike SUBDIR += p5-XSLoader + SUBDIR += p5-XT-Files SUBDIR += p5-XXX SUBDIR += p5-Xporter SUBDIR += p5-YAML-AppConfig diff --git a/devel/p5-XT-Files/Makefile b/devel/p5-XT-Files/Makefile new file mode 100644 index 000000000000..fad8d064bf0d --- /dev/null +++ b/devel/p5-XT-Files/Makefile @@ -0,0 +1,25 @@ +PORTNAME= XT-Files +DISTVERSION= 0.002 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:SKIRMESS +PKGNAMEPREFIX= p5- + +MAINTAINER= svysh.fbsd@gmail.com +COMMENT= Standard interface for author tests to find files to check +WWW= https://metacpan.org/dist/XT-Files + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Class-Tiny>=1:devel/p5-Class-Tiny \ + p5-Role-Tiny>=0:devel/p5-Role-Tiny +TEST_DEPENDS= p5-Test-Fatal>=0:devel/p5-Test-Fatal + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-XT-Files/distinfo b/devel/p5-XT-Files/distinfo new file mode 100644 index 000000000000..6564fcd1e628 --- /dev/null +++ b/devel/p5-XT-Files/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1738274534 +SHA256 (XT-Files-0.002.tar.gz) = 527a27763d7cbcb941d9579d65d5c41120f0e0a296a16e84365aab9d62b1505b +SIZE (XT-Files-0.002.tar.gz) = 31696 diff --git a/devel/p5-XT-Files/pkg-descr b/devel/p5-XT-Files/pkg-descr new file mode 100644 index 000000000000..bc0284784cb5 --- /dev/null +++ b/devel/p5-XT-Files/pkg-descr @@ -0,0 +1,8 @@ +XT::Files is the Tests that know what they want to check (e.g. module files), +but it's the distribution that knows where these files can be found (e.g. in +the lib directory and in the t/lib directory). Without XT::Files you may add +the same code to multiple .t files under xt that iterate over a check function +of the test. XT::Files is a standard interface that makes it easy for author +tests to ask the distribution for the kind of files it would like to test. And +it can easily be used for author tests that don't support XT::Files to have the +same set of files tested with every test. diff --git a/devel/p5-XT-Files/pkg-plist b/devel/p5-XT-Files/pkg-plist new file mode 100644 index 000000000000..7dd62f034f6e --- /dev/null +++ b/devel/p5-XT-Files/pkg-plist @@ -0,0 +1,20 @@ +%%SITE_PERL%%/Test/XTFiles.pm +%%SITE_PERL%%/XT/Files.pm +%%SITE_PERL%%/XT/Files/File.pm +%%SITE_PERL%%/XT/Files/Plugin.pm +%%SITE_PERL%%/XT/Files/Plugin/Default.pm +%%SITE_PERL%%/XT/Files/Plugin/Dirs.pm +%%SITE_PERL%%/XT/Files/Plugin/Excludes.pm +%%SITE_PERL%%/XT/Files/Plugin/Files.pm +%%SITE_PERL%%/XT/Files/Plugin/lib.pm +%%SITE_PERL%%/XT/Files/Role/Logger.pm +%%PERL5_MAN3%%/Test::XTFiles.3.gz +%%PERL5_MAN3%%/XT::Files.3.gz +%%PERL5_MAN3%%/XT::Files::File.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin::Default.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin::Dirs.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin::Excludes.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin::Files.3.gz +%%PERL5_MAN3%%/XT::Files::Plugin::lib.3.gz +%%PERL5_MAN3%%/XT::Files::Role::Logger.3.gz