Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/propshaft/
Date: Sun, 20 Feb 2022 08:06:24
Message-Id: 1645344372.fd7a34b483e858d68d853ddcc72c30fa7b813a94.graaff@gentoo
1 commit: fd7a34b483e858d68d853ddcc72c30fa7b813a94
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 08:06:12 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 08:06:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd7a34b4
7
8 dev-ruby/propshaft: import of 0.6.1
9
10 New dependency for Rails 7.0
11
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14
15 dev-ruby/propshaft/Manifest | 1 +
16 dev-ruby/propshaft/metadata.xml | 11 ++++++++++
17 dev-ruby/propshaft/propshaft-0.6.1.ebuild | 36 +++++++++++++++++++++++++++++++
18 3 files changed, 48 insertions(+)
19
20 diff --git a/dev-ruby/propshaft/Manifest b/dev-ruby/propshaft/Manifest
21 new file mode 100644
22 index 000000000000..9604fec31116
23 --- /dev/null
24 +++ b/dev-ruby/propshaft/Manifest
25 @@ -0,0 +1 @@
26 +DIST propshaft-0.6.1-git.tgz 245087 BLAKE2B 6e04ebc0315c263f79dbfc9f836b270b8b693e1a7e332a97d8abe5cc6555d0acc9efe3ae7979c901ca2c502460e8ee67b83420863d5dabdf50fbc2028aacd5b9 SHA512 35600b7e051810c7f0798f29faab7c7bcabf04198fc56ee9a4492d18ddfabf543cfbf11c28f35eb5e2a64eb57c65b95567e00441852ac0f29d8538ad8d5cb1b4
27
28 diff --git a/dev-ruby/propshaft/metadata.xml b/dev-ruby/propshaft/metadata.xml
29 new file mode 100644
30 index 000000000000..51bcb44a79fe
31 --- /dev/null
32 +++ b/dev-ruby/propshaft/metadata.xml
33 @@ -0,0 +1,11 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="project">
38 + <email>ruby@g.o</email>
39 + <name>Gentoo Ruby Project</name>
40 + </maintainer>
41 + <upstream>
42 + <remote-id type="github">rails/propshaft</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-ruby/propshaft/propshaft-0.6.1.ebuild b/dev-ruby/propshaft/propshaft-0.6.1.ebuild
47 new file mode 100644
48 index 000000000000..7bfc73881f6a
49 --- /dev/null
50 +++ b/dev-ruby/propshaft/propshaft-0.6.1.ebuild
51 @@ -0,0 +1,36 @@
52 +# Copyright 1999-2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +USE_RUBY="ruby27"
57 +
58 +RUBY_FAKEGEM_BINWRAP=""
59 +RUBY_FAKEGEM_EXTRADOC="README.md"
60 +
61 +RUBY_FAKEGEM_GEMSPEC="propshaft.gemspec"
62 +
63 +inherit ruby-fakegem
64 +
65 +DESCRIPTION="Deliver assets for Rails"
66 +HOMEPAGE="https://github.com/rails/propshaft"
67 +SRC_URI="https://github.com/rails/propshaft/archive/v${PV}.tar.gz -> ${P}-git.tgz"
68 +
69 +LICENSE="MIT"
70 +SLOT="$(ver_cut 1)"
71 +KEYWORDS="~amd64"
72 +
73 +IUSE=""
74 +
75 +ruby_add_rdepend "
76 + >=dev-ruby/actionpack-7.0.0:*
77 + >=dev-ruby/activesupport-7.0.0:*
78 + dev-ruby/rack:*
79 + >=dev-ruby/railties-7.0.0:*
80 +"
81 +
82 +all_ruby_prepare() {
83 + rm -f Gemfile.lock || die
84 + sed -i -e '/debug/ s:^:#:' Gemfile || die
85 +
86 + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
87 +}