From nobody Tue Jan 28 17:06:02 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 4YjBWb3D7Pz5lmL4; Tue, 28 Jan 2025 17:06:03 +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 4YjBWb01MZz449X; Tue, 28 Jan 2025 17:06:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083963; 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=H/9fkiclVMWkg08+ANMrjQPUHonlC46m6wDsXhB3yt8=; b=qFkpqZeIIG0mgc0CvFEKEP/rK16IshDL6vwTn6dd33CEaVKzNDihNMDcENMa75Vlqc0jhh JLhKGJLJA0Hi9MJGVEC1wjef8GgmsokJjwIVVR5Y4hNrjQ4E6DzPalSeqN1iTWxdvalfUb cloZitz6UixOVrVJ/i3nfRDJWBL7zQK0fxS1EqjMLPQa9V2ADZfz2SOJ/+ny9oFHX7YOSF pPo6K19kCOf6cY5YN7zaIWDvRSmb4OL++68TOFqoY/ct+AEVcWoYe6L3xlw/dQAhAfEctp 5eVYkQJFyoJLlasGoClJGuROxAhqHChcVeBUMZVQ6Xnh+wPLGN/ufupnvd04ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083963; 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=H/9fkiclVMWkg08+ANMrjQPUHonlC46m6wDsXhB3yt8=; b=OHHYxYXywxeQyq76o0xw+0YxsiOWLAkfIqxtg3hX1kygyTyZX5KXfnWtCRz0h3Uw/LKhtV 5pChcnFrNTaLxl65r+CPGIOj3xWbWEiZ4X7wW8LOkiqWPhnf/mDrDV5sRX7k/MFsRxwaRB VerH7IBDKqxVJe0Ufu+2Hiff6SiiViWzn674H1cf0KWn3lvfUt0Oa54+h5iqOPZ8l2UDNG jww01mW7bFqFyR2uNMxllSDLtwyz7dE+kPEguCDDblS6duQWL63bkoOSeINpKe7LHUtM1k VtLjAgNyRX1igmto8iNPqBubuDoAl2r2R2U/hdZQAO9AbgirW35prvRMO1TbtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738083963; a=rsa-sha256; cv=none; b=LZVRoHuNEYHutXkGY3RlYZsLEUyTKjuI9DTILyzf4E45Sl0tvXDnMKsHt/aXhUKWwfcNnN ZybpkCpkZh6N+NQyU8v3zNgDE4m0ouLJBc6/C34eDtI+ulKVluTnyP5LZv9cWtlK3p/nP2 mCIwiHclLpW4iaAHQjwai7tF+velHmW7i+P/SmhaG9qZdFkNscoLxPdIT/k7Im7RDvvoHv GMdTQaYXFqX24rhXeeZarFKBTc1QWEYJNi+LDuJHCC1c7xsslcmVKXBnkO7SC8bl9pzMr8 3s9F0nwcEo4OJqVxoE5i5FNfIF4soeVRv40LvACAfYwvKRW3UGeiz9Wixrrmig== 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 4YjBWZ6WqRz7Jt; Tue, 28 Jan 2025 17:06:02 +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 50SH62iH061367; Tue, 28 Jan 2025 17:06:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50SH62lY061364; Tue, 28 Jan 2025 17:06:02 GMT (envelope-from git) Date: Tue, 28 Jan 2025 17:06:02 GMT Message-Id: <202501281706.50SH62lY061364@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: e860bee50849 - main - devel/p5-failures: Add p5-failures 0.004 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e860bee508490c45f0223eab775af8a9ef595638 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e860bee508490c45f0223eab775af8a9ef595638 commit e860bee508490c45f0223eab775af8a9ef595638 Author: Po-Chuan Hsieh AuthorDate: 2025-01-28 16:48:45 +0000 Commit: Po-Chuan Hsieh CommitDate: 2025-01-28 16:48:45 +0000 devel/p5-failures: Add p5-failures 0.004 This module lets you define an exception hierarchy quickly and simply. Here were my design goals: - minimalist interface - 80% of features in 20% of lines of code - depend only on core modules (nearly achieved) - support hierarchical error types - identify errors types by name (class) not by parsing strings - leave (possibly expensive) trace decisions to the thrower Currently, failures is implemented in under 70 lines of code. Failure objects are implemented with Class::Tiny to allow easy subclassing (see custom::failures), but Class::Tiny only requires core modules, so other than that exception, the 'core only' goal is achieved. --- devel/Makefile | 1 + devel/p5-failures/Makefile | 23 +++++++++++++++++++++++ devel/p5-failures/distinfo | 3 +++ devel/p5-failures/pkg-descr | 15 +++++++++++++++ devel/p5-failures/pkg-plist | 4 ++++ 5 files changed, 46 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1f84ec4d1c7f..578c043a9fb2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3963,6 +3963,7 @@ SUBDIR += p5-enum SUBDIR += p5-ex-lib SUBDIR += p5-experimental + SUBDIR += p5-failures SUBDIR += p5-forks SUBDIR += p5-github_creator SUBDIR += p5-goto-file diff --git a/devel/p5-failures/Makefile b/devel/p5-failures/Makefile new file mode 100644 index 000000000000..7dd8babb7df1 --- /dev/null +++ b/devel/p5-failures/Makefile @@ -0,0 +1,23 @@ +PORTNAME= failures +PORTVERSION= 0.004 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DAGOLDEN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Minimalist exception hierarchy generator +WWW= https://metacpan.org/dist/failures + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Class-Tiny>=0:devel/p5-Class-Tiny + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-failures/distinfo b/devel/p5-failures/distinfo new file mode 100644 index 000000000000..2c936dacf3b8 --- /dev/null +++ b/devel/p5-failures/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736671125 +SHA256 (failures-0.004.tar.gz) = fd2ca702402f22f5185b12942b5079bf95ad21cde3b97a7cf2e1919147463270 +SIZE (failures-0.004.tar.gz) = 19646 diff --git a/devel/p5-failures/pkg-descr b/devel/p5-failures/pkg-descr new file mode 100644 index 000000000000..93f66711baea --- /dev/null +++ b/devel/p5-failures/pkg-descr @@ -0,0 +1,15 @@ +This module lets you define an exception hierarchy quickly and simply. + +Here were my design goals: +- minimalist interface +- 80% of features in 20% of lines of code +- depend only on core modules (nearly achieved) +- support hierarchical error types +- identify errors types by name (class) not by parsing strings +- leave (possibly expensive) trace decisions to the thrower + +Currently, failures is implemented in under 70 lines of code. + +Failure objects are implemented with Class::Tiny to allow easy subclassing (see +custom::failures), but Class::Tiny only requires core modules, so other than +that exception, the 'core only' goal is achieved. diff --git a/devel/p5-failures/pkg-plist b/devel/p5-failures/pkg-plist new file mode 100644 index 000000000000..c041632fabd1 --- /dev/null +++ b/devel/p5-failures/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/custom/failures.pm +%%SITE_PERL%%/failures.pm +%%PERL5_MAN3%%/custom::failures.3.gz +%%PERL5_MAN3%%/failures.3.gz