commit: 640bc9b24afd1f653285f42db2cfeff8c0b7239f Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Mon Mar 17 12:06:55 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Mon Mar 17 12:07:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=640bc9b2
dev-ruby/pp: new package, add 0.6.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/pp/Manifest | 1 + dev-ruby/pp/metadata.xml | 12 ++++++++++++ dev-ruby/pp/pp-0.6.2.ebuild | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) diff --git a/dev-ruby/pp/Manifest b/dev-ruby/pp/Manifest new file mode 100644 index 000000000000..f2ca7cb513aa --- /dev/null +++ b/dev-ruby/pp/Manifest @@ -0,0 +1 @@ +DIST pp-0.6.2.tar.gz 12063 BLAKE2B 7e76e95f8fe5873c9989037bcaf2df228561ec76c38215db2e5e243fbb058359fff000b1b0f1565e3cb1cc1e4a7a17f8b9d3838d0126495e94a34d67b4591621 SHA512 37657cc53f0522dde19c8be52c8eea805e8ba8b651d233e3c1096dbd6c8722f22d012548f0972ae95c915cb64b4bf2a51ba3bae5fdc5f1b5632b6cbf1774fc5c diff --git a/dev-ruby/pp/metadata.xml b/dev-ruby/pp/metadata.xml new file mode 100644 index 000000000000..e072441d3b5e --- /dev/null +++ b/dev-ruby/pp/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>[email protected]</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">ruby/pp</remote-id> + <remote-id type="rubygems">pp</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/pp/pp-0.6.2.ebuild b/dev-ruby/pp/pp-0.6.2.ebuild new file mode 100644 index 000000000000..d02dac173df9 --- /dev/null +++ b/dev-ruby/pp/pp-0.6.2.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="pp.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Provides a PrettyPrinter for Ruby objects" +HOMEPAGE="https://github.com/ruby/pp" +SRC_URI="https://github.com/ruby/pp/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 +}
