commit: 9446a455a36613fb1b8e5ea2a67be424f86308d6 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Dec 6 10:30:08 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Dec 6 10:30:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9446a455
dev-ruby/ruby-shadow: respect CFLAGS Closes: https://bugs.gentoo.org/723956 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild b/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild index 7ed501bd6700..227739a0159b 100644 --- a/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild +++ b/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild @@ -14,7 +14,7 @@ RUBY_FAKEGEM_EXTENSIONS=(./extconf.rb) inherit ruby-fakegem DESCRIPTION="ruby shadow bindings" -HOMEPAGE="https://github.com/apalmblad/ruby-shadow http://ttsky.net" +HOMEPAGE="https://github.com/apalmblad/ruby-shadow" LICENSE="|| ( public-domain Unlicense )" SLOT="0" @@ -22,3 +22,8 @@ KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ~ppc64 ~riscv ~sparc x86" IUSE="" PATCHES=( "${FILESDIR}/${P}-ruby32.patch" ) + +all_ruby_prepare() { + sed -e '16i$CFLAGS += ENV["CFLAGS"]' \ + -i extconf.rb || die +}