diff --git a/dev-ruby/prettyprint/Manifest b/dev-ruby/prettyprint/Manifest new file mode 100644 index 0000000000000..63a6ba09732c6 --- /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 0000000000000..194de33f799d0 --- /dev/null +++ b/dev-ruby/prettyprint/metadata.xml @@ -0,0 +1,12 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + ruby/prettyprint + prettyprint + + 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 0000000000000..8c9deaef4be8e --- /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 +}