summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-01-26 08:27:56 +0100
committerHans de Graaff <graaff@gentoo.org>2016-01-26 08:30:17 +0100
commit2d1fe0087d18e91c637da9ccb06bcd03635f9531 (patch)
tree1c42892df088d82db38063477def6ca2ef2c8d85 /dev-ruby/activeresource
parentdev-ruby/activemodel: add rails 3.2.22.1 (diff)
downloadgentoo-2d1fe0087d18e91c637da9ccb06bcd03635f9531.tar.gz
gentoo-2d1fe0087d18e91c637da9ccb06bcd03635f9531.tar.bz2
gentoo-2d1fe0087d18e91c637da9ccb06bcd03635f9531.zip
dev-ruby/activeresource: add rails 3.2.22.1
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/activeresource')
-rw-r--r--dev-ruby/activeresource/Manifest1
-rw-r--r--dev-ruby/activeresource/activeresource-3.2.22.1.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/activeresource/Manifest b/dev-ruby/activeresource/Manifest
index e63317b15480..748a362b55b1 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.tgz 3569215 SHA256 a14fbd69cd1750589cb6f4a79926058595de832dab89372fb479feadc99f0aba SHA512 7321e5fa12cc3f7d6e7c2284f37c183c9bcbe1c9f067c2be5ebdd10f550b0eff561b20558cf885f30b24951bfa88287b3e0fb421eee14579a88a2bcffeaff3ce WHIRLPOOL de54798cbcbf9a0c6d66346267cfbb15991478cc6b4982f9e3a3a80db734af6553f9749b18188c4dc5fa82c60c0294312f648a0e4b5bcb46896bfee75be4dbc0
diff --git a/dev-ruby/activeresource/activeresource-3.2.22.1.ebuild b/dev-ruby/activeresource/activeresource-3.2.22.1.ebuild
new file mode 100644
index 000000000000..96de5c5f938e
--- /dev/null
+++ b/dev-ruby/activeresource/activeresource-3.2.22.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 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
+}