diff --git a/dev-ruby/bootsnap/Manifest b/dev-ruby/bootsnap/Manifest new file mode 100644 index 0000000000000..d18b7828b3c6f --- /dev/null +++ b/dev-ruby/bootsnap/Manifest @@ -0,0 +1 @@ +DIST bootsnap-1.24.6.tar.gz 62596 BLAKE2B 640166df882820558fd778acb18589f0f10542879fcf869336814cf6a1c45068ac03884ecbecd7a5c26f30906e3ac8b07884651f8ba9a807a043256a86459dd9 SHA512 af38f19ee5a7cea7b0a433ac79a2c78a46ae698b5c3851c9c6e85da7be4d04ef60dbc739bf668aa5de15b45e0503f0f684924ca01a0abca713a908a06b949ed2 diff --git a/dev-ruby/bootsnap/bootsnap-1.24.6.ebuild b/dev-ruby/bootsnap/bootsnap-1.24.6.ebuild new file mode 100644 index 0000000000000..6afc77ffda9a2 --- /dev/null +++ b/dev-ruby/bootsnap/bootsnap-1.24.6.ebuild @@ -0,0 +1,51 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34 ruby40" + +RUBY_FAKEGEM_GEMSPEC="bootsnap.gemspec" + +RUBY_FAKEGEM_BINDIR="exe" + +RUBY_FAKEGEM_EXTENSIONS=( ext/bootsnap/extconf.rb ) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/bootsnap" + +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +inherit edo ruby-fakegem + +DESCRIPTION="Boot large ruby/rails apps faster" +HOMEPAGE="https://github.com/rails/bootsnap" +SRC_URI="https://github.com/rails/bootsnap/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +ruby_add_rdepend " + >=dev-ruby/msgpack-1.2 +" +ruby_add_bdepend " + test? ( + dev-ruby/bundler + dev-ruby/minitest:5 + >=dev-ruby/mocha-3 + ) +" + +all_ruby_prepare() { + sed -e 's:`git ls-files -z \(.*\)`:`find \1 -print0`:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/rubocop/ s:^:#:' \ + -e '/rake-compiler/ s:^:#:' \ + -i Gemfile || die + + sed -e '/rake\/extensiontask/ s:^:#:' \ + -e '/Rake::ExtensionTask/,/^end/ s:^:#:' \ + -i Rakefile || die +} diff --git a/dev-ruby/bootsnap/metadata.xml b/dev-ruby/bootsnap/metadata.xml new file mode 100644 index 0000000000000..05bae4d0ec72c --- /dev/null +++ b/dev-ruby/bootsnap/metadata.xml @@ -0,0 +1,12 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + rails/bootsnap + bootsnap + +