diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-05-16 06:13:42 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-05-16 06:21:50 +0000 |
commit | 8d3d94495004e8ef85dec4b88353dd5edbf60305 (patch) | |
tree | 92743f3ac70ba645a43d10aba44658f4792dd5f5 | |
parent | b5932aba5e6a74eb6ac59e71e3edd0357d7844a5 (diff) | |
download | ports-8d3d94495004e8ef85dec4b88353dd5edbf60305.tar.gz ports-8d3d94495004e8ef85dec4b88353dd5edbf60305.zip |
devel/rubygem-thread-local: Add rubygem-thread-local 1.1.0
Thread::Local provides a simple high level interface for per-class thread
locals. Implements a standard interface for "shared global state". It avoids
reinventing thread-local semantics in your own code by using this
implementation.
Features:
- Convert global state to thread local state easily.
- Avoid race conditions and data corruption.
- Provides a standard interface for policy driven design.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/rubygem-thread-local/Makefile | 16 | ||||
-rw-r--r-- | devel/rubygem-thread-local/distinfo | 3 | ||||
-rw-r--r-- | devel/rubygem-thread-local/pkg-descr | 9 |
4 files changed, 29 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 1e37b5b9ba7b..f8795fcf4e26 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7618,6 +7618,7 @@ SUBDIR += rubygem-thor SUBDIR += rubygem-thor0 SUBDIR += rubygem-thor12 + SUBDIR += rubygem-thread-local SUBDIR += rubygem-thread_safe SUBDIR += rubygem-thrift SUBDIR += rubygem-thwait diff --git a/devel/rubygem-thread-local/Makefile b/devel/rubygem-thread-local/Makefile new file mode 100644 index 000000000000..810488ed5e85 --- /dev/null +++ b/devel/rubygem-thread-local/Makefile @@ -0,0 +1,16 @@ +PORTNAME= thread-local +PORTVERSION= 1.1.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Provide a class-level mixin to make thread local state easy +WWW= https://github.com/socketry/thread-local + +LICENSE= MIT + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/rubygem-thread-local/distinfo b/devel/rubygem-thread-local/distinfo new file mode 100644 index 000000000000..f6196375eb76 --- /dev/null +++ b/devel/rubygem-thread-local/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227814 +SHA256 (rubygem/thread-local-1.1.0.gem) = 2fb568d31f0ef278063f45a3923c5ed62ee5c33da8134103bc7d2ecdb87bd2e7 +SIZE (rubygem/thread-local-1.1.0.gem) = 6144 diff --git a/devel/rubygem-thread-local/pkg-descr b/devel/rubygem-thread-local/pkg-descr new file mode 100644 index 000000000000..094aa784cd7f --- /dev/null +++ b/devel/rubygem-thread-local/pkg-descr @@ -0,0 +1,9 @@ +Thread::Local provides a simple high level interface for per-class thread +locals. Implements a standard interface for "shared global state". It avoids +reinventing thread-local semantics in your own code by using this +implementation. + +Features: +- Convert global state to thread local state easily. +- Avoid race conditions and data corruption. +- Provides a standard interface for policy driven design. |