commit:     f4490d4e0cb015e593b76c104e85074ce0d8dbd5
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 16 10:45:02 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Mar 16 11:09:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4490d4e

dev-ruby/prettyprint: new package, add 0.2.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/prettyprint/Manifest                 |  1 +
 dev-ruby/prettyprint/metadata.xml             | 12 ++++++++++++
 dev-ruby/prettyprint/prettyprint-0.2.0.ebuild | 26 ++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)

diff --git a/dev-ruby/prettyprint/Manifest b/dev-ruby/prettyprint/Manifest
new file mode 100644
index 000000000000..63a6ba09732c
--- /dev/null
+++ b/dev-ruby/prettyprint/Manifest
@@ -0,0 +1 @@
+DIST prettyprint-0.2.0.tar.gz 9444 BLAKE2B 
7ef8d489916e65c6334401d526ce0674c4d45cc588ba31ccac50f1ea8c43dd10488bd7fff63107902cd1a1ac37e292192c2086bfa146d542adf7a9483fae3084
 SHA512 
9d19c4db7ac19339edaf9596ea03a7b8dae447efe9725b77129e61c8443c181ac77d89d071594e60e2eff9b9081ab72fb7765d698d9a0235ff23233a02262668

diff --git a/dev-ruby/prettyprint/metadata.xml 
b/dev-ruby/prettyprint/metadata.xml
new file mode 100644
index 000000000000..194de33f799d
--- /dev/null
+++ b/dev-ruby/prettyprint/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>r...@gentoo.org</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">ruby/prettyprint</remote-id>
+    <remote-id type="rubygems">prettyprint</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/dev-ruby/prettyprint/prettyprint-0.2.0.ebuild 
b/dev-ruby/prettyprint/prettyprint-0.2.0.ebuild
new file mode 100644
index 000000000000..8c9deaef4be8
--- /dev/null
+++ b/dev-ruby/prettyprint/prettyprint-0.2.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="prettyprint.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Implements a pretty printing algorithm for readable structure"
+HOMEPAGE="https://github.com/ruby/prettyprint";
+SRC_URI="https://github.com/ruby/prettyprint/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 ~ppc-macos ~x64-macos ~x64-solaris"
+
+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
+}

Reply via email to