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/actiontext/
Date: Sat, 31 Aug 2019 08:09:17
Message-Id: 1567238944.f40d43bf3f722549210a9fe54c51c73a33d10927.graaff@gentoo
1 commit: f40d43bf3f722549210a9fe54c51c73a33d10927
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 31 06:33:21 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 31 08:09:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f40d43bf
7
8 dev-ruby/actiontext: initial import of 6.0.0
9
10 New dependency for dev-ruby/rails
11
12 Package-Manager: Portage-2.3.69, Repoman-2.3.16
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14
15 dev-ruby/actiontext/Manifest | 1 +
16 dev-ruby/actiontext/actiontext-6.0.0.ebuild | 51 +++++++++++++++++++++++++++++
17 dev-ruby/actiontext/metadata.xml | 11 +++++++
18 3 files changed, 63 insertions(+)
19
20 diff --git a/dev-ruby/actiontext/Manifest b/dev-ruby/actiontext/Manifest
21 new file mode 100644
22 index 00000000000..03ea57a167f
23 --- /dev/null
24 +++ b/dev-ruby/actiontext/Manifest
25 @@ -0,0 +1 @@
26 +DIST rails-6.0.0.tgz 18543484 BLAKE2B 614e71481a3a5ece629f49d0ef623b5352e165b5d46a736ccb747614d6c1fd56d4aaba2f2f32d48d81772cfd4db671d94a67cd3ffa395f29bf2de1f148fa57ed SHA512 3a2259fe2b3ffd0ddc9128e1aa58af57006b8410120a3629926b95fbe60b8658edab77929e26d9323c61a1855a4379e73f1ddbe875324b068a9e8bdde6ca55e6
27
28 diff --git a/dev-ruby/actiontext/actiontext-6.0.0.ebuild b/dev-ruby/actiontext/actiontext-6.0.0.ebuild
29 new file mode 100644
30 index 00000000000..a70a3765a19
31 --- /dev/null
32 +++ b/dev-ruby/actiontext/actiontext-6.0.0.ebuild
33 @@ -0,0 +1,51 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +USE_RUBY="ruby25 ruby26"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="none"
41 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
42 +
43 +RUBY_FAKEGEM_GEMSPEC="actiontext.gemspec"
44 +
45 +RUBY_FAKEGEM_BINWRAP=""
46 +RUBY_FAKEGEM_EXTRAINSTALL="app db package.json"
47 +
48 +inherit ruby-fakegem
49 +
50 +DESCRIPTION="Edit and display rich text in Rails applications"
51 +HOMEPAGE="https://github.com/rails/rails"
52 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
53 +
54 +LICENSE="MIT"
55 +SLOT="$(ver_cut 1-2)"
56 +KEYWORDS="~amd64"
57 +IUSE=""
58 +
59 +RUBY_S="rails-${PV}/${PN}"
60 +
61 +ruby_add_rdepend "
62 + ~dev-ruby/actionpack-${PV}
63 + ~dev-ruby/activerecord-${PV}
64 + ~dev-ruby/activestorage-${PV}
65 + ~dev-ruby/activesupport-${PV}
66 + >=dev-ruby/nokogiri-1.8.5
67 +"
68 +
69 +ruby_add_bdepend "test? (
70 + dev-ruby/mocha
71 +)"
72 +
73 +all_ruby_prepare() {
74 + # Remove items from the common Gemfile that we don't need for this
75 + # test run. This also requires handling some gemspecs.
76 + sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|sprockets\|stackprof\|websocket-client-simple\|libxml-ruby\|redis\|blade\|aws-sdk\|google-cloud\|azure-storage\|selenium\|webdrivers\|minitest-bisect\|minitest-retry\|minitest-reporters\)/ s:^:#:" \
77 + -e '/:job/,/end/ s:^:#:' \
78 + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
79 + rm ../Gemfile.lock || die
80 +}
81 +
82 +each_ruby_prepare() {
83 + sed -i -e 's:ruby:'${RUBY}':' test/dummy/bin/* || die
84 +}
85
86 diff --git a/dev-ruby/actiontext/metadata.xml b/dev-ruby/actiontext/metadata.xml
87 new file mode 100644
88 index 00000000000..42d41e33d99
89 --- /dev/null
90 +++ b/dev-ruby/actiontext/metadata.xml
91 @@ -0,0 +1,11 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <maintainer type="project">
96 + <email>ruby@g.o</email>
97 + <name>Gentoo Ruby Project</name>
98 + </maintainer>
99 + <upstream>
100 + <remote-id type="github">rails/rails</remote-id>
101 + </upstream>
102 +</pkgmetadata>