diff options
-rw-r--r-- | dev-ruby/docker-api/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/docker-api/docker-api-2.2.0.ebuild | 36 | ||||
-rw-r--r-- | dev-ruby/docker-api/metadata.xml | 11 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/docker-api/Manifest b/dev-ruby/docker-api/Manifest new file mode 100644 index 000000000000..aa1274f3bf86 --- /dev/null +++ b/dev-ruby/docker-api/Manifest @@ -0,0 +1 @@ +DIST docker-api-2.2.0.tar.gz 49637 BLAKE2B 1bdcce5e0ca898128434acf7d76306f2c8c08aab8da834bcd129f8be72772073208209b55c9b0397980bdf81e3784c292fe332af5ef5f6bf44d0ab52cfc8259a SHA512 7be935dabb5faf2b05a635c55e1f687ebc16ef9155b9e0daeba7eaffa4c8fda056b54985f8c629b07cdb94558546dd497153174765d2bed6e090a44bc287c53f diff --git a/dev-ruby/docker-api/docker-api-2.2.0.ebuild b/dev-ruby/docker-api/docker-api-2.2.0.ebuild new file mode 100644 index 000000000000..c08afb38ba1c --- /dev/null +++ b/dev-ruby/docker-api/docker-api-2.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="docker-api.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="A simple REST client for the Docker Remote API" +HOMEPAGE="https://github.com/upserve/docker-api" +SRC_URI="https://github.com/upserve/docker-api/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/excon-0.47.0 + dev-ruby/multi_json +" + +all_ruby_prepare() { + sed -i -e 's/git ls-files/find */' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/ s:^:#:' -e '/formatter/ s:^:#:' spec/spec_helper.rb || die + sed -i -e '/\(single_cov\|SingleCov\)/ s:^:#:' spec/*.rb spec/*/*.rb || die + rm -f spec/cov_spec.rb || die + + # Avoid specs requiring a running docker daemon + rm -f spec/docker_spec.rb spec/docker/{container,event,exec,image,network,volume}_spec.rb || die +} diff --git a/dev-ruby/docker-api/metadata.xml b/dev-ruby/docker-api/metadata.xml new file mode 100644 index 000000000000..caf979ebb3b6 --- /dev/null +++ b/dev-ruby/docker-api/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">upserve/docker-api</remote-id> + </upstream> +</pkgmetadata> |