commit:     2c4e66f8116b6630875de012faedd68bfe0d723c
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  8 07:28:39 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Feb  8 07:30:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c4e66f8

dev-ruby/multipart-post: add 2.4.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/multipart-post/Manifest                   |  1 +
 .../multipart-post/multipart-post-2.4.0.ebuild     | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/dev-ruby/multipart-post/Manifest b/dev-ruby/multipart-post/Manifest
index eb3c2ed5bdd5..a5203d6c07c4 100644
--- a/dev-ruby/multipart-post/Manifest
+++ b/dev-ruby/multipart-post/Manifest
@@ -1 +1,2 @@
 DIST multipart-post-2.3.0.tar.gz 13151 BLAKE2B 
59ac6cfc743a6aaa285dd14a81fedfb123aa09720dc96a7243de94d45b3b23295d5a7de1cfb61c40c64881ad213fbf2debca49d3b1f6de7e1772c60b7d3c4d78
 SHA512 
ac15090cbf6dc629d57efe4810406571aec8782d021891f1f2764d4f00b735a2282162b06ee140c5b2ad21fd83f3d25028f386768166cef668bb508c235f04b2
+DIST multipart-post-2.4.0.tar.gz 13693 BLAKE2B 
2340aed254d98dd6f2444eaa90009893fc6430aa8f9c1c000522afb7656de2545a734246316adf97d40b87078517005e9dd3f281532a1f966d371cff4875bc1d
 SHA512 
9a96dc66424d8a0575f982c58bc016eda93c17195b968821b342873b4b6b02d8f53ae210fb9eea5adedfa0d9bdd70f78b37a0196782bddcd01bbbfd0e757ac38

diff --git a/dev-ruby/multipart-post/multipart-post-2.4.0.ebuild 
b/dev-ruby/multipart-post/multipart-post-2.4.0.ebuild
new file mode 100644
index 000000000000..3c8e0f964d0f
--- /dev/null
+++ b/dev-ruby/multipart-post/multipart-post-2.4.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="changelog.md readme.md"
+RUBY_FAKEGEM_GEMSPEC="multipart-post.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Adds a streamy multipart form post capability to Net::HTTP"
+HOMEPAGE="https://github.com/socketry/multipart-post";
+SRC_URI="https://github.com/socketry/multipart-post/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+all_ruby_prepare() {
+       sed -i -e '/\(bundler\|covered\)/ s:^:#:' spec/spec_helper.rb || die
+
+       sed -i -e 's:_relative ":"./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       # Remove warnings since these are only actionable for developers,
+       # not for people consuming this package as part of other tools.
+       sed -i -e '/Top level/ s/warn/# warn/' lib/*.rb || die
+}

Reply via email to