aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:13:07 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:23:50 +0000
commit5a20874bf8c4bf516c9f5938af962f35995632a0 (patch)
treee018b303d98a114fe90208d1836c65048f797834
parentddc977031272dfa5b38b98e36d74bce7ecc2944a (diff)
www/rubygem-llhttp-ffi: Add rubygem-llhttp-ffi 0.0.1
This is a monorepo that includes projects for MRI and FFI. Generally speaking, you should prefer the MRI version and fallback to the FFI version for better compatibility. There is parity between the two implementations, but the MRI implementation is more performant. WWW: https://github.com/metabahn/llhttp/tree/main/ffi
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-llhttp-ffi/Makefile20
-rw-r--r--www/rubygem-llhttp-ffi/distinfo3
-rw-r--r--www/rubygem-llhttp-ffi/pkg-descr6
4 files changed, 30 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 83b621c3d533..e4e6cf1c1f0b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1958,6 +1958,7 @@
SUBDIR += rubygem-less
SUBDIR += rubygem-lighthouse-api
SUBDIR += rubygem-link_header
+ SUBDIR += rubygem-llhttp-ffi
SUBDIR += rubygem-lograge
SUBDIR += rubygem-lograge-rails5
SUBDIR += rubygem-lograge-rails52
diff --git a/www/rubygem-llhttp-ffi/Makefile b/www/rubygem-llhttp-ffi/Makefile
new file mode 100644
index 000000000000..c7a1e7938120
--- /dev/null
+++ b/www/rubygem-llhttp-ffi/Makefile
@@ -0,0 +1,20 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= llhttp-ffi
+PORTVERSION= 0.0.1
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Ruby FFI bindings for llhttp
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-ffi-compiler>=1.0<2:devel/rubygem-ffi-compiler \
+ rubygem-rake>=13.0<14:devel/rubygem-rake
+
+USES= gem
+USE_RUBY= yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-llhttp-ffi/distinfo b/www/rubygem-llhttp-ffi/distinfo
new file mode 100644
index 000000000000..33294061a4a1
--- /dev/null
+++ b/www/rubygem-llhttp-ffi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620928555
+SHA256 (rubygem/llhttp-ffi-0.0.1.gem) = 43dda44e70de298e99e4929ce6b545b2e9fb70b2c9e28abfa304a5ddfbbdb7ef
+SIZE (rubygem/llhttp-ffi-0.0.1.gem) = 77824
diff --git a/www/rubygem-llhttp-ffi/pkg-descr b/www/rubygem-llhttp-ffi/pkg-descr
new file mode 100644
index 000000000000..da5ef59039e1
--- /dev/null
+++ b/www/rubygem-llhttp-ffi/pkg-descr
@@ -0,0 +1,6 @@
+This is a monorepo that includes projects for MRI and FFI. Generally speaking,
+you should prefer the MRI version and fallback to the FFI version for better
+compatibility. There is parity between the two implementations, but the MRI
+implementation is more performant.
+
+WWW: https://github.com/metabahn/llhttp/tree/main/ffi