From nobody Sun Oct 09 15:38:49 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 4MlmRZ0Zn6z4dwCj; Sun, 9 Oct 2022 15:38:50 +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 4MlmRY6ztcz3b5B; Sun, 9 Oct 2022 15:38:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665329930; 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=HawgOtqdEJ39JxFrDCHhpHdGrj08mbUch07o+Nw/I1U=; b=aRJ5K8cDTRir+bOBtUNzvAQEiGvrZm6w5+4vf/ziOC4cg+JDOziV6uswhdFxOsU+WjaCRR OzelJbsm9SvWxqJhxLswF8psnhMST4b2cxBuc+7vRBVG68svxWLGXjULZ3vYnrmu9mqHeW QzVbmdCx6Aa5lFdDL8h0Bs0/9kIQhVBDm2xqO23Uy07kF1W9eTLnUSBFYz51dSk+xewMxX JO1oin2A5qFPC3S9MyLlkzRDPQ5GsYBIurrRs0Pllv8TQwDUu2EI66jsHLO+jXqS3Yh8ui Zpz1/kF+w+9nXSfMh1asouJWufI4gvZXwUtwx4MlO6jIeqs/NHdrDRwyWAB3jA== 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 4MlmRY63pMzKc2; Sun, 9 Oct 2022 15:38:49 +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 299Fcnkh041510; Sun, 9 Oct 2022 15:38:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 299Fcn6q041509; Sun, 9 Oct 2022 15:38:49 GMT (envelope-from git) Date: Sun, 9 Oct 2022 15:38:49 GMT Message-Id: <202210091538.299Fcn6q041509@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: 05428e2920ed - main - devel/p5-B-Hooks-AtRuntime: Add p5-B-Hooks-AtRuntime 8 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: 05428e2920edbe384203da8f5867bb5347e17e51 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665329930; 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=HawgOtqdEJ39JxFrDCHhpHdGrj08mbUch07o+Nw/I1U=; b=g0deuO/2nVatAGGN2i6f9MlaSxqDdBQ7wINu2r1/nJwtiOSADvaNBZUyEnbMy6ZytyQIKA HGO/nhBk27DbBzLkDIhEX5YxQfbMv/ClSwYpBZKIYWpK/DlVs+2dxnwEk12B4i2VkkUOIn xcitT5cysMRbPGPI1S2YNJ1W+cNeJfkt07r8o6CIoecE74UwwgYnw7qYZHaxwrcE/Y7Irq yS2srT+0/rafCPiXsumAA753pKTHNIHtZnhN5A+KNtk4PgIrUBESoPOOaMJ558M+dhjvPe dNCBIswEXfK9q7MZ+RiwzGoalyMxyaM7yz+gei1g5cC9B7/b0aT7KdUP0s0TuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665329930; a=rsa-sha256; cv=none; b=uSZFCUbP6TsLY9g3HSL0gtblvUzrvmIbP2eZKdV8s7QbODFG0vkd4ykRVH8wmh6+TuIwwY Hu0Jmja29FEXWXG4kQ6R+sUxUSG+IU+d8j79FUBNbABNKpdvLvGBjqPlzraW9JvwNbSsNs sbTsYrz5HduBCbC4rzL5cJlFHChq8iBQ5CrQJeooqFboBelHGW1S1sK/a2N5J9oXfhjw8y QKEX7Zw9sYU9oyLaz5k6jZUKTMwO2IoIrlzKq380Tp6nIZYAMxKdHSW2FOxw8q/G8IZARP MDfwFOOls1uEbr0d201ph4CYhN8xv/R2QVZ2QK2fDsWX5nzcybstK8sQivf7aQ== 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=05428e2920edbe384203da8f5867bb5347e17e51 commit 05428e2920edbe384203da8f5867bb5347e17e51 Author: Po-Chuan Hsieh AuthorDate: 2022-10-09 15:19:04 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-10-09 15:37:42 +0000 devel/p5-B-Hooks-AtRuntime: Add p5-B-Hooks-AtRuntime 8 B::Hooks::AtRuntime allows code that runs at compile-time to do something at runtime. A block passed to at_runtime gets compiled into the code that's currently compiling, and will be called when control reaches that point at runtime. In the example in the SYNOPSIS, the warnings will occur in order, and if that section of code runs more than once, so will all three warnings. --- devel/Makefile | 1 + devel/p5-B-Hooks-AtRuntime/Makefile | 25 +++++++++++++++++++++++++ devel/p5-B-Hooks-AtRuntime/distinfo | 3 +++ devel/p5-B-Hooks-AtRuntime/pkg-descr | 5 +++++ devel/p5-B-Hooks-AtRuntime/pkg-plist | 3 +++ 5 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1fcb0058e0b6..c557e6e8fb37 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1771,6 +1771,7 @@ SUBDIR += p5-B-Flags SUBDIR += p5-B-Generate SUBDIR += p5-B-Graph + SUBDIR += p5-B-Hooks-AtRuntime SUBDIR += p5-B-Hooks-EndOfScope SUBDIR += p5-B-Hooks-OP-Annotation SUBDIR += p5-B-Hooks-OP-Check diff --git a/devel/p5-B-Hooks-AtRuntime/Makefile b/devel/p5-B-Hooks-AtRuntime/Makefile new file mode 100644 index 000000000000..c317671762c1 --- /dev/null +++ b/devel/p5-B-Hooks-AtRuntime/Makefile @@ -0,0 +1,25 @@ +PORTNAME= B-Hooks-AtRuntime +PORTVERSION= 8 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Lower blocks from compile time to runtime +WWW= https://metacpan.org/dist/B-Hooks-AtRuntime + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Exporter-Tiny>=0:devel/p5-Exporter-Tiny \ + p5-Sub-Name>=0.05,1:devel/p5-Sub-Name +TEST_DEPENDS= p5-Test-Exception>=0.31:devel/p5-Test-Exception \ + p5-Test-Warn>=0.22:devel/p5-Test-Warn + +USES= perl5 +USE_PERL5= modbuild + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/Hooks/AtRuntime/AtRuntime.so + +.include diff --git a/devel/p5-B-Hooks-AtRuntime/distinfo b/devel/p5-B-Hooks-AtRuntime/distinfo new file mode 100644 index 000000000000..6cb5644e476c --- /dev/null +++ b/devel/p5-B-Hooks-AtRuntime/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665073062 +SHA256 (B-Hooks-AtRuntime-8.tar.gz) = ca7f8231e48c0477f688287fd0b211fc98ed4668fa4fb7133b1a8d75e92c4132 +SIZE (B-Hooks-AtRuntime-8.tar.gz) = 164027 diff --git a/devel/p5-B-Hooks-AtRuntime/pkg-descr b/devel/p5-B-Hooks-AtRuntime/pkg-descr new file mode 100644 index 000000000000..5291d8721780 --- /dev/null +++ b/devel/p5-B-Hooks-AtRuntime/pkg-descr @@ -0,0 +1,5 @@ +B::Hooks::AtRuntime allows code that runs at compile-time to do something at +runtime. A block passed to at_runtime gets compiled into the code that's +currently compiling, and will be called when control reaches that point at +runtime. In the example in the SYNOPSIS, the warnings will occur in order, and +if that section of code runs more than once, so will all three warnings. diff --git a/devel/p5-B-Hooks-AtRuntime/pkg-plist b/devel/p5-B-Hooks-AtRuntime/pkg-plist new file mode 100644 index 000000000000..6c430797b59c --- /dev/null +++ b/devel/p5-B-Hooks-AtRuntime/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_ARCH%%/B/Hooks/AtRuntime.pm +%%SITE_ARCH%%/auto/B/Hooks/AtRuntime/AtRuntime.so +%%PERL5_MAN3%%/B::Hooks::AtRuntime.3.gz