git: 5cf9876a62df - main - devel/rubygem-packwerk-extensions: Add rubygem-packwerk-extensions 0.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:57 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5cf9876a62df89a8eaab254fff1e25cf7022f94b

commit 5cf9876a62df89a8eaab254fff1e25cf7022f94b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:44:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:54 +0000

    devel/rubygem-packwerk-extensions: Add rubygem-packwerk-extensions 0.3.0
    
    packwerk-extensions is a home for checker extensions for packwerk 3.
    
    Currently, it ships the following checkers to help improve the boundaries
    between packages. These checkers are:
    - A privacy checker that ensures other packages are using your package's public
      API
    - A visibility checker that allows packages to be private except to an explicit
      group of other packages.
    - A folder_privacy checker that allows packages to their sibling packs and
      parent pack (to be used in an application that uses folder packs)
    - A layer (formerly architecture) checker that allows packages to specify their
      "layer" and requires that each layer only communicate with layers below it.
---
 devel/Makefile                              |  1 +
 devel/rubygem-packwerk-extensions/Makefile  | 21 +++++++++++++++++++++
 devel/rubygem-packwerk-extensions/distinfo  |  3 +++
 devel/rubygem-packwerk-extensions/pkg-descr | 12 ++++++++++++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 9e82b12e339d..52645f5f6c12 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7440,6 +7440,7 @@
     SUBDIR += rubygem-ostruct
     SUBDIR += rubygem-p4ruby
     SUBDIR += rubygem-packwerk
+    SUBDIR += rubygem-packwerk-extensions
     SUBDIR += rubygem-pagy
     SUBDIR += rubygem-paint
     SUBDIR += rubygem-pairing_heap
diff --git a/devel/rubygem-packwerk-extensions/Makefile b/devel/rubygem-packwerk-extensions/Makefile
new file mode 100644
index 000000000000..56e8a350796e
--- /dev/null
+++ b/devel/rubygem-packwerk-extensions/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	packwerk-extensions
+PORTVERSION=	0.3.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Collection of extensions for packwerk packages
+WWW=		https://github.com/rubyatscale/packwerk-extensions
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	rubygem-packwerk>=2.2.1:devel/rubygem-packwerk \
+		rubygem-railties71>=6.0.0:www/rubygem-railties71 \
+		rubygem-sorbet-runtime>=0:devel/rubygem-sorbet-runtime \
+		rubygem-zeitwerk>=0:devel/rubygem-zeitwerk
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-packwerk-extensions/distinfo b/devel/rubygem-packwerk-extensions/distinfo
new file mode 100644
index 000000000000..384118c6ee17
--- /dev/null
+++ b/devel/rubygem-packwerk-extensions/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722711141
+SHA256 (rubygem/packwerk-extensions-0.3.0.gem) = 538297909a396cb478c12c0c125f10c636415b8dac1c0229c81f3cbaeb97c55b
+SIZE (rubygem/packwerk-extensions-0.3.0.gem) = 14336
diff --git a/devel/rubygem-packwerk-extensions/pkg-descr b/devel/rubygem-packwerk-extensions/pkg-descr
new file mode 100644
index 000000000000..9aed5b8bf6d9
--- /dev/null
+++ b/devel/rubygem-packwerk-extensions/pkg-descr
@@ -0,0 +1,12 @@
+packwerk-extensions is a home for checker extensions for packwerk 3.
+
+Currently, it ships the following checkers to help improve the boundaries
+between packages. These checkers are:
+- A privacy checker that ensures other packages are using your package's public
+  API
+- A visibility checker that allows packages to be private except to an explicit
+  group of other packages.
+- A folder_privacy checker that allows packages to their sibling packs and
+  parent pack (to be used in an application that uses folder packs)
+- A layer (formerly architecture) checker that allows packages to specify their
+  "layer" and requires that each layer only communicate with layers below it.