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/activestorage/
Date: Fri, 04 May 2018 04:53:16
Message-Id: 1525409109.e061149437bad235e24034534eaafb3fa476f952.graaff@gentoo
1 commit: e061149437bad235e24034534eaafb3fa476f952
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 4 04:45:09 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 4 04:45:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0611494
7
8 dev-ruby/activestorage: add rails 5.2.0
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-ruby/activestorage/Manifest | 1 +
13 dev-ruby/activestorage/activestorage-5.2.0.ebuild | 50 +++++++++++++++++++++++
14 dev-ruby/activestorage/metadata.xml | 11 +++++
15 3 files changed, 62 insertions(+)
16
17 diff --git a/dev-ruby/activestorage/Manifest b/dev-ruby/activestorage/Manifest
18 new file mode 100644
19 index 00000000000..776994a41f5
20 --- /dev/null
21 +++ b/dev-ruby/activestorage/Manifest
22 @@ -0,0 +1 @@
23 +DIST rails-5.2.0.tgz 9233349 BLAKE2B 8b237f7b039baed6d2a3f19d138f5985443d8543247b01ba316668052fede66820894e3f5ef76a953a4bdb54febecb6299692899556ea029ebfcbcebbaba9409 SHA512 0d7fdbc05a69f7a7b5ce612c0ec8e5dcd51ffb63891d97ca08036d07b3fb3267699dd4a209fd698e5eb2ca8f6c7f4539e86044c3bd15d0c614feda16892d3d85
24
25 diff --git a/dev-ruby/activestorage/activestorage-5.2.0.ebuild b/dev-ruby/activestorage/activestorage-5.2.0.ebuild
26 new file mode 100644
27 index 00000000000..cbf80ddd687
28 --- /dev/null
29 +++ b/dev-ruby/activestorage/activestorage-5.2.0.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +USE_RUBY="ruby22 ruby23 ruby24"
37 +
38 +RUBY_FAKEGEM_TASK_DOC=""
39 +RUBY_FAKEGEM_DOCDIR=""
40 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="activestorage.gemspec"
43 +
44 +RUBY_FAKEGEM_BINWRAP=""
45 +
46 +inherit ruby-fakegem versionator
47 +
48 +DESCRIPTION="Attach cloud and local files in Rails applications"
49 +HOMEPAGE="https://github.com/rails/rails"
50 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
51 +
52 +LICENSE="MIT"
53 +SLOT="$(get_version_component_range 1-2)"
54 +KEYWORDS="~amd64"
55 +IUSE=""
56 +
57 +RUBY_S="rails-${PV}/${PN}"
58 +
59 +ruby_add_rdepend "
60 + ~dev-ruby/actionpack-${PV}:*
61 + ~dev-ruby/activerecord-${PV}:*
62 + >=dev-ruby/marcel-0.3.1 =dev-ruby/marcel-0.3*
63 +"
64 +
65 +ruby_add_bdepend "
66 + test? (
67 + ~dev-ruby/railties-${PV}
68 + dev-ruby/test-unit:2
69 + dev-ruby/mocha
70 + )"
71 +
72 +all_ruby_prepare() {
73 + # Remove items from the common Gemfile that we don't need for this
74 + # test run. This also requires handling some gemspecs.
75 + 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\|aws-sdk-s3\|google-cloud-storage\|azure-storage\|blade\|bootsnap\|hiredis\|qunit-selenium\|chromedriver-helper\|redis\|rb-inotify\|sprockets\|stackprof\|websocket-client-simple\|libxml-ruby\)/ s:^:#:" \
76 + -e '/:job/,/end/ s:^:#:' \
77 + -e '/:test/,/^end/ s:^:#:' \
78 + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
79 + rm ../Gemfile.lock || die
80 +}
81
82 diff --git a/dev-ruby/activestorage/metadata.xml b/dev-ruby/activestorage/metadata.xml
83 new file mode 100644
84 index 00000000000..42d41e33d99
85 --- /dev/null
86 +++ b/dev-ruby/activestorage/metadata.xml
87 @@ -0,0 +1,11 @@
88 +<?xml version="1.0" encoding="UTF-8"?>
89 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 +<pkgmetadata>
91 + <maintainer type="project">
92 + <email>ruby@g.o</email>
93 + <name>Gentoo Ruby Project</name>
94 + </maintainer>
95 + <upstream>
96 + <remote-id type="github">rails/rails</remote-id>
97 + </upstream>
98 +</pkgmetadata>