diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-07-18 08:46:42 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-07-18 08:48:51 +0200 |
commit | bcc053769e043f3c05322a63af2731a61bf696dc (patch) | |
tree | 66794bff6b15ba5203d92c0dad4bf4a618a98f55 | |
parent | 3d64712238aedfc41317213edddcf26c0a3d0a3a (diff) | |
download | gentoo-bcc053769e043f3c05322a63af2731a61bf696dc.tar.gz gentoo-bcc053769e043f3c05322a63af2731a61bf696dc.tar.xz |
dev-ruby/railties: add rails 4.2.7 with ruby23
Package-Manager: portage-2.2.28
-rw-r--r-- | dev-ruby/railties/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/railties/railties-4.2.7.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-ruby/railties/Manifest b/dev-ruby/railties/Manifest index c1bf85fdc3e..3bf573b4def 100644 --- a/dev-ruby/railties/Manifest +++ b/dev-ruby/railties/Manifest @@ -3,3 +3,4 @@ DIST rails-4.0.13.tgz 3761572 SHA256 a693a8c5f767d153e765634cecb6356855ca51b6554 DIST rails-4.1.15.tgz 3729946 SHA256 df54609b05298f5c0c9eb4e00bb82c61133d955021fe58ffab2efacd76ac6ce5 SHA512 0a8c944fece6c060718f0c7769ae80baa161357ac8b49e69a11e9bbf43476c633cd3ed51b13e3c0f364e47b3167879de5f57146e76f01a59e026b97166aeba2c WHIRLPOOL 75fbd9a1e7b988c47c7a26bffb5e58cd2c33af9a5e83b03ecee09b35c7497d82aa580fd20dbdf34237b9d9594ed772a346e32d6430becc1fdf854581c8ebef8e DIST rails-4.1.16.tgz 3730763 SHA256 fd17ccacee3a61c17d2cfa36db36f583ed3d05eac504e4bb06ec65629965f499 SHA512 d342ab0ede9f4642d809114fb8518d09a63da8bda66f866f2f81646b247d7da2235e81f818793ae86c4c2365624d5b35898d4f1693093019d3639a1dcb872ac1 WHIRLPOOL fe1bc9866c5005f8232a3d339811afe183aef53c1f1d8a8a9250b447e941309cb415592309d8bb3367add028a98c5cdb4cc6180d0f49e1c76337668763460536 DIST rails-4.2.6.tgz 4179056 SHA256 68bf40c27e0ee75b26c7b48fbe357f024b8d6d322a4ecf5c3427b4d6ef959fef SHA512 040599aa1c6a09ca569f377b1f49a4404d9516599d16d6909f93ffd2e387dfb20835a2842980cc5c119aaef411985e47f55ec8907041ff633b8f98ea101a42d0 WHIRLPOOL 1aef2ff5790fa94f1003fa6acdcad26b7bcb6a6a02f075e41a6ba5a5b77790420afa57ea64d3192e92de595161ba3741e7e7f8be7dbac6871ba5137a53f81efe +DIST rails-4.2.7.tgz 4181136 SHA256 31005bc5892ef4d478016f4ef66c7708d0bfc440d917dac8a5e84a461fa2a980 SHA512 89df542cac1cf31be376fff3d919860168ce5df0dcd51035411a7f82a59a6fc27d8aecdd92dc20dee59831745ecab1ff8e404756dbc85a1ec08c3f2c1721e7dc WHIRLPOOL 15653098db0702b5e76e6fc4eba0f4fa6eaf73b30a23d1bf10e08cd999452608325ebba25c87b85d790ab49cf8ba216f40ee4dc25bd072cc8be89546af378542 diff --git a/dev-ruby/railties/railties-4.2.7.ebuild b/dev-ruby/railties/railties-4.2.7.ebuild new file mode 100644 index 00000000000..a12e7d10813 --- /dev/null +++ b/dev-ruby/railties/railties-4.2.7.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_TEST="test:regular" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="railties.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem versionator + +DESCRIPTION="Tools for creating, working with, and running Rails applications" +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 ~ppc64 ~amd64-linux" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +# The test suite has many failures, most likely due to a mismatch in +# exact dependencies or environment specifics. Needs further +# investigation. +RESTRICT="test" + +RDEPEND+=">=app-eselect/eselect-rails-0.21" + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV} + ~dev-ruby/actionpack-${PV} + >=dev-ruby/thor-0.18.1 + >=dev-ruby/rake-0.8.7" + +ruby_add_bdepend " + test? ( + ~dev-ruby/actionview-${PV} + dev-ruby/mocha:0.14 + )" + +all_ruby_prepare() { + rm "${S}/../Gemfile" || die "Unable to remove Gemfile" + sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths" + sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die + + # Also allow rdoc 4.x + sed -i -e 's/~> 3.4/>= 3.4/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper rails rails-${PV} +} + +pkg_postinst() { + elog "To select between slots of rails, use:" + elog "\teselect rails" + + eselect rails update +} + +pkg_postrm() { + eselect rails update +} |