diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-02-27 07:36:55 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-02-27 07:39:59 +0100 |
commit | 26c7996e27d911573e20d6304cc052b39bf974bf (patch) | |
tree | d81a3246a56ce03fe773d95bac1be96ef0aa1c33 /dev-ruby/io-event | |
parent | dev-ruby/localhost: enable ruby33 (diff) | |
download | gentoo-26c7996e27d911573e20d6304cc052b39bf974bf.tar.gz gentoo-26c7996e27d911573e20d6304cc052b39bf974bf.tar.bz2 gentoo-26c7996e27d911573e20d6304cc052b39bf974bf.zip |
dev-ruby/io-event: add 1.4.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/io-event')
-rw-r--r-- | dev-ruby/io-event/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/io-event/io-event-1.4.4.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/io-event/Manifest b/dev-ruby/io-event/Manifest index 9cd2f9cc6473..25bf8cb12c0e 100644 --- a/dev-ruby/io-event/Manifest +++ b/dev-ruby/io-event/Manifest @@ -3,3 +3,4 @@ DIST io-event-1.2.2.tar.gz 35405 BLAKE2B 9fb96c920524db8111b8d3650f2559df71e262f DIST io-event-1.3.2.tar.gz 45587 BLAKE2B b4a6e03d6470e0e1fd214e8d4ec9c34b44590b949dd3c2206ace0d963a7eb5f0164d4ddddbe7524e3e050869e45fdccce391174342b6185e2a8c29aaa9e8c1fb SHA512 532dcaf2fb658f4770cc99a486adf1c2d853260c9f4b9bc9d411dc1a84f439881b96ba365523c7566f8a87cfb44a375642a92f327c9ea95803183dd552dabd7a DIST io-event-1.3.3.tar.gz 46284 BLAKE2B f2d6fe2a1eb3c1d0f26097847b9b0d464fa274d215f620ffa46e7718d89f97a7ff8bb00b145d29763caed527410d0e3040dab313445e11b26b2ef3891d05f604 SHA512 71391822d2664f9c9534cc474b2e9b052d98f44d7c985b768c93ff2956379f2c107094ba4ab9e376bb3820e085f15187f210566229a31ae493334cf4af073bad DIST io-event-1.4.0.tar.gz 46329 BLAKE2B ece30e2673f14f9529b0808f5725f45ee847c337d08b5547161fa7d9cd2f807cf969ff22a25a21c0869b12b9ccd47a3d12bc6694a97ea49ab18700a30bd8365b SHA512 a7002e6df70180208c2f617d59e72bce98c13b2bde6af459f72bdf7fc0045e989225ddf39acf0be9b33d1d252443cf6cfc0076114dfc2c832732c0f7baa06569 +DIST io-event-1.4.4.tar.gz 46919 BLAKE2B c66b410c1eb3e1b398b2ff8f1cad103f0d75e680b2b79ba8e0144ebfe0d0ce29de4996c2c758447c665231c07a939e31af5f3fc47725be33733dcfed8afcd12e SHA512 f8c7503d5d924de2847a57e6af0b01cb8c1638f4b3060a3afc58ca7cc3a719d5df2fa7b83252d1d761f4a3dc8da68b759797e1d1cd6168ad16421924ef3ef316 diff --git a/dev-ruby/io-event/io-event-1.4.4.ebuild b/dev-ruby/io-event/io-event-1.4.4.ebuild new file mode 100644 index 000000000000..54d45037491d --- /dev/null +++ b/dev-ruby/io-event/io-event-1.4.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="sus" + +inherit ruby-fakegem + +DESCRIPTION="An event loop" +HOMEPAGE="https://github.com/socketry/io-event" +SRC_URI="https://github.com/socketry/io-event/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="+io-uring" + +RDEPEND="io-uring? ( sys-libs/liburing:= )" +DEPEND="${RDEPEND}" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # Avoid dependency on unpackaged covered package + rm -f config/sus.rb || die + + if ! use io-uring ; then + sed -i -e "s:have_library('uring'):have_library('idonotexist_uring'):" ext/extconf.rb || die + fi +} |