From c07bf106d57932968025eddb23ddb932ca35e8a0 Mon Sep 17 00:00:00 2001 From: Moritz Brunner Date: Wed, 6 Dec 2023 19:55:48 +0100 Subject: [PATCH 1/4] dev-php/ca-bundle: Respect EPREFIX in autoload.php The provided autoload.php file hardcodes library PHP paths to /usr/share/php/..., which is invalid in Prefix installations, since the path will most likely not exist. This commit modifies autoload.php during the installation to include the correct EPREFIX before the file is copied to the final image destination. Closes: https://bugs.gentoo.org/919376 Signed-off-by: Moritz Brunner Signed-off-by: Fabian Groffen --- dev-php/ca-bundle/ca-bundle-1.3.1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild index 9c2a7ab6efa06..98588f2c8b4be 100644 --- a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild +++ b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit prefix + DESCRIPTION="Find the system CA bundle or fall back to the Mozilla one" HOMEPAGE="https://github.com/composer/ca-bundle" SRC_URI="https://github.com/composer/ca-bundle/archive/${PV}.tar.gz -> ${P}.tar.gz" @@ -17,6 +19,7 @@ RDEPEND=" src_install() { insinto /usr/share/php/Composer/CaBundle - doins src/CaBundle.php "${FILESDIR}/autoload.php" + doins src/CaBundle.php \ + "$(prefixify_ro "${FILESDIR}"/autoload.php)" dodoc README.md } From 29bce68743b352b04ebbdaf82ca73a6f526a7fad Mon Sep 17 00:00:00 2001 From: Moritz Brunner Date: Thu, 7 Dec 2023 19:26:23 +0100 Subject: [PATCH 2/4] dev-php/reactphp-promise: Respect EPREFIX in autoload.php The provided autoload.php file hardcodes library PHP paths to /usr/share/php/..., which is invalid in Prefix installations, since the path will most likely not exist. This commit modifies autoload.php during the installation to include the correct EPREFIX before the file is copied to the final image destination. Closes: https://bugs.gentoo.org/919472 Signed-off-by: Moritz Brunner Signed-off-by: Fabian Groffen --- dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild index 3126e02ce036d..3737fbb4c5bff 100644 --- a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild +++ b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild @@ -35,7 +35,7 @@ cat >> src/autoload.php < Date: Mon, 15 Dec 2025 15:03:47 +0100 Subject: [PATCH 3/4] dev-ruby/oauth: add 1.1.3 Signed-off-by: Hans de Graaff --- dev-ruby/oauth/Manifest | 1 + dev-ruby/oauth/metadata.xml | 3 +- dev-ruby/oauth/oauth-1.1.3.ebuild | 50 +++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 dev-ruby/oauth/oauth-1.1.3.ebuild diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest index 74b62443ae9cc..670885b18e469 100644 --- a/dev-ruby/oauth/Manifest +++ b/dev-ruby/oauth/Manifest @@ -1,2 +1,3 @@ DIST oauth-0.6.2.tar.gz 81702 BLAKE2B 2775c0711beb9f3612844ae07ff59953d4db72c0f9a797c6eac49132a021a48481a13f4b1428b2037b0a04b83b5d79e621cccd4a794fe3a339a1ceb468f0b165 SHA512 22f4f734daa42339bbaed1d1d449a4591ef4404aaf8cf1753ba705735a176f6142853b2c4f5e8ff3afa3e9899163af1c5598685664326d58a5b529d94b65441f DIST oauth-1.1.0.tar.gz 77282 BLAKE2B f0916b0137922780981987b2977ce19c1acbb2bfb72a64948be5e530ef8c4a375a32785e5d5f5d64349ff3adf2e05ffbfb1417123ffe0674700062952d8fc0e5 SHA512 bb9025ef279d97077b1c7e03ed402f43dd3fe1921cbd55aa03b1732ce3199578fbb4221991d0d3ab8dd8720354bec2ab8b7c25ed039f10fffd296d1c4e851ff5 +DIST oauth-1.1.3.tar.gz 281541 BLAKE2B 8d284348a9eb3411c0bd246a8ed648645080c6ecd9e8101393a21d5e5f5fd41fce7c5450040d243dcdc1fcc82509ddefd46d70f5df63a73777045899619c9a6f SHA512 e89f12187a966781f1f1bb584c84dd4861bbdf03d3ef6065b3ad1532a2fb41fa3d48b632f9a47c2c59cf4665f62eb7a961ce93003ca1f176756932b738953455 diff --git a/dev-ruby/oauth/metadata.xml b/dev-ruby/oauth/metadata.xml index 92bec6e538334..e2978b8304237 100644 --- a/dev-ruby/oauth/metadata.xml +++ b/dev-ruby/oauth/metadata.xml @@ -6,6 +6,7 @@ Gentoo Ruby Project - oauth-xx/oauth-ruby + ruby-oauth/oauth + oauth diff --git a/dev-ruby/oauth/oauth-1.1.3.ebuild b/dev-ruby/oauth/oauth-1.1.3.ebuild new file mode 100644 index 0000000000000..04db5ab2e95c9 --- /dev/null +++ b/dev-ruby/oauth/oauth-1.1.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO" + +RUBY_FAKEGEM_GEMSPEC="oauth.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="A RubyGem for implementing both OAuth clients and servers" +HOMEPAGE="https://github.com/ruby-oauth/oauth" +SRC_URI="https://github.com/ruby-oauth/oauth/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="test" + +ruby_add_rdepend " + || ( dev-ruby/base64:0.3 dev-ruby/base64:0.2 ) + >=dev-ruby/oauth-tty-1.0.6:1 + dev-ruby/snaky_hash:1 + >=dev-ruby/version_gem-1.1.9:1 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/webmock + dev-ruby/rack + dev-ruby/rest-client + || ( dev-ruby/actionpack:7.2 dev-ruby/actionpack:7.1 ) + || ( dev-ruby/railties:7.2 dev-ruby/railties:7.1 ) +)" + +all_ruby_prepare() { + sed -e 's:_relative ": "./:' \ + -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/kettle/I s:^:#:' \ + -i spec/spec_helper.rb || die + + rm -f spec/oauth/request_proxy/curb_spec.rb || die +} From f6275260a18a1b02de3fff5177639113b5a9882b Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 15 Dec 2025 15:04:28 +0100 Subject: [PATCH 4/4] dev-ruby/oauth: fix metadata indentation Signed-off-by: Hans de Graaff --- dev-ruby/oauth/metadata.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dev-ruby/oauth/metadata.xml b/dev-ruby/oauth/metadata.xml index e2978b8304237..52be780b6fd85 100644 --- a/dev-ruby/oauth/metadata.xml +++ b/dev-ruby/oauth/metadata.xml @@ -1,12 +1,12 @@ - - ruby@gentoo.org - Gentoo Ruby Project - - - ruby-oauth/oauth - oauth - + + ruby@gentoo.org + Gentoo Ruby Project + + + ruby-oauth/oauth + oauth +