summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-02-12 11:06:26 +0100
committerHans de Graaff <graaff@gentoo.org>2022-02-13 10:06:07 +0100
commitd3f5d0f0baca359f9f716a06905ff842459dc77f (patch)
treedbad79c1dea346b63a3af57dc9d3e676dfb1cc3e /dev-ruby
parentdev-ruby/io-wait: add 0.2.1 (diff)
downloadgentoo-d3f5d0f0baca359f9f716a06905ff842459dc77f.tar.gz
gentoo-d3f5d0f0baca359f9f716a06905ff842459dc77f.tar.bz2
gentoo-d3f5d0f0baca359f9f716a06905ff842459dc77f.zip
dev-ruby/net-protocol: import 0.1.2
Extracted from dev-lang/ruby, keywords have been migrated. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/net-protocol/Manifest1
-rw-r--r--dev-ruby/net-protocol/metadata.xml11
-rw-r--r--dev-ruby/net-protocol/net-protocol-0.1.2.ebuild32
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/net-protocol/Manifest b/dev-ruby/net-protocol/Manifest
new file mode 100644
index 000000000000..a130a5857eab
--- /dev/null
+++ b/dev-ruby/net-protocol/Manifest
@@ -0,0 +1 @@
+DIST net-protocol-0.1.2.tar.gz 17603 BLAKE2B 2d5dd2437d2d10e82c20e17884b80259b7cb5b5ef626f4dc054515adaff46143b46754fc375f66e5754aa81a72372784b389864bbed249c6df59d64331c47672 SHA512 959b426ab3fb388d42ccd5b21e60878b58e606ec21d651d232d706c40908c6b53c14ce16362ca3c32cb40da1238baf79127d870788adc8b23884204f4426f9d7
diff --git a/dev-ruby/net-protocol/metadata.xml b/dev-ruby/net-protocol/metadata.xml
new file mode 100644
index 000000000000..ef1fa334805f
--- /dev/null
+++ b/dev-ruby/net-protocol/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://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">ruby/net-protocol</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/net-protocol/net-protocol-0.1.2.ebuild b/dev-ruby/net-protocol/net-protocol-0.1.2.ebuild
new file mode 100644
index 000000000000..69e07b69b2c4
--- /dev/null
+++ b/dev-ruby/net-protocol/net-protocol-0.1.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="net-protocol.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="The abstruct interface for net-* client"
+HOMEPAGE="https://github.com/ruby/net-protocol"
+SRC_URI="https://github.com/ruby/net-protocol/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend "
+ dev-ruby/io-wait
+ dev-ruby/timeout
+"
+
+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
+}