forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ruby/llhttp-ffi: new package, add 0.4.0
Signed-off-by: matoro <[email protected]> Signed-off-by: Matt Turner <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST llhttp-0.4.0.tar.gz 98406 BLAKE2B 9f7358d988ed00558a36ae80e3c7d38cabb41a2233f32f4e3e6e9ed49a205f85ed84cb76cb07984f3b73b0a67eade4844ed5f4ee98b2453fa5c25d36fcb0082c SHA512 56a491763500b1619492173a83a227e3228847f4b85b8dadab1a9de34d65d5c662615c18d6cc6d5e11226df83381fd7f79f67e12f89f0e437ada8f9fd083ec26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
USE_RUBY="ruby26 ruby27 ruby30 ruby31" | ||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" | ||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" | ||
|
||
inherit ruby-fakegem | ||
|
||
DESCRIPTION="Ruby FFI bindings for llhttp" | ||
HOMEPAGE="https://github.com/metabahn/llhttp" | ||
MY_PV="2021-09-09" | ||
SRC_URI="https://github.com/metabahn/llhttp/archive/refs/tags/${MY_PV}.tar.gz -> llhttp-${PV}.tar.gz" | ||
|
||
LICENSE="MPL-2.0" | ||
SLOT="$(ver_cut 1)/$(ver_cut 1-2)" | ||
KEYWORDS="~amd64 ~sparc" | ||
IUSE="" | ||
RUBY_S="llhttp-${MY_PV}/ffi" | ||
|
||
ruby_add_rdepend "=dev-ruby/ffi-compiler-1*" | ||
|
||
ruby_add_bdepend "test? ( dev-ruby/async-io )" | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Gentoo Ruby Project</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">metabahn/llhttp</remote-id> | ||
</upstream> | ||
</pkgmetadata> |