dev-ruby/sync: initial import of 0.5.0
authorHans de Graaff <graaff@gentoo.org>
Tue, 7 Apr 2020 18:22:52 +0000 (20:22 +0200)
committerHans de Graaff <graaff@gentoo.org>
Tue, 7 Apr 2020 18:53:34 +0000 (20:53 +0200)
New dependency for dev-ruby/tins

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/sync/Manifest [new file with mode: 0644]
dev-ruby/sync/metadata.xml [new file with mode: 0644]
dev-ruby/sync/sync-0.5.0.ebuild [new file with mode: 0644]

diff --git a/dev-ruby/sync/Manifest b/dev-ruby/sync/Manifest
new file mode 100644 (file)
index 0000000..05f6e16
--- /dev/null
@@ -0,0 +1 @@
+DIST sync-0.5.0.tar.gz 4957 BLAKE2B 9b4b1710d2468068387d782109199dd45c783b6d7bb0357851f800df2ac4961a72143cfc2b42f522524cf7148694545ae8eab47ee6629062d8ea1505d9095ba0 SHA512 5f887d9169e0be834c7fa17ae42b71078f25ce3d83e695490cd136adc1799d6b92e4aed41ce3f3d57b3ad193a1ac4de940b37212c2864bbf6331ba3582128166
diff --git a/dev-ruby/sync/metadata.xml b/dev-ruby/sync/metadata.xml
new file mode 100644 (file)
index 0000000..ffffb57
--- /dev/null
@@ -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">ruby/sync</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/sync/sync-0.5.0.ebuild b/dev-ruby/sync/sync-0.5.0.ebuild
new file mode 100644 (file)
index 0000000..750cc82
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="A module that provides a two-phase lock with a counter"
+HOMEPAGE="https://github.com/ruby/sync"
+SRC_URI="https://github.com/ruby/sync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+all_ruby_prepare() {
+       sed -i -e 's:require_relative ":require "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}