diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-27 03:04:55 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-27 03:04:55 -0500 |
| commit | cae7be1ab2bd23fee3929a8e940d968ee86a78e6 (patch) | |
| tree | 97cc406771ec329a0480aab0f7fad2319be66e5c /dev-ruby/localhost | |
| parent | 704373259ee68c274d8ce04949a32d64de4b6014 (diff) | |
| download | baldeagleos-repo-cae7be1ab2bd23fee3929a8e940d968ee86a78e6.tar.gz baldeagleos-repo-cae7be1ab2bd23fee3929a8e940d968ee86a78e6.tar.xz baldeagleos-repo-cae7be1ab2bd23fee3929a8e940d968ee86a78e6.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/localhost')
| -rw-r--r-- | dev-ruby/localhost/localhost-1.7.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/localhost/localhost-1.7.0-r1.ebuild b/dev-ruby/localhost/localhost-1.7.0-r1.ebuild new file mode 100644 index 000000000000..3ec6a16b8d04 --- /dev/null +++ b/dev-ruby/localhost/localhost-1.7.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34 ruby40" + +RUBY_FAKEGEM_EXTRADOC="readme.md releases.md" +RUBY_FAKEGEM_GEMSPEC="localhost.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="sus" + +inherit ruby-fakegem + +DESCRIPTION="Manage a local CA for self-signed localhost development servers" +HOMEPAGE="https://github.com/socketry/localhost" +SRC_URI="https://github.com/socketry/localhost/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~riscv ~sparc ~x86" + +ruby_add_bdepend " + test? ( + dev-ruby/io-endpoint + dev-ruby/sus-fixtures-async + ) +" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/covered/Id' config/sus.rb || die + + sed -e "s:/tmp/state:${TMP}/state:" \ + -i test/localhost/state.rb || die + + # Avoid unpackaged sus-fixtures-async-http which has a huge dependency tree. + rm -f test/localhost/protocol.rb || die +} + +each_ruby_test() { + # Tests fail in parallel as it tries to use the same port so + # manually replicate ruby-ng_sus for now, as ruby-ng_sus runs sus-parallel. + ${RUBY} -S sus || die +} |
