diff --git a/dev-ruby/net-http/Manifest b/dev-ruby/net-http/Manifest new file mode 100644 index 000000000000..b9c673646adb --- /dev/null +++ b/dev-ruby/net-http/Manifest @@ -0,0 +1 @@ +DIST net-http-0.6.0.tar.gz 71887 BLAKE2B d9d2436eca6400db4738e72dcff18e5f9e056fb59288f2b263e42bd442230d2e23f63ee98c1b422008f49d68ad5897274d9e5c177ffe71cd6ac7d46370cfe281 SHA512 e21dd64735b5eda4d1b84398c29fc67ba57f6520c7d91b8727c7cd98ab75f4bdceade6219625bf671dfa1282558c68a60dae4b41644b2c2ad6c92134680b62bf diff --git a/dev-ruby/net-http/metadata.xml b/dev-ruby/net-http/metadata.xml new file mode 100644 index 000000000000..4132fca52f21 --- /dev/null +++ b/dev-ruby/net-http/metadata.xml @@ -0,0 +1,12 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + ruby/net-http + net-http + + diff --git a/dev-ruby/net-http/net-http-0.6.0.ebuild b/dev-ruby/net-http/net-http-0.6.0.ebuild new file mode 100644 index 000000000000..c5ef6b9b43e0 --- /dev/null +++ b/dev-ruby/net-http/net-http-0.6.0.ebuild @@ -0,0 +1,34 @@ +# 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="README.md" +RUBY_FAKEGEM_GEMSPEC="net-http.gemspec" +RUBY_FAKEGEM_RECIPE_DOC="none" + +inherit ruby-fakegem + +DESCRIPTION="HTTP client api for Ruby" +HOMEPAGE="https://github.com/ruby/net-http" +SRC_URI="https://github.com/ruby/net-http/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_rdepend " + dev-ruby/uri +" + +ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )" + +all_ruby_prepare() { + sed -e 's/__dir__/"."/' \ + -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +}