diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-03-01 07:50:30 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-03-01 07:50:30 +0100 |
commit | 5c12d8ed9966d90e78613be43a9a1bf06b14c59f (patch) | |
tree | e2e0d44ef02e92d1eae463712d628ea2c2e1c60b /dev-ruby/activeresource | |
parent | dev-ruby/activemodel: add rails 3.2.22.2, bug 576068 (diff) | |
download | gentoo-5c12d8ed9966d90e78613be43a9a1bf06b14c59f.tar.gz gentoo-5c12d8ed9966d90e78613be43a9a1bf06b14c59f.tar.bz2 gentoo-5c12d8ed9966d90e78613be43a9a1bf06b14c59f.zip |
dev-ruby/activeresource: add rails 3.2.22.2, bug 576068
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/activeresource')
-rw-r--r-- | dev-ruby/activeresource/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/activeresource/activeresource-3.2.22.2.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/activeresource/Manifest b/dev-ruby/activeresource/Manifest index a2f7bef57d96..ac7d2939c6fe 100644 --- a/dev-ruby/activeresource/Manifest +++ b/dev-ruby/activeresource/Manifest @@ -1,2 +1,3 @@ DIST activeresource-4.0.0.tgz 69142 SHA256 b2f8094b56c589193fa9c275e4a970fdcd4eb7e7885c8a7a12c86eda6c8d2f37 SHA512 bad94922b7125f79988fb8c6694d6a0370ff1271b47d031e1c249441079e98f75a8069602c1eebf2ec8d7e28aab21b0ca42502c79fe06f46dfa5d42659ff79ab WHIRLPOOL 04120c0a81e140435194ae28a98b4c2ba69e3ef663b7fbf02783839b842c92db70742e4c5d204168dfe4a28caac8d3a8d4c2aea81842959819590544b648d867 DIST rails-3.2.22.1.tgz 3570617 SHA256 0678ec5677e6f70a20aa398b323a3d926531e1da266734ec90c34e111512b0fc SHA512 29b9e7aca818ed08111cc6306edfcbf88969ab2cbb0f36b9a189f8a29c2dec966e3a453d7b9ee9fc0cf06f0786aa493839440a2d6fb338b13b801978b08f4656 WHIRLPOOL b797311ab5420c4663b1617e5fabdc30a66619f1b6a16aa68ed96f5e38f4daff89cecc8bf9f3d7a702f17ae7da6bedf128adad2a3120f50a25ff85aff5cb6527 +DIST rails-3.2.22.2.tgz 3571822 SHA256 6aaef5723f3a409d057ace5500f1743168bde8f45114d9b5d861bb6e05444356 SHA512 b0c1817164168e2b8ae5b748dd1dd88097c2047d2e2eb31e403a5b865a1e50c43f8841a0e60ccdda6d5a859bba9acdfb06462cb8ba93a3e9ecc57dc349f8be13 WHIRLPOOL 8f5e674020a4c00a9a5da6e2e25aceb408ccb01f8adce74128a99cbb602d08da31de44b496a42d86bbf3887830785bfb961c95231d98bb1ce5d17755741dd3e1 diff --git a/dev-ruby/activeresource/activeresource-3.2.22.2.ebuild b/dev-ruby/activeresource/activeresource-3.2.22.2.ebuild new file mode 100644 index 000000000000..7e534e9ced67 --- /dev/null +++ b/dev-ruby/activeresource/activeresource-3.2.22.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="activeresource.gemspec" + +inherit ruby-fakegem versionator + +DESCRIPTION="Think Active Record for web resources" +HOMEPAGE="https://github.com/rails/rails" +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" + +LICENSE="MIT" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend "~dev-ruby/activesupport-${PV} + dev-ruby/builder:3" +ruby_add_bdepend " + test? ( + dev-ruby/test-unit:2 + >=dev-ruby/mocha-0.13.0:0.13 + )" + +all_ruby_prepare() { + # Set test environment to our hand. + rm "${S}/../Gemfile" || die "Unable to remove Gemfile" + sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths" + + # Make sure we use the test-unit gem since ruby18 does not provide + # all the test-unit features needed. + sed -i -e '1igem "test-unit"' test/abstract_unit.rb || die +} |