summaryrefslogtreecommitdiff
path: root/dev-ruby/llhttp-ffi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-09 05:33:51 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-09 05:33:51 +0100
commit3e1b17a1a1b2bac1314c0ea171fbd05bb098f02b (patch)
tree894494ae2d3f739b3d903c4331c6ac82b57f14e4 /dev-ruby/llhttp-ffi
parent900dd293f8087dff1643b45d7b836702a9ea8fd9 (diff)
gentoo auto-resync : 09:04:2023 - 05:33:50
Diffstat (limited to 'dev-ruby/llhttp-ffi')
-rw-r--r--dev-ruby/llhttp-ffi/Manifest5
-rw-r--r--dev-ruby/llhttp-ffi/files/llhttp-ffi-0.5.0-fix-rake-clean.patch18
-rw-r--r--dev-ruby/llhttp-ffi/llhttp-ffi-0.4.0.ebuild4
-rw-r--r--dev-ruby/llhttp-ffi/llhttp-ffi-0.5.0.ebuild49
4 files changed, 73 insertions, 3 deletions
diff --git a/dev-ruby/llhttp-ffi/Manifest b/dev-ruby/llhttp-ffi/Manifest
index fc1e1a7af394..cd886203b210 100644
--- a/dev-ruby/llhttp-ffi/Manifest
+++ b/dev-ruby/llhttp-ffi/Manifest
@@ -1,3 +1,6 @@
+AUX llhttp-ffi-0.5.0-fix-rake-clean.patch 462 BLAKE2B 3aa6d3bab2a832b798f1e3c359298288e4b96544d60be119e0e830165112288d32cb748997be7e83ed367f355ba6203864640cca71a9ce0e2499600b10d553ec SHA512 76ac6975c5b1d1bb6615a68dd749feea00c5c7d4e8e0fa9fc214edbbc61f0fa5f8d109a67d5a2fa9fa6a51020098260bc665dc4b7416046ca836ba79b8a4d263
DIST llhttp-0.4.0.tar.gz 98406 BLAKE2B 9f7358d988ed00558a36ae80e3c7d38cabb41a2233f32f4e3e6e9ed49a205f85ed84cb76cb07984f3b73b0a67eade4844ed5f4ee98b2453fa5c25d36fcb0082c SHA512 56a491763500b1619492173a83a227e3228847f4b85b8dadab1a9de34d65d5c662615c18d6cc6d5e11226df83381fd7f79f67e12f89f0e437ada8f9fd083ec26
-EBUILD llhttp-ffi-0.4.0.ebuild 1200 BLAKE2B 4f22459126c2d85467e347119d1589f79cc44f50630e18f388d44fa900a8262b845a36152e7928deb22b93c476ed51c316a985da5b077794cc4e15c184d1ac8b SHA512 ed9d467da8a0c13e08b66283e5dd279a4af238028b69da6d43ae32a21244cedc4252643c5108d0ef34f6593c4c78c3605d41305ce546f6fda20ee826c56d924a
+DIST llhttp-2023-03-29.tar.gz 114103 BLAKE2B 7af75703a748518c2c4b8840ac08089d3c3e79f9652278bd41e591f09b9091f5fa8195c530992e51811f065004adbc533b92d49097e9f05a2aa98b44b47da9ac SHA512 058bf8a8bd7de6bf29794bc60bd9811d769acc9488cfc535d619ee24a79ba37edf3bcbdbffd40d747576024e7aca3c99cb71d9db1aa5af00991d7672c5f4bb70
+EBUILD llhttp-ffi-0.4.0.ebuild 1206 BLAKE2B 2133bf832cdfc69f37f308adf2cedf45b38559d5b0a4f5915d61be6af48731af7686e68fc4d4802a14266ebdb979ecda01dc25296be253f7c5d2527b1c8cc533 SHA512 f082e46f222a0167449b2815a74a47f5f4a5c5e383f35c7d80c5fca37390ce531fb9ad33fe3de4c92c7ec5ce5d1d0195a15638b060a0f5c1fcf64ae1eb9dffe2
+EBUILD llhttp-ffi-0.5.0.ebuild 1386 BLAKE2B 2c588e0baf37b5a73f893049c0a1536bc27326ccd40b701ef956ccb5d4a3aedc507ca144f8fd2e4760a7220510a0a91ec9ea13a1340ce3129dd489a3c162ec6d SHA512 11192eb8a1d4147add827572123ff2fdf92ee957a17eeb147c0562d6cc66b47ba95ed6ac0064902c8fc5a547d5a1532e66204d3a1e861d5fce268a7e826c2b41
MISC metadata.xml 342 BLAKE2B fed02fc3abfc46f4d9c46eac8333aada41c709559f1200c9505b6e19b24cd4af9e03d36fa5a701c1cc7406bc1f8c3499c23c29d390dfcfae9e7aa2883dedd97a SHA512 582e050c2e5e5659e05d5998bffc07aebb8603d2a817bd29527ccc0b4a98fc8a5b8326664f34eca8f7267fc0f56b9d81539b49a20eb58a7b5ba133e75808d248
diff --git a/dev-ruby/llhttp-ffi/files/llhttp-ffi-0.5.0-fix-rake-clean.patch b/dev-ruby/llhttp-ffi/files/llhttp-ffi-0.5.0-fix-rake-clean.patch
new file mode 100644
index 000000000000..23d85a4a3bbe
--- /dev/null
+++ b/dev-ruby/llhttp-ffi/files/llhttp-ffi-0.5.0-fix-rake-clean.patch
@@ -0,0 +1,18 @@
+https://github.com/bryanp/llhttp/commit/89551cd7fa539d7073e62ba8f6ba1dd70e73c36a
+
+From 89551cd7fa539d7073e62ba8f6ba1dd70e73c36a Mon Sep 17 00:00:00 2001
+From: Bryan Powell <bryan@metabahn.com>
+Date: Wed, 29 Mar 2023 07:27:08 -0700
+Subject: [PATCH] Fix ffi clean
+
+--- a/Rakefile
++++ b/Rakefile
+@@ -16,6 +16,8 @@ task :clean do
+ [
+ "./lib/llhttp/llhttp_ext.bundle"
+ ].each do |file|
++ next unless File.exist?(file)
++
+ FileUtils.rm(file)
+ end
+ end
diff --git a/dev-ruby/llhttp-ffi/llhttp-ffi-0.4.0.ebuild b/dev-ruby/llhttp-ffi/llhttp-ffi-0.4.0.ebuild
index 634c3b609568..661a110f4fd1 100644
--- a/dev-ruby/llhttp-ffi/llhttp-ffi-0.4.0.ebuild
+++ b/dev-ruby/llhttp-ffi/llhttp-ffi-0.4.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/metabahn/llhttp/archive/refs/tags/${MY_PV}.tar.gz ->
LICENSE="MPL-2.0"
SLOT="$(ver_cut 1)/$(ver_cut 1-2)"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RUBY_S="llhttp-${MY_PV}/ffi"
diff --git a/dev-ruby/llhttp-ffi/llhttp-ffi-0.5.0.ebuild b/dev-ruby/llhttp-ffi/llhttp-ffi-0.5.0.ebuild
new file mode 100644
index 000000000000..b8c72d2e5cd4
--- /dev/null
+++ b/dev-ruby/llhttp-ffi/llhttp-ffi-0.5.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+MY_PV="2023-03-29"
+DESCRIPTION="Ruby FFI bindings for llhttp"
+HOMEPAGE="https://github.com/metabahn/llhttp"
+# Use -> ${MY_PV} in SRC_URI here to help spot forgotten MY_PV updates
+# (pkgcheck will warn on matching checksums)
+SRC_URI="https://github.com/metabahn/llhttp/archive/refs/tags/${MY_PV}.tar.gz -> llhttp-${MY_PV}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="$(ver_cut 1)/$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+RUBY_S="llhttp-${MY_PV}/ffi"
+
+ruby_add_rdepend "=dev-ruby/ffi-compiler-1*"
+
+ruby_add_bdepend "test? (
+ dev-ruby/async-io
+ dev-ruby/rspec:3
+)"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.0-fix-rake-clean.patch
+)
+
+all_ruby_prepare() {
+ sed -i -e 's/gem "rake-compiler"//g' "Gemfile" || die
+}
+
+each_ruby_compile() {
+ cd ext && "${RUBY}" -S rake || die
+ local FFI_PLATFORM_NAME="$(${RUBY} --disable=did_you_mean -e "require 'ffi' ; p \"#{FFI::Platform::ARCH}-#{FFI::Platform::OS}\"" | tr -d "\"")"
+ install -D "${FFI_PLATFORM_NAME}/libllhttp-ext.so" "../lib/${FFI_PLATFORM_NAME}/libllhttp-ext.so" || die
+}
+
+each_ruby_install() {
+ each_fakegem_install
+ ruby_fakegem_extensions_installed
+}